-
Notifications
You must be signed in to change notification settings - Fork 2.5k
mysql lua scripts throw mysql.lua:93: bad argument #2 to 'unpack' (data string too short) error #2128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. |
Please test updated nselib/mysql.lua from 932901e and report back. |
Hi, it works now. See below. Thanks for fixing it!
|
The fix has been committed as r38089. Thank you for reporting the issue! |
Update: this is now fixed in Nmap 7.91 |
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):
To Reproduce
See above discription
Expected behavior
Scripts to retrieve and display the information successfully.
Version info (please complete the following information):
nmap --version
:The text was updated successfully, but these errors were encountered: