Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
mysql lua scripts throw mysql.lua:93: bad argument #2 to 'unpack' (data string too short) error #2128
Describe the bug
I'm running nmap 7.80 from the latest Kali distribution (2020.3).
As a target I'm using the Metasploitable-Linux-2.0.0 VM which runs a mysql 5.0.51a-3ubuntu5 on 192.168.56.103:3306 and has a root account without a password.
Running nmap mysql scripts against it results in this output:
Debug output (-d) for one of the failed scripts as an example (it seems to be the same for all of them):
Version info (please complete the following information):
PS: The same error is raised when I run the mysql-* nmap scripts against the local MariaDB 10.3.24-MariaDB-2 Debian buildd-unstable on my kali. In contrary to the Metasploitable VM above this also requires a password (which I provided using --script-args). So it seems the empty password is not the cause of problem.
Hi, it works now. See below. Thanks for fixing it!