mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 17:13:07 +08:00
90082dbaa0
* Added call to api endpoint to explicitly gather subdomains from zoomeye, updated user agents, replaced orjson with ujson, and fixed substring not found error. * Updated orjson to ujson. * Fixed semantic error in html check in google workaround. * Fixed flake8 errors. * Fixed VT to use API. * Fixed virustotal module. * Fixed possible edge case that could possibly cause an infinite loop. * Removed broken modules. * Added 4 new sources: brave, criminalip, hunterhow, and subdomainfinderc99, added dnsresolve, and other misc changes. * Added TODO comment. * Fixed bin\theHarvester to allow python3.9 * Pep8 newline at end of file. * Fixed error when passing in comma seperated resolvers and allow for user to pass in --dns-resolve flag with no arguments to use default resolvers that user has.
28 lines
915 B
Python
Executable file
28 lines
915 B
Python
Executable file
#!/usr/bin/env python3
|
|
# Note: This script runs theHarvester
|
|
import sys
|
|
import asyncio
|
|
from theHarvester import __main__
|
|
|
|
if sys.version_info.major < 3 or sys.version_info.minor < 9:
|
|
print('\033[93m[!] Make sure you have Python 3.9+ installed, quitting.\n\n \033[0m')
|
|
sys.exit(1)
|
|
|
|
if __name__ == '__main__':
|
|
platform = sys.platform
|
|
if platform == 'win32':
|
|
# Required or things will break if trying to take screenshots
|
|
import multiprocessing
|
|
|
|
multiprocessing.freeze_support()
|
|
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
|
else:
|
|
import uvloop
|
|
uvloop.install()
|
|
|
|
if "linux" in platform:
|
|
import aiomultiprocess
|
|
|
|
# As we are not using Windows, we can change the spawn method to fork for greater performance
|
|
aiomultiprocess.set_context("fork")
|
|
asyncio.run(__main__.entry_point())
|