frissi0n / gtfonow Goto Github PK
View Code? Open in Web Editor NEWAutomatic privilege escalation for misconfigured capabilities, sudo and suid binaries using GTFOBins.
License: MIT License
Automatic privilege escalation for misconfigured capabilities, sudo and suid binaries using GTFOBins.
License: MIT License
The (limited) tests are only ran on Debian, expand tests to other platforms.
Add support for environments without python, such as building with pyinstaller or similar.
Add descriptions from GTFOBins to GTFONow to help user decide which exploit to use.
Upon finding exploitable ssh-agent it asks for "sudo password" and immediately crashes. I tried running it with -a flags (same behavior) and with "--sudo_password", where it asks for the sudo password once, and once provided it prompts for it again and crashes.
Running on kali-linux over wsl2 for tests, but I could test on Arch linux (no wsl) too if needed.
โฏ python gtfonow.py --sudo_password
/ / / / __ / |/ / _ __
/ ( / / / / // // / / _ \ |/|/ /
_/ // // _//|/_/,__/https://github.com/Frissi0n/GTFONow
[!] Found exploitable sgid binary: /usr/bin/ssh-agent
Enter sudo password:[sudo] password for tux: Command timed out. User may need to enter a password.
Traceback (most recent call last):
File "/home/tux/hack/GTFONow/gtfonow/gtfonow.py", line 4224, in
main()
File "/home/tux/hack/GTFONow/gtfonow/gtfonow.py", line 4200, in main
sudo_privescs, suid_privescs, cap_privescs = perform_privilege_escalation_checks(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tux/hack/GTFONow/gtfonow/gtfonow.py", line 4100, in perform_privilege_escalation_checks
cap_privescs.extend(check_cap_bins())
^^^^^^^^^^^^^^^^
File "/home/tux/hack/GTFONow/gtfonow/gtfonow.py", line 3792, in check_cap_bins
if check_capability(binary_path, "cap_setuid"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tux/hack/GTFONow/gtfonow/gtfonow.py", line 3672, in check_capability
if capability in result:
^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
Currently GTFONow provides the user an interactive wizard for exploiting the host. If stdin
is not available, or the user just wants to instantly pop a shell without choosing options, we should provide an interactionless mode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.