Giter VIP home page Giter VIP logo

inspy's Introduction

InSpy

โ›” [DEPRECATED]. This repo is no longer being maintained.

Introduction


InSpy is a python based LinkedIn enumeration tool.

Version 3.0 introduces the automation of domain and email retrieval in addition to randomized headers and xml output support.

Installation


Run pip install -r requirements.txt within the cloned InSpy directory.

Obtain an API key from HunterIO and insert it into the hunterio variable within InSpy.py (line 29).

Help


InSpy - A LinkedIn enumeration tool by Jonathan Broche (@LeapSecurity)

positional arguments:
  company          Company name to use for tasks.

optional arguments:
  -h, --help       show this help message and exit
  -v, --version    show program's version number and exit
  --domain DOMAIN  Company domain to use for searching.
  --email EMAIL    Email format to create email addresses with. [Accepted
                   Formats: [email protected], [email protected],
                   [email protected], [email protected], [email protected],
                   [email protected], [email protected], [email protected]]
  --titles [file]  Discover employees by title and/or department. Titles and
                   departments are imported from a new line delimited file.
                   [Default: title-list-small.txt]

Output Options:
  --html file      Print results in HTML file.
  --csv file       Print results in CSV format.
  --json file      Print results in JSON.
  --xml file       Print results in XML.

inspy's People

Contributors

daniel-cues avatar gojhonny avatar luigimarano avatar tkalfigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inspy's Issues

How to run bot

I've git cloned and then ran the pip install -r requirments in the right directory however when I run the code python Inspy.py all I get is the readme document. What am I missing here ?

HELP! 0 Employees identified

Regardless of the domain, I do not get any results on a scan. I have tried generating a second API key to see if it would address, to no avail.

python InSpy.py COMPANYNAME --domain company.com --email first.last

Regardless of company and domain I receive response "0 Employees identified"

Linked in error

When running inspy with just the domain I receive the following error.

ERROR:root:linkedin search - http 404 erorr crawling license

Anyone know how I can fix this?

Python version

Do you need python 3 to run this? I am getting the following:

./InSpy.py google --domain google.com --titles ./wordlists/title-list-large.txt

InSpy 3.0.1
Domain: google.com, Email Format: firstlast
0 Employees identified

Update for a more recent Python requests module

Hi,
I started to package this tool for Kali Linux. For the dependencies we use the packaged modules in the distro and we have requests version 2.18.1.
It fails with the message "Error: Invalid return character or leading space in header: User-Agent"
It would be nice if you can fix this.
For Kali I add this patch:

-headers={'Host':'www.linkedin.com', 'User-Agent': '    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'}
+headers={'Host':'www.linkedin.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'}

hunter.io api change

HI The hunter.io api has changed.

the calls are all mode to v1// where the API now has a v2//

requirements.txt

@gojhonny , i just tried to install and run this requirements file but was unable to due to getting a beautifulsoup4 error on the pip install -r requirements.txt step. The reasoning the machine gives me is that "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work". Will i have to downgrade my entire system to python 2.7 or is there an updated cached requests that i can input manually onto the requirements.txt file?

InSpy

someone help me out with the command line to be used to search for company names with multi words ........example:- appolo tires, mrf tires, etc

Invalid Syntax Error

I'm not having much luck running the script so far. I got this error when executing. Seems like it would be a quick fix.

Additionally, I seem to have errors with running empspy. Is that no longer a feature?

File "./code.py", line 31
print "\nInSpy {}".format(parser.version)
^
SyntaxError: invalid syntax

0 Employees Identified

Hi,

I have tried both with kali and fedora with several companies and the result is always the same:

InSpy 2.0.2

2017-03-05 00:35:54 0 Employees identified
Completed in 17.0s

I am missing something?
Thanks

inspy

please your website is not going through i need an explanation on how to use inspy version 3

image

HAVING THE BELOW ERROR CODE, PLEASE HELP TO FIX IT

Traceback (most recent call last):
File "InSpy.py", line 56, in
for response in search_linkedin(args.company, os.path.abspath(args.titles)):
File "/home/beckox/InSpy/lib/workbench.py", line 65, in search_linkedin
if response["status"] == 200:
TypeError: 'NoneType' object has no attribute 'getitem'

WHAT SHOULD I DO, HOW CAN I RESOLVE THIS?
THANKS IN ADVANCE FOR YOUR SUPPORT.

emails is not defined

File "./InSpy.py", line 89, in
output("csv", args.csv, args.company, domain, employees, emails)
NameError: name 'emails' is not defined

