Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- counter=1000
- for i in `cat socks.txt`
- do
- echo $i > temp.txt
- sed -i "s/:/ /g" temp.txt
- ip=`awk '{print $1}' temp.txt`
- user=`awk '{print $2}' temp.txt`
- pass=`awk '{print $3}' temp.txt`
- counter=$((counter+1))
- echo "sshpass -p $user ssh -f -D $counter -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $user@$ip -T -N &" >> log
- done
Add Comment
Please, Sign In to add comment