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,647 183,464 07-22-2026, 02:39 PM
Last Post: runkzein
  Why can't you hack? Here's why parolsecurity 1 1,915 07-18-2026, 10:29 AM
Last Post: msisasaqwqc0
  [#1] MAKE REAL MONEY USING DISCORD | EXPLAINED | SCREENSHOTS | UNSATURABLE PARADIES 495 20,057 07-16-2026, 04:38 AM
Last Post: hunghuynh
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,308 123,232 07-15-2026, 06:31 PM
Last Post: Zombie919
  Everything you'll need to dox someone Deletethefaa2 168 7,298 07-15-2026, 12:01 PM
Last Post: msisasaqwqc0



 Users browsing this thread: 1 Guest(s)