Skip to content

Instantly share code, notes, and snippets.

@alpe12
alpe12 / routerlogin.py
Last active December 10, 2021 20:25
TP-Link Archer C7 extract login stok token and cookie
#!/usr/bin/env python3
#run sudo apt install firefox-geckodriver && pip3 install selenium
ip = "192.168.1.254"
geckologfile = '/media/tmpfs/geckodriver.log'
password = "YOURPASSWORD"
tokenfile = "/media/tmpfs/token"
cookiesfile = "/media/tmpfs/stats.cookies"