devanshbatham / OpenRedireX

A fuzzer for detecting open redirect vulnerabilities
MIT License
690 stars 129 forks source link

giving error asyncio unable to run the tool #4

Closed balook closed 4 years ago

balook commented 4 years ago

Traceback (most recent call last): File "./openredirex.py", line 126, in main() File "./openredirex.py", line 108, in main asyncio.run(redirme(args.list, args.payloads, args.keyword)) AttributeError: module 'asyncio' has no attribute 'run'

Im getting this while running

abdurahman-harouat commented 4 years ago

Traceback (most recent call last): File "openredirex.py", line 1, in import asyncio ModuleNotFoundError: No module named 'asyncio' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in import xml.dom, xml.dom.minidom ModuleNotFoundError: No module named 'xml'

Original exception was: Traceback (most recent call last): File "openredirex.py", line 1, in import asyncio ModuleNotFoundError: No module named 'asyncio'

abdurahman-harouat commented 4 years ago

solved by :

1 - going to : https://www.python.org/downloads/ 2 - downloading python3.8.2 3 - installing it using the following commands: ./configure make make test sudo make install 4 - then runing : sudo pip3 install aiohttp

and finally it worked :

python3 openredirex.py -l urls.txt -p payloads.txt --keyword FUZZ

@devanshbatham thanks for those awesome tools

devanshbatham commented 4 years ago

Thanks mate for the feedback, credit goes to @NullPxl 😊

NullPxl commented 4 years ago

@balook asyncio.run() is a new function in python 3.7. Try running it with python3.7+ with aiohttp installed, and look at kherwata's comment on installation if you get stuck.

kareem9090 commented 3 years ago

how i can solve this problem please : Traceback (most recent call last): File "/home/kali/Bugbounty/OpenRedireX/openredirex.py", line 126, in main() File "/home/kali/Bugbounty/OpenRedireX/openredirex.py", line 108, in main asyncio.run(redirme(args.list, args.payloads, args.keyword)) File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/home/kali/Bugbounty/OpenRedireX/openredirex.py", line 80, in redirme await gen_tasks(session, url_list, payload_list, keyword) File "/home/kali/Bugbounty/OpenRedireX/openredirex.py", line 39, in gen_tasks results = await asyncio.gather(*tasks) File "/home/kali/Bugbounty/OpenRedireX/openredirex.py", line 46, in getResponse async with session.get(r_url, allow_redirects=True, timeout=10) as response: File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in aenter self._resp = await self._coro File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 492, in _request req = self._request_class( File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 305, in init self.update_host(url) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 366, in update_host raise InvalidURL(url) aiohttp.client_exceptions.InvalidURL: 88407996/articles?portalId=5212498&currentArticleId=10127762043&currentArticleLanguage=en&currentUrl=https://help.aware360.com/knowledge-base/setting-your&ssoLogin=false