Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python checks in the run script as they are not needed anymore #895

Merged
merged 5 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/theHarvester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ jobs:
run: |
python theHarvester.py -d yale.edu -b linkedin_links

- name: Run theHarvester module Netcraft
run: |
python theHarvester.py -d yale.edu -b netcraft

- name: Run theHarvester module Omnisint
run: |
python theHarvester.py -d yale.edu -b omnisint
Expand Down
11 changes: 2 additions & 9 deletions bin/theHarvester
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/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':
Expand All @@ -19,9 +13,8 @@ if __name__ == '__main__':
multiprocessing.freeze_support()
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
else:
if python_version()[0:3] < '3.9':
import uvloop
uvloop.install()
import uvloop
uvloop.install()

if "linux" in platform:
import aiomultiprocess
Expand Down
11 changes: 2 additions & 9 deletions theHarvester.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/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':
Expand All @@ -19,9 +13,8 @@
multiprocessing.freeze_support()
asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy
else:
if python_version()[0:3] < '3.9':
import uvloop
uvloop.install()
import uvloop
uvloop.install()

if "linux" in platform:
import aiomultiprocess
Expand Down