Limbo0x01 / Nakerah-lab-v1

Nakerah-lab
63 stars 21 forks source link

i have problem when i run #1

Open shadihh9 opened 4 years ago

shadihh9 commented 4 years ago

raceback (most recent call last): File "Nakerah-lab.py", line 198, in doQuery(myConnection) File "Nakerah-lab.py", line 155, in doQuery cur.execute("create database dvwa;") File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 226, in query _mysql.connection.query(self, query) MySQLdb._exceptions.ProgrammingError: (1007, "Can't create database 'dvwa'; database exists")

Limbo0x01 commented 4 years ago

i fixed it , all of this because the new kali version 2020 , or u already had installed DVWA before . Anyway to fix this you have two options : 1- Download the new script from the GitHub here . and run it on a new kali or any linux system " you never installed this script before on it ".

OR

2- Run this commands :

sudo mysql -u root -proot SHOW DATABASES; DROP DATABASE dvwa; DROP DATABASE xvwa; DROP DATABASE bWAPP; DROP DATABASE security; DROP DATABASE challenges; DROP DATABASE mutillidae; DROP USER 'dvwa'@'localhost'; DROP USER 'xvwa'@'localhost'; DROP USER 'bWAPP'@'localhost'; DROP USER 'sql'@'localhost'; DROP USER 'mutillidae'@'localhost'; flush privileges; exit;

sudo apt-get install git sudo git clone https://github.com/0xL1mb0/Nakerah-lab-v1.git cd Nakerah-lab-v1 sudo chmod +x setup.sh sudo ./setup.sh


Was because of sudo before ./setup.sh :3

kSuccess commented 4 years ago

I've this issues while running the script

Using MySQLdb ... Traceback (most recent call last): File "Nakerah-lab.py", line 215, in doQuery(myConnection) File "Nakerah-lab.py", line 172, in doQuery cur.execute("create database dvwa;") File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 226, in query _mysql.connection.query(self, query) MySQLdb._exceptions.ProgrammingError: (1007, "Can't create database 'dvwa'; database exists"

Limbo0x01 commented 4 years ago

Can you please tell me what is the exact version of your operating system?

On Sun, Sep 20, 2020 at 4:13 PM kSuccess notifications@github.com wrote:

I've this issues while running the script

Using MySQLdb ... Traceback (most recent call last): File "Nakerah-lab.py", line 215, in doQuery(myConnection) File "Nakerah-lab.py", line 172, in doQuery cur.execute("create database dvwa;") File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 226, in query _mysql.connection.query(self, query) MySQLdb._exceptions.ProgrammingError: (1007, "Can't create database 'dvwa'; database exists"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/0xL1mb0/Nakerah-lab-v1/issues/1#issuecomment-695791968, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4NZSMEYFQFPGH6SWUULODSGYEZZANCNFSM4MCPQ3SA .

kSuccess commented 4 years ago

Ubuntu server 20.04

Limbo0x01 commented 3 years ago

I will fix it in Ubuntu 20 ASAP , u can try Ubuntu 18 it will work fine

On Mon, Sep 21, 2020 at 5:56 PM kSuccess notifications@github.com wrote:

Ubuntu server 20.04

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/0xL1mb0/Nakerah-lab-v1/issues/1#issuecomment-696208222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4NZSNL6KJ4EPMCQDWW4P3SG5ZSPANCNFSM4MCPQ3SA .

mirage-F commented 3 years ago

it s work for kali20.0 but didn t with ubuntu

Te0xte1 commented 3 years ago

I'm facing an issue too when i run mutillidae it output this

Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /var/www/html/mutillidae/owasp-esapi-php/src/reference/DefaultSecurityConfiguration.php:136 Stack trace: #0 /var/www/html/mutillidae/owasp-esapi-php/src/reference/DefaultSecurityConfiguration.php(116): DefaultSecurityConfiguration->_loadConfiguration() #1 /var/www/html/mutillidae/owasp-esapi-php/src/ESAPI.php(362): DefaultSecurityConfiguration->construct() #2 /var/www/html/mutillidae/owasp-esapi-php/src/ESAPI.php(66): ESAPI::getSecurityConfiguration() #3 /var/www/html/mutillidae/index.php(157): ESAPI->construct() #4 {main} thrown in /var/www/html/mutillidae/owasp-esapi-php/src/reference/DefaultSecurityConfiguration.php on line 136

Limbo0x01 commented 3 years ago

[SOLVED]

sisi-nj commented 3 years ago

please help , mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost' in /var/www/html/mutillidae/classes/MySQLHandler.php