diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-03 15:04:31 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-03 15:04:31 -0300 |
commit | f846f9155df8b7b083e67e1e8e997582b20b688e (patch) | |
tree | bb6b1a25eda4bd687054245a67f4f554721ee446 | |
parent | f224332ff2c1bcb0baa967f224704a5ffdc3e42d (diff) | |
download | tools-f846f9155df8b7b083e67e1e8e997582b20b688e.tar.gz tools-f846f9155df8b7b083e67e1e8e997582b20b688e.tar.bz2 tools-f846f9155df8b7b083e67e1e8e997582b20b688e.tar.xz tools-f846f9155df8b7b083e67e1e8e997582b20b688e.zip |
Terminate connection properly
-rwxr-xr-x | web/forums.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/forums.py b/web/forums.py index 387db6f..4ff8e1a 100755 --- a/web/forums.py +++ b/web/forums.py @@ -139,6 +139,9 @@ r=requests.post("https://forums.themanaworld.org/posting.php?mode=reply&f=%d&sid ################################################################################# ## Logout +for k in jar.keys(): + if k.endswith("_sid"): + sid = r.cookies[k] r=requests.get("https://forums.themanaworld.org/ucp.php?mode=logout&sid=%s" % (sid), headers={"Origin": "https://forums.themanaworld.org", "Referer": "https://forums.themanaworld.org/", "User-Agent": fakeUserAgent}, cookies=jar) |