Skip to content

Commit 95f9b77

Browse files
Use standard status messages instead of verbose.
1 parent d088005 commit 95f9b77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/mysql/mysql_writable_dirs.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def mysql_query_no_handle(sql)
4343

4444
def run_host(ip)
4545
print_warning("For every writable directory found, a file called #{datastore['FILE_NAME']} with the text test will be written to the directory.")
46-
vprint_status("Login...")
46+
print_status("Login...")
4747

4848
unless mysql_login_datastore
4949
print_error('Unable to login to the server.')
@@ -58,12 +58,12 @@ def run_host(ip)
5858

5959
def check_dir(dir)
6060
begin
61-
vprint_status("Checking #{dir}...")
61+
print_status("Checking #{dir}...")
6262
res = mysql_query_no_handle("SELECT _utf8'test' INTO DUMPFILE '#{dir}/" + datastore['FILE_NAME'] + "'")
6363
rescue ::RbMysql::ServerError => e
64-
vprint_warning("#{e.to_s}")
64+
print_warning("#{e.to_s}")
6565
rescue Rex::ConnectionTimeout => e
66-
vprint_error("Timeout: #{e.message}")
66+
print_error("Timeout: #{e.message}")
6767
else
6868
print_good("#{dir} is writeable")
6969
report_note(

0 commit comments

Comments
 (0)