mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 18:03:10 +08:00
bf8b7a49d1
Manually tested with Python 3.8.3. Using SelectorEventLoop because of issues with default ProactorEventLoop on Windows (e.g., missing add_reader implementation needed by aiodns). Made the uvloop install requirement conditional on the operating system (skipped on Windows platforms). This change doesn't allow setup.py to run on Windows (because of /etc/theHarvester reference), but supports running theHarvester.py directly from a cloned workspace.
20 lines
486 B
Python
Executable file
20 lines
486 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
# Note: This script runs theHarvester
|
|
from platform import python_version
|
|
import sys
|
|
import asyncio
|
|
|
|
if python_version()[0:3] < '3.7':
|
|
print('\033[93m[!] Make sure you have Python 3.7+ installed, quitting.\n\n \033[0m')
|
|
sys.exit(1)
|
|
|
|
from theHarvester import __main__
|
|
|
|
if sys.platform == 'win32':
|
|
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
|
|
else:
|
|
import uvloop
|
|
uvloop.install()
|
|
|
|
asyncio.run(__main__.entry_point())
|