maurosoria / dirsearch

Web path scanner
11.93k stars 2.31k forks source link

No module named 'mysql' #1317

Closed haqqibrahim closed 1 year ago

haqqibrahim commented 1 year ago

I am writing a bash script with Nmap and Dirsearch, Nmap runs but Dirsearch returns an error saying No module named 'mysql

This is script: !/bin/bash nmap $1 dirsearch.py -u $1 -e php

This is the output:

dir

Prady18 commented 1 year ago

@haqqibrahim The error "No module named 'mysql'" suggests that the 'mysql' module is not installed in the Python environment where Dirsearch is being executed. You'll need to install the required module using pip. Open your terminal and execute the following command:

(

#pip install mysq

l)

If you're using Python 3, use pip3 instead of pip.

If the issue persists or if the module name is slightly different, please make sure you have the correct module name and version specified in your script

haqqibrahim commented 1 year ago

pip install mysql will not work.

Solution: pip install mysql-connector