I can’t get my head around this “During our penetration test, we found weak credentials “robin:robin”. We should try these against the MySQL server. What is the email address of the customer “Otto Lang”?” … and this makes me feel super dumb.
I tried ‘mysql -u -p ’ with like a thousand different possibilities, changing ports, adding domain name, dozens of common username and mirrored, reversed, scrambled and whatever username as pass. I always get that same ‘ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ (2)’
Also tried nmap mysql-enum and mysql-brute scripts with the footprinting name list from the module.
Went back to SMTP enum to try and find mail address for Otto Lang.
Looked at HackTricks and Pentestmonkey to find if i missed some obvious.
Meaning that server is down ???
Because that’s the kind of confirmation I was looking for.
I’ll check on it again today. If I still get the same result I’ll contact them in chat.
No hai capito male… L’errore è nel modo in qui formuli il comando per collegarti…
Prova cosi mysql -h host -u user -p
(dopo la p non mettere la passw.Te la chiederà in seguito).
You’re right mate
The problem was I wasn’t using -h for the host. It seems it’s missing in the command I’ve wrote for myself…because it is missing in one of the academy commands. @NPTG was right too. Lol
For some reason i thought -h was to be used for passwordless only
Thx for the help mate
Do Like This:
connect to user robin through ssh with pass robin
mysql -V – [For Version]
mysql -urobin -probin Note:- Don’t Give Space after -p
SHOW DATABASES;
use customers;
show Tables;
select * from [table name];
copy and grep for otto
Hello! Can somebody help! It’s not the first when I try in the HTB pwnbox and it’s not working . I’m running this command : python3 mssqlclient.py backdoor@10.129.195.164 -windows-auth
And I get this message. What shoul I do? python3: can’t open file ‘/home/htb-ac-1386447/mssqlclient.py’: [Errno 2] No such file or directory
i was getting errors for self-signed cert when i tried to connect w/ mysql. if anybody else is struggling, try this switch: --ssl-verify-server-cert=FALSE