Merge branch 'master' of https://github.com/laramies/theHarvester
This commit is contained in:
NotoriousRebel 2019-03-09 20:37:23 -05:00
commit 16f45ecb22
4 changed files with 13 additions and 3 deletions

View file

@ -6,7 +6,7 @@
* | |_| | | | __/ / __ / (_| | | \ V / __/\__ \ || __/ | *
* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *
* *
* theHarvester 3.0.6 v333 *
* theHarvester 3.0.6 v334 *
* Coded by Christian Martorella *
* Edge-Security Research *
* cmartorella@edge-security.com *

View file

@ -44,7 +44,7 @@ def banner():
print(r"* | |_| | | | __/ / __ / (_| | | \ V / __/\__ \ || __/ | *")
print(r"* \__|_| |_|\___| \/ /_/ \__,_|_| \_/ \___||___/\__\___|_| *")
print('* *')
print('* theHarvester 3.0.6 v333 *')
print('* theHarvester 3.0.6 v334 *')
print('* Coded by Christian Martorella *')
print('* Edge-Security Research *')
print('* cmartorella@edge-security.com *')

View file

@ -1,7 +1,9 @@
beautifulsoup4>=4.7.1
censys==0.0.8
decorator
plotly>=3.6.1
pytest>=4.3.0
pytz
PyYaml>=3.13
requests>=2.21.0
shodan>=1.11.1

View file

@ -30,6 +30,11 @@
Core.banner()
def modified_source(excluded_engines):
engines = Core.get_supportedengines()
engines.remove('all')
excluded_engines = set(map(str.strip, excluded_engines.split(',')))
return engines.difference(excluded_engines)
def start():
parser = argparse.ArgumentParser(description='theHarvester is used to gather open source intelligence (OSINT) on a\n'
@ -51,6 +56,7 @@ def start():
google-certificates, hunter, intelx,
linkedin, netcraft, securityTrails, threatcrowd,
trello, twitter, vhost, virustotal, yahoo, all''')
parser.add_argument('-x', '--exclude', help='exclude options when using all sources', type=str)
args = parser.parse_args()
try:
@ -82,6 +88,8 @@ def start():
if args.source is not None:
engines = set(map(str.strip, args.source.split(',')))
if args.source == 'all' and args.exclude is not None:
engines = modified_source(args.exclude)
if set(engines).issubset(Core.get_supportedengines()):
print(f'\033[94m[*] Target: {word} \n \033[0m')
for engineitem in engines: