diff --git a/requirements/app.txt b/requirements/app.txt new file mode 100644 index 00000000..532aa9f2 --- /dev/null +++ b/requirements/app.txt @@ -0,0 +1,21 @@ +aiodns==2.0.0 +aiofiles==0.5.0 +aiohttp==3.6.2 +aiosqlite==0.13.0 +beautifulsoup4==4.9.1 +dnspython==1.16.0 +fastapi==0.55.1 +netaddr==0.7.19 +orjson==2.0.9 +plotly==4.8.1 +PyYAML==5.3.1 +requests==2.23.0 +retrying==1.3.3 +shodan==1.23.0 +slowapi==0.1.1 +starlette==0.13.2 +texttable==1.6.2 +lxml==4.5.1 +uvicorn==0.11.5 +uvloop==0.14.0 +certifi==2020.4.5.1 \ No newline at end of file diff --git a/requirements/base.txt b/requirements/base.txt index 46df4959..74aca623 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -4,11 +4,11 @@ aiohttp==3.6.2 aiosqlite==0.13.0 beautifulsoup4==4.9.1 dnspython==1.16.0 -fastapi==0.55.1 netaddr==0.7.19 -plotly==4.8.1 +netaddr==0.7.20 +plotly==4.8.2 PyYAML==5.3.1 -requests==2.23.0 +requests==2.24.0 retrying==1.3.3 shodan==1.23.0 slowapi==0.1.1 @@ -16,5 +16,5 @@ starlette==0.13.4 texttable==1.6.2 lxml==4.5.1 uvicorn==0.11.5 -uvloop==0.14.0 -certifi==2020.4.5.1 \ No newline at end of file +uvloop==0.14.0; platform_system != "Windows" +certifi==2020.6.20 diff --git a/requirements/dev.txt b/requirements/dev.txt index 1bcdc97d..6cce9103 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ -r base.txt -flake8==3.8.2 -mypy==0.780 +flake8==3.8.3 +mypy==0.782 mypy-extensions==0.4.3 pyflakes==2.2.0 pytest==5.4.3 -pytest-asyncio==0.12.0 \ No newline at end of file +pytest-asyncio==0.14.0 \ No newline at end of file diff --git a/theHarvester.py b/theHarvester.py index 707860ff..cb30ceb8 100755 --- a/theHarvester.py +++ b/theHarvester.py @@ -4,7 +4,6 @@ from platform import python_version import sys import asyncio -import uvloop if python_version()[0:3] < '3.7': print('\033[93m[!] Make sure you have Python 3.7+ installed, quitting.\n\n \033[0m') @@ -12,5 +11,10 @@ from theHarvester import __main__ -uvloop.install() +if sys.platform == 'win32': + asyncio.DefaultEventLoopPolicy = asyncio.WindowsSelectorEventLoopPolicy +else: + import uvloop + uvloop.install() + asyncio.run(__main__.entry_point())