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

Add an Auto option to live_compile #19462

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

jvoisin
Copy link
Contributor

@jvoisin jvoisin commented Sep 14, 2024

As suggested by @zeroSteiner

Copy link
Contributor

@smcintyre-r7 smcintyre-r7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the #live_compile? method needs to be updated to check if the COMPILER option is Auto or one of the explicit options.

Right now, I'm getting this exception and the compiler isn't selected.

msf6 exploit(linux/local/af_packet_chocobo_root_priv_esc) > run

[*] Started reverse TCP handler on 192.168.250.134:4444 
[!] AutoCheck is disabled, proceeding with exploitation
[-] Exploit aborted due to failure: bad-config: Auto is not installed. Set COMPILE False to upload a pre-compiled executable.
[*] Exploit completed, but no session was created.
msf6 exploit(linux/local/af_packet_chocobo_root_priv_esc) > 

lib/msf/core/post/linux/compile.rb Outdated Show resolved Hide resolved
lib/msf/core/post/linux/compile.rb Outdated Show resolved Hide resolved
lib/msf/core/post/linux/compile.rb Outdated Show resolved Hide resolved
Co-authored-by: zeroSteiner
@smcintyre-r7 smcintyre-r7 merged commit cd96bcd into rapid7:master Sep 19, 2024
55 of 63 checks passed
@cdelafuente-r7
Copy link
Contributor

Release Notes

This adds an Auto option to the Msf::Post::Linux::Compile library. This enables automatic selection of the compiler according to what is available locally on the target system.

@cdelafuente-r7 cdelafuente-r7 added the rn-enhancement release notes enhancement label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants