-
Notifications
You must be signed in to change notification settings - Fork 241
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
stack smashing errors with SSH and MySQL modules in Ubuntu 16.04 box #9
Comments
Could you please run Ncrack with gdb and print a stack trace? Thanks |
(gdb) run Starting Ncrack 0.5 ( http://ncrack.org ) at 2016-04-25 17:22 PDT mysql://127.0.0.1:3306 (EID 1) Initiating new Connection Program received signal SIGABRT, Aborted. |
I'm having a similar / the same issue. I ran ncrack with three usernames and four passwords. After a successful login, It does a "popped from list FULL" and then "pushed to list FULL". I ran a scan 10 times with the same options and got these three different endings.
If I specify the -f option I do not hit this issue as often. Please let me know if you need anything else. |
FYI -- I'm seeing this same issue running against a single username, a list of 5 passwords and a list of hosts. Appears to get through some of the hosts and then segfaults, but other times it wont get through any and segfaults. Running on the official kali docker image. |
Thanks for your reports! I will look into it. |
The printf returns "mysql_native_password" with three 0xff-bytes at the end. You might want to put that band-aid at the "packet_number == 2"-condition too, but having it at the "packet_number == 0"-condition seems to be enough to avoid a crash. Tested on Ubuntu 19.04 with a local MySQL server: ncrack --user root --pass root mysql://127.0.0.0/31 Signed-off-by: Christian Inci <chris.gh@broke-the-inter.net>
The printf returns "mysql_native_password" with three 0xff-bytes at the end. You might want to put that band-aid at the "packet_number == 2"-condition too, but having it at the "packet_number == 0"-condition seems to be enough to avoid a crash. Tested on Ubuntu 19.04 with a local MySQL server: ncrack --user root --pass root mysql://127.0.0.0/31 Signed-off-by: Christian Inci <chris.gh@broke-the-inter.net>
The "packet_number == 2"-condition is also affected. The (added) printf returns "caching_sha2_password" with three 0xff-bytes at the end. Tested with MySQL 8. It crashed while having a single target selected too. (mysql://x.x.x.x/32 or just mysql://x.x.x.x/) Signed-off-by: Christian Inci <chris.gh@broke-the-inter.net>
Band-aid for MySQL (Probably a part of #9)
I get segmentation fault errors when trying the SSH and MySQL modules against a Ubuntu 16.04 box.
Any ideas?
The text was updated successfully, but these errors were encountered: