Share Pastebin
Guest
Public paste!

escapado

By: a guest | Jan 27th, 2009 | Syntax: None | Size: 0.30 KB | Hits: 114 | Expires: Never
Copy text to clipboard
  1. #!/bin/sh
  2. USERNAME=user
  3. PASSWORD=password
  4. URL=https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi
  5. PUpoints=$(curl -s --insecure --data-ascii "login=${USERNAME}&password=${PASSWORD}" ${URL} | grep "RapidPoints PU" | awk 'match($0,"<b>.*</b>") { print substr($0,RSTART+3,RLENGTH-7) }')
  6. echo "${PUpoints}"