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 cc87df9 commit 12038edCopy full SHA for 12038ed
lib/msf/core/exploit/mysql.rb
@@ -162,8 +162,9 @@ def mysql_upload_sys_udf(arch=:win32,target_path=nil)
162
end
163
164
def mysql_drop_and_create_sys_exec(soname)
165
- res = mysql_query("DROP FUNCTION IF EXISTS sys_exec") # Already checked, actually
166
- return false if res.nil?
+ # Just drop it. MySQL will always say "OK" anyway.
+ # See #5244
167
+ mysql_query("DROP FUNCTION IF EXISTS sys_exec")
168
169
res = mysql_query("CREATE FUNCTION sys_exec RETURNS int SONAME '#{soname}'")
170
return false if res.nil?
0 commit comments