@@ -50,7 +50,7 @@ def setup()
50
50
end
51
51
52
52
def get_xml_rpc_url ( ip )
53
- # code to find the xmlrpc url when passed in RHOST
53
+ # code to find the xmlrpc url when passed in IP
54
54
vprint_status ( "Enumerating XML-RPC URI for #{ ip } ..." )
55
55
56
56
begin
@@ -90,7 +90,7 @@ def generate_pingback_xml (target, valid_blog_post)
90
90
end
91
91
92
92
def get_blog_posts ( xml_rpc , ip )
93
- # find all blog posts within RHOST and determine if pingback is enabled
93
+ # find all blog posts within IP and determine if pingback is enabled
94
94
vprint_status ( "Enumerating Blog posts..." )
95
95
blog_posts = { }
96
96
@@ -110,14 +110,14 @@ def get_blog_posts(xml_rpc, ip)
110
110
else
111
111
vprint_status ( "Web server returned a #{ res . code } ...following to #{ res . headers [ 'location' ] } " )
112
112
end
113
- uri = res . headers [ 'location' ] . sub ( /.*?#{ datastore [ 'RHOST' ] } / , "" )
113
+ uri = res . headers [ 'location' ] . sub ( /.*?#{ ip } / , "" )
114
114
res = send_request_cgi ( {
115
115
'uri' => "#{ uri } " ,
116
116
'method' => 'GET' ,
117
117
} )
118
118
119
119
if res . code == 200
120
- print_status ( "Feed located at http://#{ datastore [ 'RHOST' ] } #{ uri } " )
120
+ vprint_status ( "Feed located at http://#{ ip } #{ uri } " )
121
121
end
122
122
count = count - 1
123
123
end
@@ -152,7 +152,7 @@ def get_blog_posts(xml_rpc, ip)
152
152
153
153
# method to send xml-rpc requests
154
154
def get_pingback_request ( xml_rpc , target , blog_post )
155
- uri = xml_rpc . sub ( /.*?#{ datastore [ 'RHOST' ] } / , "" )
155
+ uri = xml_rpc . sub ( /.*?#{ ip } / , "" )
156
156
# create xml pingback request
157
157
pingback_xml = generate_pingback_xml ( target , blog_post )
158
158
0 commit comments