Browse Source

Fix the login issue. (#40)

Adding `/begin` in the POST request for the login. Without we couldn't login to expired domain : March 18, 2022
davidlebr1 2 years ago
parent
commit
03c9c1f0bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      domainhunter.py

+ 1 - 1
domainhunter.py

@@ -376,7 +376,7 @@ def drawTable(header,data):
 def loginExpiredDomains():
     """Login to the ExpiredDomains site with supplied credentials"""
 
-    data = "login=%s&password=%s&redirect_2_url=/" % (username, password)
+    data = "login=%s&password=%s&redirect_2_url=/begin" % (username, password)
     headers["Content-Type"] = "application/x-www-form-urlencoded"
     r = s.post(expireddomainHost + "/login/", headers=headers, data=data, proxies=proxies, verify=False, allow_redirects=False)
     cookies = s.cookies.get_dict()