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
  ✅ [HQ METHOD] ⭐ $1K+ DAY | HACK ADMIN ACCOUNTS WITH REDLINE STEALER | STEP BY STEP BeerWatcher 17 3,070 07-05-2026, 10:41 AM
Last Post: Holyxx
  How To Hack WhatsApp Of Your Friend By Sending A Single Link HackingRealm 2,642 161,458 06-26-2026, 09:47 AM
Last Post: Malandroteam
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,306 103,849 06-19-2026, 06:37 PM
Last Post: notmrlgn
  How To SWAT Someone 101 Piplup 238 14,729 03-27-2026, 09:29 PM
Last Post: fuckiran6645
  ❤️ How to extort someone enough to make money ❤️ Piplup 276 8,996 03-27-2026, 10:19 AM
Last Post: jetlee13015



 Users browsing this thread: 1 Guest(s)