-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
bash_profile_persistence: Add notes and resolve rubocop violations #15986
Conversation
Looks like the description was initially committed with extra quotes, and Rubocop just formatted it nicely metasploit-framework/modules/exploits/linux/local/bash_profile_persistence.rb Lines 17 to 22 in e577de4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting sanity tests to pass
rescue | ||
hostname = cmd_exec("hostname") | ||
hostname = session.sys.config.sysinfo['Computer'] | ||
rescue StandardError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to presume this change is ok. If it isn't we'll find out soon enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rescue StandardError | |
rescue NoMethodError |
Since sysinfo will return nil
if not on meterpreter this should just return a NoMethodError
for []
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since sysinfo will return
nil
if not on meterpreter this should just return aNoMethodError
for[]
.
Fixed.
641a2a8
to
048cd25
Compare
048cd25
to
5d010fc
Compare
Release NotesModule notes added to |
Removes a couple of quotes
"
in the module description. Not sure why they were there.Resolved rubocop violations while I was at it. Also added notes, as missing notes is also a rubocop violation.