You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Fritzbox GUI url is : http://192.168.178.1/#overview with no SID in the URL. I tried to use the following link https://fritz.box/login_sid.lua?version=2 again this returned 0000000000000000. I tried many scripts until I found this, which returns a SID. When I try this in the Wireshark Fritzbox Interface Options, it errors out telling me this is an invalid SID, how will I fix this?
import requests
import urllib3
import xml.etree.ElementTree as ET
import hashlib
def fb_get_sid(fritzbox, fritz_user, fritz_pw):
global fb_sid
if fb_sid == "0000000000000000":
session = requests.Session()
http = urllib3.PoolManager()
data = http.request("get", fritzbox + "/login_sid.lua").data
tree = ET.fromstring(data)
fb_sid = tree.findtext("SID")
if fb_sid == "0000000000000000":
challenge = tree.findtext("Challenge")
hash_me = (challenge + "-" + fritz_pw).encode("UTF-16LE")
hashed = hashlib.md5(hash_me).hexdigest()
response = challenge + "-" + hashed
ret = session.get(fritzbox + "/login_sid.lua", params={
"username": fritz_user,
"response": response
}, verify=False, timeout=5)
tree = ET.fromstring(ret.text)
fb_sid = tree.findtext("SID")
if fb_sid == "0000000000000000":
print("fb_get_sid: Error getting SID")
exit()
return fb_sid
routerurl = "http://192.168.178.1"
username = "FOO" # login user name e.g. fritz1234
password = "BAR" # login password
fb_sid = "0000000000000000"
def main():
fb_sid = fb_get_sid(routerurl, username, password)
print("Session ID", fb_sid)
if __name__ == '__main__':
main()
The text was updated successfully, but these errors were encountered:
System: RasperryPi
Fritzbox: 7490,
My Fritzbox GUI url is :
http://192.168.178.1/#overview
with no SID in the URL. I tried to use the following linkhttps://fritz.box/login_sid.lua?version=2
again this returned 0000000000000000. I tried many scripts until I found this, which returns a SID. When I try this in the Wireshark Fritzbox Interface Options, it errors out telling me this is an invalid SID, how will I fix this?The text was updated successfully, but these errors were encountered: