We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c633e4 commit d65ed54Copy full SHA for d65ed54
modules/exploits/windows/mysql/mysql_start_up.rb
@@ -102,6 +102,10 @@ def upload_file(bin, dest)
102
end
103
104
def exploit
105
+ unless datastore['STARTUP_FOLDER'].start_with?('/') && datastore['STARTUP_FOLDER'].end_with?('/')
106
+ fail_with(Failure::BadConfig, "STARTUP_FOLDER should start and end with '/' Ex: /programdata/microsoft/windows/start menu/programs/startup/")
107
+ end
108
+
109
print_status("#{peer} - Attempting to login as '#{datastore['USERNAME']}:#{datastore['PASSWORD']}'")
110
begin
111
m = mysql_login(datastore['USERNAME'], datastore['PASSWORD'])
0 commit comments