Skip to content

Instantly share code, notes, and snippets.

@bearice
Created April 8, 2015 13:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bearice/647d924c246196c1be37 to your computer and use it in GitHub Desktop.
Save bearice/647d924c246196c1be37 to your computer and use it in GitHub Desktop.
some code
#!/bin/bash
function get(){
echo "GET $1" >&2
curl -H"User-Agent: ADSL t\355 s\371 q\354/1.1 (iPad; iOS 7.1.1; Scale/2.00)" \
-H'Accept-Language: en;q=1, zh-Hans;q=0.9, fr;q=0.8, de;q=0.7, ja;q=0.6, nl;q=0.5' \
-s $1
}
vars=$(get 'http://bj.wokuan.cn/web/startenrequest.php' | perl -ne'print $1 if /((\w+=\w+\&)+\w+=\w+)/' | tr '&' "\n")
echo $vars >&2
eval $vars
get "http://bj.wokuan.cn/web/improvespeed.php?ContractNo=$cn&up=$gus&old=$old&round=$random"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment