ImpostorKeanu / peasant

LinkedIn reconnaissance tool
51 stars 8 forks source link

Linkedin adds new pin verification on authentication #5

Open sl4cky opened 2 years ago

sl4cky commented 2 years ago

When authenticating with the tool we get the following error: python3 peasant.py harvest -cns 'XXXXXXXXXXXXXX'

[+] Authenticating session [+] Credentials not provided. Enter credentials to continue Username: XXXXXXXXXXXXXXXXXXXXXXXX Password: [+] Logging out Traceback (most recent call last): File "/root/peasant/peasant.py", line 67, in session.login(args) File "/root/peasant/Peasant/session.py", line 1276, in login return self.userPassAuth(*getCredentials()) File "/root/peasant/Peasant/session.py", line 178, in userPassAuth return self.postLogin(username,password) File "/root/peasant/Peasant/session.py", line 859, in postLogin raise SessionException('Invalid credentials supplied') Peasant.exceptions.SessionException: Invalid credentials supplied

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/peasant/peasant.py", line 122, in session.getLogout() File "/root/peasant/Peasant/decorators.py", line 14, in inner assert session.authenticated, ('The session object must be ' \ AssertionError: The session object must be authenticated prior calling session.getLogout

We found out that this is due to a OTP that is sent to verify the authentication request.

machevalia commented 2 years ago

So for anyone who runs into this: log in on to your LinkedIn profile on the machine you are running peasant on just before your run the script so that LinkedIn recognizes the IP address as valid then you'll be fine.