Giter Site home page Giter Site logo

lure's Introduction

LURE

Lure - User Recon Automation for GoPhish

What is Lure?

Lure assists in phishing target collection by pulling and parsing email addresses for a target organization. The results are normalized into a format recognized by GoPhish, and then uploaded to the server.

What sources does Lure search?

Lure currently searches the following, but more sources are being added all the time.

Source Authenticated? Default?
Hunter.io Yes No
TheHarvester No No
LinkedIn* Yes No
Website Scrape No Yes
  • LinkedIn searching leverages the Bing API, Not the LinkedIn API.

Why do some sources require an API Key?

Where possible and practical, Lure uses web scraping to eliminate the need of API Keys. However, some services have provide better options in terms of number of results, lack of throttling, or access to additional information when an API key is used. By default, config.py uses only unauthenticated sources. We highly recommend registering for the services that use API keys, as most offer free accounts and will give you much better results.

How do I run Lure?

  • Clone the git repo: git clone https://github.com/highmeh/lure/lure.git
  • Install the prerequisites: pip3 install -r requirements.txt
  • Edit config.py to ensure your API keys and paths are correct.
  • Give lure a domain to search and wait:
    • ./lure.py -d microsoft.com

What if I already have a list of targets?

You can use the ./lure.py -d domain.com -f /path/to/file.csv options to import a csv file in GoPhish format. Lure will append any search results to that list before uploading it.

What is the Gophish Format for the CSV?

Use ./lure.py -t to generate a CSV template.

Can I customize which sources Lure uses?

Yes, edit resources/config.py and change the sources to "True" or "False"

Lure is taking a long time to complete.

Disable theHarvester in resources/config.py. theHarvester takes a long time to generate very few results.

What if I want to use lure For OSINT, but not phishing?

Lure was designed to be used along side GoPhish, but some users understandably wanted to use it for OSINT only. As of version 0.3, you can use the "-x" switch to ignore the GoPhish server options entirely and just perform email collection.

How do I get a list of my results?

Use "-c" for Comma-Separated Value output, or "-p" to print e-mail addresses only.

How do I exclude pre-defined/out of scope users from ending up in a contact list?

Create an exclusions file. Add the emails you want to exclude, one per line, into a text file and run lure with the "-e file.txt" option.

Where do I enter API keys, tester names, and other variables?

Edit resources/config.py. You can run mv resources/config.sample.py resources/config.py to fill in the configuration template.

Lure says it found X number of emails, but the GoPhish group shows a different number.

GoPhish will not accept invalid entries. If one of the email addresses is collected erroneously and ends up being "username@[email protected]", "[email protected]", etc, it will be rejected during the upload. It also uses excludes duplicate emails.

Screenshots

Lure Command Line

Lure Importing to GoPhish

CHANGELOG

20191028: v0.2 Released. Adds function to print records to stdout (-p flag). Adds in webpage email scraping for common webpage locations (on by default). Built in some error logic for domains that are invalid or return no results.

20191122: v0.3 Released. Suppress the upload to GoPhish (OSINT Only Mode) (-x). Exclude emails from an exclusion list (-e excludes.txt). Print emails only (-p). Print CSV Contents (-c).

20191125: v0.4 Released. Adds support for MailsHunt and for GitHub searches. Reorganized config.sample.py for easier reading/parsing. Minor bug fixes.

20230730: v0.4 Updated. Changed how data is received from hunter.io and bing/linkedin searches. Note that HIBP is currently broken.

lure's People

Contributors

highmeh 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

lure's Issues

Error when uploading to Gophish

[-] Target list 20221122155515__.*** could not be added: mail: no address

Target list via -c is:

First Name, Last Name, Position, Email
,,,****
John,|,Smith|@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,,JSmith
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,JSmith@.,None
John,Smith,,JSmith
John,Smith,JSmith@.,None

Harvester Crashes

Love the script idea and indeed when all is working it does upload to the GoPish server!

Fixed the Hunter.io which which had a limit of 1000 but now a person account has a limit of 10

But the Harvester throws so funky errors even though I changed the location in the config.py to the correct location.

[+] Checking hunter.io (99/100 queries remaining)
[+] Checking theHarvester...
(Note: This may take a while)
Traceback (most recent call last):
File "./lure.py", line 305, in
start_discovery(company_domain,print_result,exclusion_list,enable_hibp)
File "./lure.py", line 85, in start_discovery
company_domain,config.HARVESTER_LOCATION)
File "/Users/user/workspace/lure/resources/harvester.py", line 20, in get_harvester_emails
subprocess.check_call(subprocess_cmd, stdout=DEVNULL, stderr=DEVNULL)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '/Users/user/workspace/lure/resources/theHarvester.py', '-d', 'microsoft.com', '-b', 'bing,dogpile,google,yahoo', '-f', '/tmp/harvester_microsoft_results.xml', '>/dev/null', '2>&1']' returned non-zero exit status 2.

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.