Skip to content

Commit ebb0635

Browse files
committed
stopped using fixed table name
1 parent fce58ad commit ebb0635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/mysql/mysql_file_enum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run_host(ip)
7272

7373
def check_dir dir
7474
begin
75-
res = mysql_query_no_handle("LOAD DATA INFILE '" + dir + "' INTO TABLE brute")
75+
res = mysql_query_no_handle("LOAD DATA INFILE '" + dir + "' INTO TABLE " + datastore['TABLE_NAME'])
7676
rescue ::RbMysql::TextfileNotReadable
7777
print_good(dir + " is a directory and exists")
7878
rescue ::RbMysql::ServerError

0 commit comments

Comments
 (0)