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

Add Msf::Post::Linux::Kernel.kernel_config method #11064

Merged
merged 2 commits into from Dec 7, 2018

Conversation

Projects
None yet
3 participants
@bcoles
Contributor

bcoles commented Dec 5, 2018

Add Msf::Post::Linux::Kernel.kernel_config method.

Returns the kernel config as an Array.

If the kernel config is not readable, an empty Array is returned. This seemed like a better idea than returning nil, but I could be convinced otherwise.

@h00die

This comment has been minimized.

Contributor

h00die commented Dec 5, 2018

Returning nil would definitely be more consistent with the rest of the framework

@bcoles

This comment has been minimized.

Contributor

bcoles commented Dec 5, 2018

Returning nil would definitely be more consistent with the rest of the framework

I agree. I've changed it to nil.

Edit: As an aside, the kernel_modules method returns an empty Array, rather than nil, upon failure. Documenting this here.

@busterb busterb self-assigned this Dec 7, 2018

@busterb

This comment has been minimized.

Contributor

busterb commented Dec 7, 2018

Looks good, thanks.

@busterb busterb merged commit 25e4c47 into rapid7:master Dec 7, 2018

2 of 3 checks passed

Metasploit Automation - Sanity Test Execution Running automation sanity tests. Details available on completion.
Details
Metasploit Automation - Test Execution Successfully completed all tests.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

busterb added a commit that referenced this pull request Dec 7, 2018

@busterb

This comment has been minimized.

Contributor

busterb commented Dec 7, 2018

Release Notes

This adds a post-exploitation method for getting the running Linux kernel configuration.

msjenkins-r7 added a commit that referenced this pull request Dec 7, 2018

@bcoles bcoles deleted the bcoles:msf-core-post-linux-kernel branch Dec 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment