Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing undefined local variable in timestomp.rb and the passing of Time object instances to string function #9070

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

landhb
Copy link

@landhb landhb commented Oct 11, 2017

This pull request fixes an undefined local variable error for the "path" variable in timestomp.rb when utilizing the "-f" command line parameter. I believe the bug was introduced in #8897 when it was merged on Sept 1.

Additionally client.priv.fs.get_file_mace already returns a Time object instance, so no need to pass the values to str_to_time

Verification

List the steps needed to make sure this thing works

  • Start msfconsole
  • Obtain a meterpreter session
  • timestomp file1.txt -f "c:\\path\\to\\file2.txt"
  • There should no longer be an undefined local variable error or a Method error

Original bug screenshots

bug

bug2

Fixed screenshot

fixed

Bradley Landherr added 2 commits October 11, 2017 06:28
@busterb
Copy link
Contributor

busterb commented Oct 24, 2017

Thanks a lot @landhb - sorry about that!

busterb pushed a commit to busterb/metasploit-framework that referenced this pull request Oct 24, 2017
@busterb busterb merged commit bdc00ef into rapid7:master Oct 24, 2017
@busterb
Copy link
Contributor

busterb commented Oct 24, 2017

Release Notes

This fix address an issue that occurs when copying the MACE attributes from one file to another with the Meterpreter timestomp extension.

@tdoan-r7 tdoan-r7 added the rn-fix release notes fix label Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rn-fix release notes fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants