Guest User

Untitled

a guest
Mar 1st, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2. counter=1000
  3. for i in `cat socks.txt`
  4. do
  5. echo $i > temp.txt
  6. sed -i "s/:/ /g" temp.txt
  7. ip=`awk '{print $1}' temp.txt`
  8. user=`awk '{print $2}' temp.txt`
  9. pass=`awk '{print $3}' temp.txt`
  10. counter=$((counter+1))
  11. echo "sshpass -p $user ssh -f -D $counter -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $user@$ip -T -N &" >> log
  12. done
Add Comment
Please, Sign In to add comment