Greenwolf / social_mapper

A Social Media Enumeration & Correlation Tool by Jacob Wilkin(Greenwolf)
GNU General Public License v3.0
3.81k stars 788 forks source link

Douban cannot locate login successfully #108

Closed lorenzoromani1983 closed 5 years ago

lorenzoromani1983 commented 5 years ago

Hi. I am having troubles when using SM on Douban. I get this error:

[+] Douban Login Page loaded successfully [+] Traceback (most recent call last): File "/home/osint/social_mapper/social_mapper.py", line 1143, in peoplelist = fill_douban(peoplelist) File "/home/osint/social_mapper/social_mapper.py", line 707, in fill_douban DoubanfinderObject.doLogin(douban_username,douban_password) File "/home/osint/social_mapper/modules/doubanfinder.py", line 33, in doLogin wbUsername = self.driver.find_element_by_id("email") File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 360, in find_element_by_id return self.findelement(by=By.ID, value=id) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element 'value': value})['value'] File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="email"]

maybe something changed in the login page. Is it possible to fix it? thank you :)

lorenzoromani1983 commented 5 years ago

Easy to fix: just change the login url to douban.com and not douban.com/login in social_mapper.py

Greenwolf commented 5 years ago

Brilliant, thanks for updating us with a fix! Much appreciated!

Greenwolf commented 5 years ago

Just to confirm, you meant change it in 'doubanfinder.py' right?

lorenzoromani1983 commented 5 years ago

exactly :)