Guest User

emdao public ssh

a guest
May 25th, 2012
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. URL="http://ssh.emdao.com/freessh.php"
  3. host="jp.uudaili.com"
  4. un="freessh"
  5. rport=22
  6. lport=7070
  7. uagent="Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0"
  8. while true ; do
  9.     s=$(curl -A "$uagent" -s "$URL" | iconv -f gbk -t utf-8 | grep -E '密码:[ \t][0-9]+<[^>]+>')
  10.     pw=${s//[!0-9]/}
  11.     plink "$host" -N -ssh -2 -P $rport -l "$un" -pw "$pw" -D $lport -v
  12.     wait
  13. done
RAW Paste Data