diff options
| author | 李向阳 (Steve Lee) <me@xiangyangli.com> | 2020-03-30 17:36:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-30 17:36:17 +0800 |
| commit | d8039db21f0b024e086476591cc507a79101b01c (patch) | |
| tree | 234cb0a3fbdbb7f78b32df3623c63e7c45be88f5 /draft/login | |
| parent | 670054ae068294b9e9effcb297499221ce2c5ed2 (diff) | |
| download | Personal-master.tar.xz Personal-master.zip | |
Create loginHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'draft/login')
| -rw-r--r-- | draft/login | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/draft/login b/draft/login new file mode 100644 index 0000000..2a28ad6 --- /dev/null +++ b/draft/login @@ -0,0 +1,26 @@ +import requests as r + +s = r.Session(); + +h = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 Edg/80.0.361.69', + 'Origin': 'https://pt.m-team.cc', + 'Referer': 'https://pt.m-team.cc/login.php' + }; + +d = {'username': 'username', + 'password': 'pass'}; + +p = dict(http='socks5://@127.0.0.1:1080', https='socks5://@127.0.0.1:1080'); + +resp = s.post('https://pt.m-team.cc/takelogin.php', data=d, headers=h, proxies=p); + +resp = s.get('https://pt.m-team.cc/index.php', headers=h, proxies=p); + +#print(resp.status_code); + +#print(resp.text); + +if resp.text.find('waterfall.php') != -1: + print('login success'); +else: + print('login failed'); |
