File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def commands
52
52
'cat' => 'Read the contents of a file to the screen' ,
53
53
'cd' => 'Change directory' ,
54
54
'del' => 'Delete the specified file' ,
55
+ 'dir' => 'List files (alias for ls)' ,
55
56
'download' => 'Download a file or directory' ,
56
57
'edit' => 'Edit a file' ,
57
58
'getlwd' => 'Print local working directory' ,
@@ -73,6 +74,7 @@ def commands
73
74
'cat' => [ ] ,
74
75
'cd' => [ 'stdapi_fs_chdir' ] ,
75
76
'del' => [ 'stdapi_fs_rm' ] ,
77
+ 'dir' => [ 'stdapi_fs_stat' , 'stdapi_fs_ls' ] ,
76
78
'download' => [ ] ,
77
79
'edit' => [ ] ,
78
80
'getlwd' => [ ] ,
@@ -598,6 +600,12 @@ def cmd_ls(*args)
598
600
return true
599
601
end
600
602
603
+ #
604
+ # Alias the ls command to dir, for those of us who have windows muscle-memory
605
+ #
606
+ alias cmd_dir cmd_ls
607
+
608
+
601
609
#
602
610
# Make one or more directory.
603
611
#
You can’t perform that action at this time.
0 commit comments