superhedgy / AttackSurfaceMapper

AttackSurfaceMapper is a tool that aims to automate the reconnaissance process.
https://AttackSurfaceMapper.com
GNU General Public License v3.0
1.32k stars 194 forks source link

LinkedIN username #27

Closed brohan closed 4 years ago

brohan commented 5 years ago

The keylists.asm has 2 lines for LinkedIn, the username and password. LinkedIn doesn't have usernames from what I can tell, only your email address. When I give my registered email address and password I still get an error:

"[*] Error: Could not authenticate to LinkedIn. cannot use a string pattern on a bytes-like object"

superhedgy commented 5 years ago

Yeah LinkedIn username refers to the email address associated with the linkedin account.

You should use the following format:

linkedin_username = "myemail@example.com"
linkedin_password = "p@ssword1"

Make sure you have included the double quotes.

cheezee0101 commented 5 years ago

I have the same issue and the double quotes are included.

PolarBearGod commented 5 years ago

Is there a particular reason why we are avoiding using LinkedIn APIs? https://www.linkedin.com/developers/

jamiemardis commented 4 years ago

Same issue here, the keylist.asm file is correct

superhedgy commented 4 years ago

@PolarBearGod not quite the same but I will have a look into it as a possible alternative.

rzwolf commented 4 years ago

Hi,

I have the same issue, I put my LinkedIn credentials but doesn't work and I got this error:

[*] Error: Could not authenticate to LinkedIn. cannot use a string pattern on a bytes-like object

Traceback (most recent call last): File "asm.py", line 947, in main(keychain, sw1, output_path, c1) File "asm.py", line 739, in main keychain["linkedin_password"], "", answer2) File "/opt/AttackSurfaceMapper/modules/linkedinner.py", line 115, in get_emails_for_company_name cookies['JSESSIONID'] = 'ajax:0397788525211216808' TypeError: 'NoneType' object does not support item assignment

superhedgy commented 4 years ago

@H4ckW0lf I have tested the LinkedInner module again and it works fine for me.

It appears that the error message quoted only shows up when authentication with LinkedIn has failed.

rzwolf commented 4 years ago

@superhedgy thanks!!I have tested again but the problem persists even when 2-FA is disabled for the linkedIn account.

Will I be setting a bad parameter?

I'm using this format :

linkedin_username = "myemail@example.com" linkedin_password = "p@ssword1"

lujyun commented 4 years ago

@H4ckW0lf I modified the variable parse in linkedinner.py and solved the problem.

parse = BeautifulSoup(page.decode('utf-8'), "html.parser")