infobyte / emploleaks

An OSINT tool that helps detect members of a company with leaked credentials
https://fardadaysec.com
528 stars 46 forks source link

Exception triggered when executing 'run find' #8

Closed FrancoGabriel closed 1 year ago

FrancoGabriel commented 1 year ago

When I try to make a 'run find [company]', I get this error:

emploleaks(linkedin)> run find faraday
⠸ Gathering Information[+] Added 25 new names.
⠹ Gathering Information[+] Added 25 new names.
⠸ Gathering Information[+] Added 25 new names.
⠧ Gathering Information[+] Added 25 new names.
⠏ Gathering Information[+] Added 25 new names.
⠏ Gathering Information[+] Added 25 new names.
⠇ Gathering Information[+] Added 25 new names.
⠧ Gathering Information[+] Added 25 new names.
⠏ Gathering Information[+] Added 25 new names.
⠏ Gathering Information[+] Added 25 new names.
⠏ Gathering Information[+] Added 25 new names.
⠇ Gathering Information[+] Added 25 new names.
⠧ Gathering Information[+] Added 25 new names.
⠴ Gathering Information[+] Added 25 new names.
⠸ Gathering Information[+] Added 25 new names.
⠙ Gathering Information[+] Added 25 new names.
⠋ Gathering Information[+] Added 25 new names.
⠇ Gathering Information[+] Added 25 new names.
⠦ Gathering Information[+] Added 25 new names.
⠦ Gathering Information[+] Added 25 new names.
⠴ Gathering Information[+] Added 25 new names.
⠸ Gathering Information[+] Added 25 new names.
⠦ Gathering Information[+] Added 25 new names.
⠴ Gathering Information[+] Added 25 new names.
⠸ Gathering Information[+] Added 25 new names.
⠇ Gathering InformationTraceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/cmd2/cmd2.py", line 2399, in onecmd_plus_hooks
    stop = self.onecmd(statement, add_to_history=add_to_history)
  File "/opt/homebrew/lib/python3.10/site-packages/cmd2/cmd2.py", line 2850, in onecmd
    stop = func(statement)
  File "/Users/0x1gab/Desktop/tools/emploleaks/cli/emploleaks.py", line 98, in wrapper
    func(*args)
  File "/Users/0x1gab/Desktop/tools/emploleaks/cli/emploleaks.py", line 265, in do_run
    profiles = self.plugin_instance.do_loops(found_id, outer_loops, depth)
  File "/Users/0x1gab/Desktop/tools/emploleaks/cli/plugins/linkedin.py", line 139, in do_loops
    found_profiles = self.find_employees(result.text)
  File "/Users/0x1gab/Desktop/tools/emploleaks/cli/plugins/linkedin.py", line 197, in find_employees
    'occupation': profile['occupation'],
KeyError: 'occupation'
EXCEPTION of type 'KeyError' occurred with message: 'occupation
lupulabs commented 1 year ago

fix it in 2e9bb5ea616cc177a2e5d640429c50c433107df7