Traceback (most recent call last):
File "./InSpy.py", line 89, in
output("csv", args.csv, args.company, domain, employees, email)
File "/root/tools/InSpy/lib/export.py", line 8, in output
ocsv(file, company, domain, employees, emails)
File "/root/tools/InSpy/lib/export.py", line 21, in ocsv
writer.writerow({"Employee Name": name, "Title": title.replace('&', '&'), "Email": emails[name]})
TypeError: string indices must be integers, not str

InSpy could not identify the domain name. Use --domain.

Hi,
Thanks @gojhonny for this new version. I actually try to test InSpy 3.0 but I have some problem.

If I understand your tool new version, he needs to have Company Name, email and domain fullfilled to run, right?

Other question, what format is expected for --domain? Whatever I try, y always have in return "InSpy could not identify the domain name. Use --domain."

Thanks for your work and for this new version!

Error in install reuirements.txt because of BeautifulSoup3.2.1 - Kali linux

I tried to install InSpy into Kali linux following command.

$ git clone https://github.com/leapsecurity/InSpy.git
$ cd InSpy
$ pip install -r requirements.txt

however, I got following error.

Collecting BeautifulSoup==3.2.1
Using cached BeautifulSoup-3.2.1.tar.gz (31 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py'"'"'; file='"'"'/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-gsz35pi1
cwd: /tmp/pip-install-mpgemcbm/BeautifulSoup/
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Meybe python3 can't use BeautifulSoup 3.x.

Solution (tempolary)

Rewrite lib/soup.py instead of "pip install -r requirement.txt".

  1. install beautifulsoup4
    $ pip install beautifulsoup4

  2. rewrite lib/soup.py
    before lib/soup.py line 1

import BeautifulSoup,json

after lib/soup.py line 1

import bs4 ,json

  1. run inspy.py
    $ ./InSpy --domain abc.com --email username abc

Runtime error

Hello,

I been having issues with running inspy, I keep getting the below error regardless of what I do.

root@GBiagomba-Kali:/opt/TEST/InSpy# ./InSpy.py --domain example.com --email [email protected] --csv example.csv example

InSpy 3.0.1

Domain: example.com, Email Format: [email protected]

Traceback (most recent call last):
  File "./InSpy.py", line 56, in <module>
    for response in search_linkedin(args.company, os.path.abspath(args.titles)):
  File "/opt/TEST/InSpy/lib/workbench.py", line 65, in search_linkedin
    if response["status"] == 200:
TypeError: 'NoneType' object has no attribute '__getitem__'

Help me !!!

The new 3.0.0 version of Inspy is hard to use. I need examples of using methods. What will we do ? I can not use --emspy
Please help me?

ImportError: No module named BeautifulSoup

Fresh install under ParrotSec OS

sudo python2.7 InSpy.py -h
Traceback (most recent call last):
File "InSpy.py", line 7, in
from lib.soup import *
File "/usr/var/InSpy/lib/soup.py", line 1, in
import BeautifulSoup, json
ImportError: No module named BeautifulSoup

NameError: name 'emails' is not defined

Hi

Please can you help me with this issue for resolving it

0 Employees identified
Traceback (most recent call last):
  File "InSpy.py", line 83, in <module>
    output("html", args.html, args.company, domain, employees, emails)
NameError: name 'emails' is not defined

I use InSpy 3 and Kali 2020

Inspy application --empspy and --techspy cannot be found

Hi I have installed application Inspy and I cannot found --empspy and --techspy under the options

root@kali:~# inspy -h
usage: inspy [-h] [-v] [--domain DOMAIN] [--email EMAIL] [--titles [file]]
[--html file] [--csv file] [--json file] [--xml file]
company

InSpy - A LinkedIn enumeration tool by Jonathan Broche (@leapsecurity)

positional arguments:
company Company name to use for tasks.

optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--domain DOMAIN Company domain to use for searching.
--email EMAIL Email format to create email addresses with. [Accepted
Formats: [email protected], [email protected],
[email protected], [email protected], [email protected],
[email protected], [email protected], [email protected]]
--titles [file] Discover employees by title and/or department. Titles and
departments are imported from a new line delimited file.
[Default: title-list-small.txt]

Output Options:
--html file Print results in HTML file.
--csv file Print results in CSV format.
--json file Print results in JSON.
--xml file Print results in XML.
root@kali:~#

Error Inspy

Hi Pals:

when i execute "python InSpy.py bpp --domain bpp.com.ve --email [email protected] --xml"

I have the next message, please:

InSpy 3.0.1

Domain: bpp.com.ve, Email Format: [email protected]

0 Employees identified
Traceback (most recent call last):
File "InSpy.py", line 85, in
output("xml", args.xml, args.company, domain, employees, emails)
NameError: name 'emails' is not defined

Please HELP

Bit

May no longer be working?

I recently got this tool, wanted to check out its capabilities. I noticed that when i attempt to use the tool no results show. Has Linkedin updated their web sites to prevent searching?

IOError

Traceback (most recent call last):
File "Inspy.py", line 28, in
start_logger(args.company)
File "C:\InSpy-master\lib\logger.py", line 6, in start_logger
handler = logging.FileHandler('./logs/{}{}.log'.format(company.replace(' ', ''), time_format.replace(' ', '_')))
File "C:\Python27\lib\logging_init_.py", line 920, in init
StreamHandler.init(self, self.open())
File "C:\Python27\lib\logging_init
.py", line 950, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 22] invalid mode ('a') or filename: 'C:\InSpy-master\logs\acme_2018-12-03_00:11:38.log'

BUG: Error harvesting users. local variable 'soup' referenced before assignment

Hi,
i get the following on Kali 2.

root@kaliiso:/tmp/InSpy# python InSpy.py -c cisco


InSpy v1.0 - LinkedIn Employee Enumerator by Jonathan Broche (@g0jhonny)


[*] Searching for employees working at cisco with 'sales' in their title
[!] Timeout enumerating the sales department
[!] Error harvesting users. local variable 'soup' referenced before assignment

InSpy could not identify the email format. Use --email.

I am getting this error when trying to query a search. I am using one of the supported formats, "[email protected]" and I have tried some of the others yet I still received the same error.

Here is the fill output:
InSpy InSpy - A LinkedIn enumeration tool by Jonathan Broche (@LeapSecurity), version 3.0.0 ERROR:root:HunterIO - HTTP 401 Error InSpy could not identify the email format. Use --email.

HTTP 999 Error Crawling

Hi, I'm getting tons of 999 errors:

InSpy 3.0.0

Domain: xxxx, Email Format: [email protected]

ERROR:root:LinkedIn Search - HTTP 999 Error Crawling sales
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling marketing
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling human resources
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling finance
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling accounting
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling inventory
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling quality assurance
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling insurance
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling licenses
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling operational
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling customer service
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling staff
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling research & development
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling management
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling administration
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling engineering
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling it
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling is
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling strategy
ERROR:root:LinkedIn Search - HTTP 999 Error Crawling other

0 Employees identified

Any idea?
Thanks

Requirements.txt install is returning an error

This is the output after inputting "pip3 install -r requirements.txt"

Collecting requests==2.20.1 Using cached requests-2.20.1-py2.py3-none-any.whl (57 kB) Collecting BeautifulSoup==3.2.1 Using cached BeautifulSoup-3.2.1.tar.gz (31 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uj796awn/beautifulsoup_d7350856f0bb4996aeb10ca47c946245/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uj796awn/beautifulsoup_d7350856f0bb4996aeb10ca47c946245/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bgy8gurw cwd: /tmp/pip-install-uj796awn/beautifulsoup_d7350856f0bb4996aeb10ca47c946245/ Complete output (6 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-uj796awn/beautifulsoup_d7350856f0bb4996aeb10ca47c946245/setup.py", line 22 print "Unit tests have failed!" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")? ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz#sha256=6a8cb4401111e011b579c8c52a51cdab970041cc543814bbd9577a4529fe1cdb (from https://pypi.org/simple/beautifulsoup/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement BeautifulSoup==3.2.1 ERROR: No matching distribution found for BeautifulSoup==3.2.1

Unable to export in csv format

It's me again. This time I try to export InSpy result in csv format.
InSpy find all the informations, no problem. But when I ask to export (via flag --csv file), I have the following problem :

Traceback (most recent call last):
  File "InSpy.py", line 82, in <module>
    output("csv", args.csv, args.company, domain, employees, emails)
  File "/usr/toolz/InSpy/lib/export.py", line 8, in output
    ocsv(file, company, domain, employees, emails)
  File "/usr/toolz/InSpy/lib/export.py", line 18, in ocsv
    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
NameError: global name 'csv' is not defined

I don't understand where the error come from. Is it the tool or me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.