Skip to content

Commit 288954a

Browse files
rootroot
authored andcommitted
recvfrom allocation changed
1 parent 84bb5b5 commit 288954a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/recon/outbound_ports.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def connections(remote, dst_port, h_icmp, h_tcp, to)
130130

131131
begin
132132
::Timeout.timeout(to) do
133-
r = client.railgun.ws2_32.recvfrom(h_icmp, "", 100, 0, from, 16)
133+
r = client.railgun.ws2_32.recvfrom(h_icmp, "\x00" * 100, 100, 0, from, 16)
134134
hop = Rex::Socket.addr_ntoa(r['from'][4..7])
135135
return hop
136136
end

0 commit comments

Comments
 (0)