DEV Community

Cover image for Terminal Tomfoolery: SSH Pranks to Try on Your Friends
Dixit Ram
Dixit Ram

Posted on

Terminal Tomfoolery: SSH Pranks to Try on Your Friends

I got this idea to write this blog post because I prank my friends a lot in our computer labs.

So I thought, why don't I tell everyone how I do it? I'll give you some ideas to prank your friends, but first you need to know how to connect to their computer using SSH.

This is for Linux and GNOME-based OS. You can search for specific commands to open the terminal or settings.

1) Changing the Input Language 🌍

First of all, know how to get the current input language using this command:

gsettings get org.gnome.desktop.input-sources sources
Enter fullscreen mode Exit fullscreen mode

Now, let's change the language. I like to change it to Arabic.
Here, ara+azerty is the language code:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'ara+azerty')]"
Enter fullscreen mode Exit fullscreen mode

AND YOU'VE CHANGED YOUR FRIEND'S INPUT LANGUAGE! 🎯

2) Funny ASCII Art 🎨

I got this from a Text to ASCII art generator site (https://patorjk.com/software/taag/). First, copy the ASCII art.
Now we need to open a terminal window and echo that art on our friend's screen.

Here's the command:

gnome-terminal -- bash -c "echo '<PASTE ASCII ART> '; exec bash"
Enter fullscreen mode Exit fullscreen mode

3) Infinite Spam πŸ”„

We'll use the yes command here.
It will open a terminal and infinitely display the message.

Command:

gnome-terminal -- bash -c "yes 'You are pranked!'; exec bash"
Enter fullscreen mode Exit fullscreen mode

4) Fork Bomb (Do at Your Own Risk - Might Lose a Friend!) ⚠️

We'll log into their computer and run this classic Fork Bomb command.
It creates copies of itself until the system becomes unresponsive.

:(){ :|:& };:
Enter fullscreen mode Exit fullscreen mode

Warning: This can seriously mess up their system!

5) Rick Roll 🎡

We'll play "Never Gonna Give You Up" on our friend's default browser:

xdg-open "https://youtu.be/xvFZjo5PgG0?si=DFiisy9gTdeRxvu5"
Enter fullscreen mode Exit fullscreen mode

Or:

gnome-terminal -- bash -c "xdg-open 'https://youtu.be/xvFZjo5PgG0?si=DFiisy9gTdeRxvu5'; exec bash"
Enter fullscreen mode Exit fullscreen mode

6) Change Display Language & Wallpaper πŸ–ΌοΈ

For changing wallpaper, you need to get the image URL first and run a CURL command to save it on their PC.

Then use these commands:

For Light Mode:

gsettings set org.gnome.desktop.background picture-uri '<IMAGE PATH>'
Enter fullscreen mode Exit fullscreen mode

For Dark Mode:

gsettings set org.gnome.desktop.background picture-uri-dark '<IMAGE PATH>'
Enter fullscreen mode Exit fullscreen mode

Bonus Tip πŸ’‘

If that account has permission to install packages, you can use some fun commands from this article from itsFOSS by opening a new terminal on their screen:

Command:

gnome-terminal -- bash -c "<your_command_here>; exec bash"
Enter fullscreen mode Exit fullscreen mode

How to See Who Attacked You? πŸ•΅οΈ

Use these commands to check who pranked you:

  • who
  • last

Remember: Pranking should be fun for everyone involved! Make sure your friends are cool with it, and don't do anything that could cause real damage or get you in trouble. Happy pranking, but prank responsibly! πŸ˜„

P.S. - If someone pranks you back twice as hard, you probably deserved it! πŸ˜…

Top comments (2)

Collapse
 
bhattideven profile image
Deven (UnOptimised)

Never think to try on me!