We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ae533f + 8acc768 commit 9625504Copy full SHA for 9625504
lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp.rb
@@ -52,12 +52,21 @@ def name
52
#
53
def cmd_timestomp(*args)
54
if (args.length < 2)
55
- print_line("\nUsage: timestomp file_path OPTIONS\n" +
+ print_line("\nUsage: timestomp OPTIONS file_path\n" +
56
@@timestomp_opts.usage)
57
return
58
end
59
60
- file_path = args.shift
+ file_path = nil
61
+ args.each { |a| file_path = a unless a[0] == "-" }
62
+
63
+ if file_path.nil?
64
+ print_line("\nNo file_path specified.")
65
+ return
66
+ end
67
68
+ args.delete(file_path)
69
70
modified = nil
71
accessed = nil
72
creation = nil
0 commit comments