linkedin2username icon indicating copy to clipboard operation
linkedin2username copied to clipboard

Nice tool however, it doesn't give me results.

Open Awaces opened this issue 3 years ago • 9 comments

Hi!

I like the concept of this tool but it looks like it's failing to write all names to the files. For example I tried this: python3 linkedin2username.py -u [email] -p [Password] -c [REDACTED] -n [REDACTED] -d 51

The script succesfully finds 51 staffs but only writes 5 to a file.

[*] Using version 0.21, which is the latest on GitHub.                                                                                                                                                                                       
                                                                                                                                                                                                                                             
[*] Successfully logged in.                                                                                                                                                                                                                  
                                                                                                                                                                                                                                             
          ID:    3499405                                                                                                                                                                                                                     
          Alias: [REDACTED]
          Desc:  Your coach in digital security                                                                                                                                                                                              
          Staff: 51                                                                                                                                                                                                                          
          URL:   http://www.[REDACTED].com                                                                                                                                                                                                       
                                                                                                                                                                                                                                             
[*] Hopefully that's the right [REDACTED]! If not,double-check LinkedIn and try again.                                                                                                                                                           
                                                                                                                                                                                                                                             
[*] Starting search....

[*] Company has 51 profiles to check. Some may be anonymous.
[*] Setting each iteration to a maximum of 3 loops of 25 results each.



[*] Scraping results on loop 3...        [*] Added 0 new names. Running total: 6              

[*] All done! Check out your lovely new files inthe li2u-output directory.

Awaces avatar Mar 14 '22 11:03 Awaces

Hi @Awaces , thanks for opening an issue! I've seen similar behavior in the past. Basically, the tool can only find names of those that would be visible to you in the web UI. This means the people need to be within a certain degree of connections to the account you are authenticating with. If you log in to the web site with the same account you run the tool as, can you see more than 6 full names? Thanks!

initstring avatar Mar 14 '22 11:03 initstring

Hi @initstring I'm performing the check with a freshly made LinkedIn account with no connections etc. I guess that's the issue :)

Awaces avatar Mar 14 '22 11:03 Awaces

@initstring I have another little "problem". When a victim's last name consists of more than 1 word, the last part is ignored. For example Jens Van Damme becomse [email protected]

Awaces avatar Mar 14 '22 13:03 Awaces

Are you sure? There is logic in the code here to do a lot with names consisting of more than 2 parts: https://github.com/initstring/linkedin2username/blob/master/linkedin2username.py#L659

initstring avatar Mar 14 '22 20:03 initstring

Are you sure? There is logic in the code here to do a lot with names consisting of more than 2 parts: https://github.com/initstring/linkedin2username/blob/master/linkedin2username.py#L659

There is logic code but Esther Van Dijck is saved as two seperate entries: [email protected] [email protected]

Awaces avatar Mar 17 '22 15:03 Awaces

How have you seen usernames like this handled? Can you provide some examples, based on real world users? I could add logic to create some more mutations.

Thanks!

initstring avatar Mar 17 '22 20:03 initstring

gic to create some more mutations.

This one for example: [REDACTED]

Awaces avatar Mar 21 '22 13:03 Awaces

Thanks @Awaces

Sorry, I should have been more specific. I'm basically trying to understand how a company would create usernames for someone like this. I haven't really seen these much myself, so am wondering if you have.

Let's imagine someone called "Dick Van Dyke". How do you think their username should be created?

I'll make a guess here, that I would need to add these mutations in addition to what I already have:

# first.last.txt
dick.vandyke

# f.last.txt
d.vandyke

# flast.txt
dvandyke

# firstl.txt, first.txt
(I don't think I would add anything to these)

# lastf.txt
vandyked

initstring avatar Mar 21 '22 22:03 initstring

If those examples above look good, you could try to submit a PR that include them in this chunk of code. It should be fairly basic to sort out if you go by what is already there.

I could do it myself quickly as well, but figured you might want the opportunity to contribute it yourself.

Totally up to you, I'm ok with either method.

initstring avatar Mar 21 '22 22:03 initstring

Been a while, no reply. Feel free to re-open if you want this addressed.

Thanks.

initstring avatar Oct 04 '22 01:10 initstring