I hereby claim:
- I am ibrohimislam on github.
- I am ibrohimislam (https://keybase.io/ibrohimislam) on keybase.
- I have a public key ASDbwnawLfi_0HmH2ltYTqhWWcEaoC8rhjnD8yvpXeqNdgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import requests | |
import re | |
import subprocess | |
import time | |
def login(session): | |
stok_response = session.get("http://169.254.0.1/cgi-bin/login.cgi?Command=getLoginStok", headers = {'Referer': 'http://169.254.0.1/'}) | |
stok = re.findall(r"<login_stok>(.*?)</login_stok>", stok_response.text, flags=0)[0] | |
login_data = {'Command': 'setLOGINvalue', 'input_URN': 'admin', 'rand_PWD': 'admin'} |