-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Note: This script runs theHarvester | ||
from platform import python_version | ||
import sys | ||
import asyncio | ||
from theHarvester import __main__ | ||
|
||
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) | ||
|
||
|
||
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters