Twitter: Hack someone by using 'cat <filename>'
by blackboar - Monday April 1, 2024 at 08:57 PM
#1
Definitely a case to use "strings <filename>" rather than 'cat <filename>'

Not really a hack, but if you downloaded a script/program and check it out using the unix command 'cat', be aware that folks can use certain characters to "hide" the code

So the idea: if they use "cat" instead of opening the file in vi or an editor then you can hide code, specifically a reverse shell or dumping the /etc/passwd file

****************

echo -e '#!/bin/sh\ncat /etc/password\nexit\n\033[A\033[Aecho "Hello dear reader, I am just a harmless script, safe to run me!"' >demo.sh

***********
So total click bait but still "kinda" accurate. Assuming I typed it correctly from the image I downloaded.

But when you cat "demo.sh" you only see the harmless bit.

$ cat demo.sh
#!/bin/sh
echo "Hello dear reader, I am just a harmless script, safe to run me!"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,306 99,376 7 hours ago
Last Post: DiggityDooo
  How To Hack WhatsApp Of Your Friend By Sending A Single Link HackingRealm 2,640 156,334 03-28-2026, 12:53 PM
Last Post: sameerlike141
  How To SWAT Someone 101 Piplup 238 13,512 03-27-2026, 09:29 PM
Last Post: fuckiran6645
  ✅ [HQ METHOD] ⭐ $1K+ DAY | HACK ADMIN ACCOUNTS WITH REDLINE STEALER | STEP BY STEP BeerWatcher 13 555 03-27-2026, 10:23 AM
Last Post: jetlee13015
  ❤️ How to extort someone enough to make money ❤️ Piplup 277 7,843 03-27-2026, 10:19 AM
Last Post: jetlee13015



 Users browsing this thread: