File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/priv Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ def cmd_timestomp(*args)
78
78
creation = str_to_time ( val )
79
79
emodified = str_to_time ( val )
80
80
when "-f"
81
- print_status ( "Setting MACE attributes on #{ path } from #{ val } " )
82
- hash = client . priv . fs . get_file_mace ( path )
81
+ print_status ( "Pulling MACE attributes from #{ val } " )
82
+ hash = client . priv . fs . get_file_mace ( val )
83
83
if hash
84
- modified = str_to_time ( hash [ 'Modified' ] )
85
- accessed = str_to_time ( hash [ 'Accessed' ] )
86
- creation = str_to_time ( hash [ 'Created' ] )
87
- emodified = str_to_time ( hash [ 'Entry Modified' ] )
84
+ modified = hash [ 'Modified' ]
85
+ accessed = hash [ 'Accessed' ]
86
+ creation = hash [ 'Created' ]
87
+ emodified = hash [ 'Entry Modified' ]
88
88
end
89
89
when "-b"
90
90
blank_file_mace = true
@@ -112,6 +112,7 @@ def cmd_timestomp(*args)
112
112
end
113
113
114
114
paths . uniq . each do |path |
115
+
115
116
# If any one of the four times were specified, change them.
116
117
if modified || accessed || creation || emodified
117
118
print_status ( "Setting specific MACE attributes on #{ path } " )
You can’t perform that action at this time.
0 commit comments