random

- collection of un-sorted bollocks
git clone git://git.acid.vegas/random.git
Log | Files | Refs | Archive

dmsh (602B)

      1 #!/bin/sh
      2 # distributed masscan helper - developed by acidvegas (https://git.acid.vegas/random)
      3 TOTAL=$(wc -l $1)
      4 i=1
      5 while IFS= read -r line; do
      6 	user=$(echo "$line" | cut -d':' -f1)
      7 	pass=$(echo "$line" | cut -d':' -f2)
      8 	host=$(echo "$line" | cut -d':' -f3)
      9 	port=$(echo "$line" | cut -d':' -f4)
     10 	sshpass -p $pass ssh $user@$host -p $port
     11 	ssh $line sh -c "wget https://raw.githubusercontent.com/robertdavidgraham/masscan/master/data/exclude.conf && masscan --range 0.0.0.0/0 -p $2 --banners --rate 50000 --excludefile exclude.conf --open-only -oJ $port.json --shard $i/$TOTAL"
     12 	i=$((i+1))
     13 done < $1