mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-22 16:26:34 +08:00
Syncing.
Merge branch 'master' of https://github.com/laramies/theHarvester
This commit is contained in:
commit
16f45ecb22
|
@ -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 *
|
||||
|
|
|
@ -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 *')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,12 @@
|
|||
|
||||
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'
|
||||
'company or domain.')
|
||||
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue