Ready to Start Your Career?

SQLSUS Not Working

Author's profile image

January 1, 2016

I'm going through the Web Penetration Testing videos and have hit a wall. I keep getting the error “can’t use ‘defined(@array)’ Maybe you should just omit the defined()?) at /usr/bin/sqlsus line 83.” When attempting to run sqlsus. I’ve made an attempt to install sqlsus manually and this did not fix it. I've also run several apt-get's to see if there was an update to Kali and no dice. I'm going through the Web Penetration Testing videos and have hit a wall. I keep getting the error “can’t use ‘defined(@array)’ Maybe you should just omit the defined()?) at /usr/bin/sqlsus line 83.” When attempting to run sqlsus. I’ve made an attempt to install sqlsus manually and this did not fix it. I've also run several apt-get's to see if there was an update to Kali and no dice. yeah. it is a bug in the script after perl was updated. 0.7.2-1kali1 has a fix, so "apt-get update" followed by "apt-get install sqlsus" should install the fix for you When I run the above commands it says 0.7.2-1 is already installed. After a reboot I run sqlsus and receive the same error from my first post. Shouldn't need to reboot. does your output of ```dpkg-query -l sqlsus``` match ```||/ Name Version Architecture Description +++-==============-============-============-================================= ii sqlsus 0.7.2-1kali1 all MySQL injection tool``` ?? Here is the output I receive Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii sqlsus 0.7.2-1 all MySQL injection and takeover tool Looks like you are having deb package management problems then - you are definitely running the old version. try ```apt-cache show sqlsus | grep Filename``` if you don't get the output ```Filename: pool/main/s/sqlsus/sqlsus\_0.7.2-1kali1\_all.deb``` then your apt-get cache is not showing the latest values. "apt-get update" *should* have updated that cache for you, but if it is corrupt "apt-get check" should verify the cache is accurate. If the above line is accurate, then "apt get install sqlsus" *should* update your outdated script to the new version. worst case you can pull [https://repo.kali.org/kali/pool/main/s/sqlsus/sqlsus\_0.7.2-1kali1\_all.deb](http://repo.kali.org/kali/pool/main/s/sqlsus/sqlsus_0.7.2-1kali1_all.deb) and install it manually :D Looks like the manual install did it for me. Thanks @mcdavex for all your help. You are welcome, and good luck with the course :) Same her but i solve it with download another version The apt-get update and apt-get install sqlsus worked for me! Thanks! Hi all, I'm getting the following error. Kindly I appreciate any help. sqlsus version 0.7.2 Copyright (c) 2008-2011 Jérémy Ruffet (sativouf) \[!\] - ERROR - Unable to extract server from url\_start, check your configuration file SQL sus is not working ,it throws an error "\[!\] - ERROR - Unable to extract server from url\_start, check your configuration file" Hope somebody can help to resolve this ,? I tried installing it manually but it isn't working. I am getting the same error **\[!\] - ERROR - Unable to extract server from url\_start, check your configuration file** Really require help. Is this some issue related to sqlsus not installed properly or the server not placed at the link? Hi, I was having the same problem as you: **\[!\] – ERROR – Unable to extract server from url\_start, check your configuration file**That's When I ran the command *sqlsus attack* (after creating it of course). I've found a solution for the problem by typing: **sqlsus ./attack**Hope it helps you. Thanx @itayangi. It worked for me. Error.unable to extractconfiguration file Error.unable to extractconfiguration file`
Schedule Demo