Created
December 23, 2017 19:21
-
-
Save BlaayLock/8ec6ba2cf815c005cc521bd2d1639583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#~ Перезагрузка Dlink DIR-100 скриптом How to Reboot Your Router Dir-100 restart telnet | |
import requests | |
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1'} | |
session = requests.Session() | |
content=session.post('http://192.168.1.1/login.htm', { | |
'uname': 'admin', | |
'pws': 'h3Dckf82qnx5gdh', | |
'login': 'Login', | |
}) | |
content2=session.get('http://192.168.0.1/cli.cgi?cmd=reboot', headers=headers, cookies=content.cookies) | |
#~ print content2 #~ Response 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment