devanshbatham / ParamSpider

Mining URLs from dark corners of Web Archives for bug hunting/fuzzing/further probing
MIT License
2.34k stars 403 forks source link

Traceback #116

Open sasholy opened 4 months ago

sasholy commented 4 months ago

hi. ┌──(kali㉿kali)-[~] └─$ paramspider -d testphp.vulnweb.com Traceback (most recent call last): File "/home/kali/.local/bin/paramspider", line 5, in <module> from paramspider.main import main File "/home/kali/.local/lib/python2.7/site-packages/paramspider/main.py", line 93 logging.info(f"{Fore.YELLOW}[INFO]{Style.RESET_ALL} Fetching URLs for {Fore.CYAN + domain + Style.RESET_ALL}") ^ SyntaxError: invalid syntax help me

akhavanmohsen commented 3 months ago

Hi, I have also Traceback issue.

[INFO] Fetching URLs for https://kali.org
[INFO] Found 9351 URLs for https://kali.org
[INFO] Cleaning URLs for https://kali.org
[INFO] Found 3232 URLs after cleaning
[INFO] Extracting URLs with parameters
Traceback (most recent call last):
  File "/usr/local/bin/paramspider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/moh/.local/lib/python3.11/site-packages/paramspider/main.py", line 161, in main
    fetch_and_clean_urls(domain, extensions, args.stream, args.proxy, args.placeholder)
  File "/home/moh/.local/lib/python3.11/site-packages/paramspider/main.py", line 111, in fetch_and_clean_urls
    with open(result_file, "w") as f:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'results/https://kali.org.txt'
NotoriousRebel commented 3 months ago

@sasholy Your error is due to using python2.7, you are getting invalid syntax on logging.info(f"{Fore.YELLOW}[INFO]{Style.RESET_ALL} Fetching URLs for {Fore.CYAN + domain + Style.RESET_ALL}") because format strings (f"{}") were added in python3.6+. Use a version of python equal to or higher than 3.6

123yash8 commented 2 months ago

Install it with pip3 install .