theHarvester/theHarvester.py
Steve Bate bf8b7a49d1 Added code to support Windows 10 operation.
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.
2020-06-27 08:11:17 -04:00

21 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())