shell发动弹
发布时间:2020-12-15 07:16:08 所属栏目:安全 来源:网络整理
导读:今天PHP站长网 52php.cn把收集自互联网的代码分享给大家,仅供参考。 #!/bin/bashemail='xxxxxx' #这里自己处理urlencode,比如[email?protected] 这里填shacha%40gmail.compassword='xxxxxxx' #同上msgRaw='今天又被自己
以下代码由PHP站长网 52php.cn收集自互联网 现在PHP站长网小编把它分享给大家,仅供参考 #!/bin/bash email='xxxxxx' #这里自己处理urlencode,比如[email?protected] 这里填shacha%40gmail.com password='xxxxxxx' #同上 msgRaw='今天又被自己帅醒了' msg=`echo -n $msgRaw|od -An -tx1|tr ' ' %` curl -H "Content-Type:application/x-www-form-urlencoded" -d "pwd=`echo -n $password|sha1sum|cut -c -40`&email=$email" -D cookie.txt "https://www.oschina.net/action/user/hash_login" user_code=`curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0" -b cookie.txt "http://www.oschina.net/"|grep -oE "name='user_code' value='[a-zA-Z0-9]+"|cut -c 25-` echo $user_code user=`curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0" -b cookie.txt "http://www.oschina.net/"|grep -oE "name='user' value='[0-9]+"|cut -c 20-` echo $user curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0" -b cookie.txt -d "user=$user&user_code=$user_code&msg=$msg" "http://my.oschina.net/action/tweet/pub" 以上内容由PHP站长网【52php.cn】收集整理供大家参考研究 如果以上内容对您有帮助,欢迎收藏、点赞、推荐、分享。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |