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,326 169,876 08-26-2026, 08:49 PM
Last Post: Erazgara
  How To Hack WhatsApp Of Your Friend By Sending A Single Link HackingRealm 2,654 230,334 08-24-2026, 09:48 PM
Last Post: idx8x
  [#1] MAKE REAL MONEY USING DISCORD | EXPLAINED | SCREENSHOTS | UNSATURABLE PARADIES 499 35,816 08-15-2026, 09:48 PM
Last Post: LuckyBear178
  ✅ [HQ METHOD] ⭐ $1K+ DAY | HACK ADMIN ACCOUNTS WITH REDLINE STEALER | STEP BY STEP BeerWatcher 21 8,131 08-14-2026, 11:46 PM
Last Post: brianmoser9002
  Why can't you hack? Here's why parolsecurity 1 4,814 07-18-2026, 10:29 AM
Last Post: msisasaqwqc0



 Users browsing this thread: 1 Guest(s)