Skip to content

Commit 6e84151

Browse files
author
HD Moore
committed
Fix msftidy and tweak a few modules missing timeouts
1 parent a279db7 commit 6e84151

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

modules/auxiliary/scanner/tftp/tftpbrute.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def run_host(ip)
5050
filename.strip!
5151
pkt = "\x00\x01" + filename + "\x00" + "netascii" + "\x00"
5252
udp_sock.sendto(pkt, ip, datastore['RPORT'])
53-
resp = udp_sock.get(1)
53+
resp = udp_sock.get(3)
5454
if resp and resp.length >= 2 and resp[0, 2] == "\x00\x03"
5555
print_status("Found #{filename} on #{ip}")
5656
#Add Report

modules/exploits/linux/pop3/cyrus_pop3d_popsubfolders.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def initialize(info = {})
6363
def exploit
6464

6565
connect
66+
banner = sock.get_once.to_s.strip
6667

67-
print_status "Banner: #{banner = sock.gets}"
68+
print_status "Banner: #{banner}"
6869

6970
# NOTE: orig poc shellcode len: 84
7071

modules/exploits/windows/misc/bomberclone_overflow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def exploit
6464
print_status("Trying #{target.name} using lstrcpyA address at #{"0x%.8x" % target.ret }...")
6565

6666
udp_sock.put(request)
67-
udp_sock.get
67+
udp_sock.get(5)
6868

6969
handler(udp_sock)
7070
disconnect_udp

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def check_sock_get
536536
end
537537

538538
def check_udp_sock_get
539-
if @source =~ /udp_sock\.get[^\d]+/m
539+
if @source =~ /udp_sock\.get/m and source !~ /udp_sock\.get\([a-zA-Z0-9]+/
540540
info('Please specify a timeout to udp_sock.get')
541541
end
542542
end

0 commit comments

Comments
 (0)