nahamsec / JSParser

783 stars 178 forks source link

jsparser installation problem #61

Open prabeshram opened 1 year ago

prabeshram commented 1 year ago

python handler.py
Traceback (most recent call last): File "/home/kalki/Desktop/bug_bounty/JSParser/handler.py", line 5, in import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl File "/home/kalki/Desktop/bug_bounty/JSParser/safeurl.py", line 18, in import StringIO ModuleNotFoundError: No module named 'StringIO'

please help me fix this problem

prabeshram commented 1 year ago

python handler.py Traceback (most recent call last): File "/home/kalki/Desktop/bug_bounty/JSParser/handler.py", line 5, in import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl File "/home/kalki/Desktop/bug_bounty/JSParser/safeurl.py", line 18, in import StringIO ModuleNotFoundError: No module named 'StringIO'

please, Can anyone help me on how to fix this issue?

kpomeroy1979 commented 1 year ago

This is the solution. Works 100% confirmed on Kali Linux

https://github.com/nahamsec/JSParser/issues/55

  1. Download docker: https://www.docker.com/products/docker-desktop
  2. In terminal (CMD): docker pull andmyhacks/jsparser
  3. In terminal (CMD): docker run -p 8008:8008 andmyhacks/jsparser Access: http://127.0.0.1:8008/
shishirs4 commented 11 months ago

Some changes on safeurl.py file

like remove the import StringIO

to

from io import StringIO