File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -415,23 +415,23 @@ def cmd_load(*args)
415
415
416
416
@@load_opts . parse ( args ) { |opt , idx , val |
417
417
case opt
418
- when "-l"
419
- exts = [ ]
420
- msf_path = MeterpreterBinaries . metasploit_data_dir
421
- gem_path = MeterpreterBinaries . local_dir
422
- [ msf_path , gem_path ] . each do |path |
423
- ::Dir . entries ( path ) . each { |f |
424
- if ( ::File . file? ( ::File . join ( path , f ) ) && f =~ /ext_server_(.*)\. #{ client . binary_suffix } / )
425
- exts . push ( $1) unless exts . include? ( $1)
426
- end
427
- }
428
- end
429
- print ( exts . sort . join ( "\n " ) + "\n " )
418
+ when "-l"
419
+ exts = [ ]
420
+ msf_path = MeterpreterBinaries . metasploit_data_dir
421
+ gem_path = MeterpreterBinaries . local_dir
422
+ [ msf_path , gem_path ] . each do |path |
423
+ ::Dir . entries ( path ) . each { |f |
424
+ if ( ::File . file? ( ::File . join ( path , f ) ) && f =~ /ext_server_(.*)\. #{ client . binary_suffix } / )
425
+ exts . push ( $1) unless exts . include? ( $1)
426
+ end
427
+ }
428
+ end
429
+ print ( exts . sort . join ( "\n " ) + "\n " )
430
430
431
- return true
432
- when "-h"
433
- cmd_load_help
434
- return true
431
+ return true
432
+ when "-h"
433
+ cmd_load_help
434
+ return true
435
435
end
436
436
}
437
437
@@ -736,10 +736,10 @@ def cmd_write(*args)
736
736
737
737
@@write_opts . parse ( args ) { |opt , idx , val |
738
738
case opt
739
- when "-f"
740
- src_file = val
741
- else
742
- cid = val . to_i
739
+ when "-f"
740
+ src_file = val
741
+ else
742
+ cid = val . to_i
743
743
end
744
744
}
745
745
You can’t perform that action at this time.
0 commit comments