File tree Expand file tree Collapse file tree 1 file changed +2
-34
lines changed
modules/auxiliary/dos/http Expand file tree Collapse file tree 1 file changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -66,43 +66,10 @@ def depth
66
66
datastore [ 'DEPTH' ]
67
67
end
68
68
69
- def report_cred ( opts )
70
- service_data = {
71
- address : opts [ :ip ] ,
72
- port : opts [ :port ] ,
73
- service_name : opts [ :service_name ] ,
74
- protocol : 'tcp' ,
75
- workspace_id : myworkspace_id
76
- }
77
-
78
- credential_data = {
79
- origin_type : :service ,
80
- module_fullname : fullname ,
81
- username : opts [ :user ]
82
- } . merge ( service_data )
83
-
84
- login_data = {
85
- last_attempted_at : DateTime . now ,
86
- core : create_credential ( credential_data ) ,
87
- status : Metasploit ::Model ::Login ::Status ::SUCCESSFUL ,
88
- proof : opts [ :proof ]
89
- } . merge ( service_data )
90
-
91
- create_credential_login ( login_data )
92
- end
93
-
94
69
def user_exists ( user )
95
70
exists = wordpress_user_exists? ( user )
96
71
if exists
97
- print_good ( "Username \" #{ username } \" is valid" )
98
- report_cred (
99
- ip : rhost ,
100
- port : rport ,
101
- user : user ,
102
- service_name : ( ssl ? 'https' : 'http' ) ,
103
- proof : "WEBAPP=\" Wordpress\" , VHOST=#{ vhost } "
104
- )
105
-
72
+ print_good ( "Username \" #{ user } \" is valid" )
106
73
return true
107
74
else
108
75
print_error ( "\" #{ user } \" is not a valid username" )
@@ -121,6 +88,7 @@ def run
121
88
starting_thread = 1
122
89
123
90
cookie = wordpress_login ( username , password )
91
+ store_valid_credential ( user : username , private : password , proof : cookie )
124
92
if cookie . nil?
125
93
print_error ( 'Aborting operation - failed to authenticate' )
126
94
return
You can’t perform that action at this time.
0 commit comments