forked from laramies/theHarvester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theHarvester.py
executable file
·28 lines (23 loc) · 917 Bytes
/
theHarvester.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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 < 10:
print('\033[93m[!] Make sure you have Python 3.10+ 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())