Skip to content

Commit c676ac1

Browse files
author
HD Moore
committed
Fallback to a localhost variant to make the length predictable
1 parent d0324e8 commit c676ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/payloads/stagers/windows/reverse_http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def generate
7474
u = "/" + generate_uri_checksum(Msf::Handler::ReverseHttp::URI_CHECKSUM_INITW) + "\x00"
7575
p[i, u.length] = u
7676

77-
lhost = datastore['LHOST'] || Rex::Socket.source_address
77+
lhost = datastore['LHOST'] || '127.127.127.127'
7878
if Rex::Socket.is_ipv6?(lhost)
7979
lhost = "[#{lhost}]"
8080
end

0 commit comments

Comments
 (0)