Rick-Rolling is definitely a prank many wish to master, but few have done so. To be honest, I happened to be one of the suckers who used to yearn to become a Rick-Rolling master. But not for long. After extensive research and hard work, I have come up w/ 3 ways to Rick-Roll anybody, all thx, to the PWR OF CODE! 💪💪💪
1. Simple website
As developers, we all know the noobs under us will be COMPLETELY shocked when they see what their all-knowing counterparts have created. And using that insolence, we can back-stab them!
Step 1: Create a website
Simply do that by typing/copying and pasting the following code:
</span>
Our friendship!❤️❤️❤️
body {
margin: 0; /* Remove default body margins */
}
.header {
background: yellow;
font-family: sans-serif;
width: 100%; /* Make it span the full width */
padding: 10px;
font-size:medium;
text-align: center;
top: 0; /* Stick it to the top */
z-index: 100; /* Ensure it's above other elements */
}
.pa {
padding-top: 25px;
font-family: sans-serif;
font-size:medium;
text-align: center
}
.pa1 {
padding-top: 25px;
font-family: sans-serif;
font-size:medium;
text-align: center
}
class = header>
Our Great Friendship!❤️❤️❤️
class = pa>
Our friendship has been a winding road of shared laughter, whispered secrets, and
unwavering support. We've navigated late-night talks, spontaneous adventures,
and the occasional (but always temporary) disagreements. Through it all, a constant thread of
understanding and genuine care has kept us close, making it clear that no matter what, we'll always
have each other's backs.
class = pa1>
Get ready for a trip down memory lane! Here's a little video showcasing our
friendship's journey through the years:
style="text-align: center;">
id="myVideo" width="320" height="240" controls autoplay>
id="videoSource" src="PATH_TO_NEVER_GONNA_GIVE_YOU_UP_FILE" type="video/mp4">
Your browser does not support the video tag.
Enter fullscreen mode
Exit fullscreen mode
Step 2: Convince your friend/s Tell your friend/s created your own website and would like to share it w/ them. Once they're convinced, share the website, and let the prank begin! 😆😆😆
2. Spamming their email
Emails from strangers are just a nuisance people have to constantly deal with. But what would happen if you combined constant email spamming, w/ Rick-Rolling? Step 1: Write Your Code Using Python, we can send emails with the following code:
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
def send_email_with_video():
# Email sender and recipient
sender_email = "[email protected]"
receiver_email = "[email protected]"
password = "your_password" # Use an app password for security if possible
# Create the email message
message = MIMEMultipart()
message['From'] = sender_email
message['To'] = receiver_email
message['Subject'] = "Subject: Video Attachment"
# Email body text
body = "Hi, do watch this, it's fire!!!!!."
message.attach(MIMEText(body, 'plain'))
# Attach the video file
file_path = "path_Never_Gonna_Give_Up_Video.mp4" # Replace with the path to your video
file_name = "video.mp4" # Replace with the name of your video file
with open(file_path, "rb") as video_file:
part = MIMEBase('application', 'octet-stream')
part.set_payload(video_file.read())
encoders.encode_base64(part)
part.add_header(
"Content-Disposition",
f"attachment; filename={file_name}",
)
message.attach(part)
# Set up the SMTP server and send the email
try:
with smtplib.SMTP('smtp.gmail.com', 587) as server: # Replace with your email provider's SMTP server
server.starttls()
server.login(sender_email, password)
server.send_message(message)
print("Email sent successfully!")
except Exception as e:
print(f"Error: {e}")
Enter fullscreen mode
Exit fullscreen mode
If you run this, it would only send the email once. To make it repetitive, we have to go on to step 2.Step 2: Make the code run continuouslyBy adding the following to the code:
def send_emails_every_10_seconds():
while True: # Infinite loop to send emails repeatedly
send_email_with_video()
print("Waiting for 10 seconds before sending the next email...")
time.sleep(10) # Wait for 10 seconds
# Call the function to start sending emails every 10 seconds g
send_emails_every_10_seconds()
Enter fullscreen mode
Exit fullscreen mode
the program will send emails to whatever person you want to terrorize 🤣🤣🤣.
3. Everlasting Rick-Rolling
The two examples above are surely going the prank the heck out of your friends! But know this, they were just an appetizer, a sample, of what this one is. And this, my fellow programmers, will truly make you, a Rick-Rolling Master.Step 1: Install pygameFor this to work, we'll need to install a Python package known as pygame. Simply do that by typing the following into your IDE's terminal:
pip install pygame
Enter fullscreen mode
Exit fullscreen mode
Step 2: Write Your CodeFinished with step one, create a Python file. Once you've done that, add the following:
import pygame
import time
sound_file = " " # Replace with the actual path
pygame.mixer.init()
while True:
try:
sound = pygame.mixer.Sound(sound_file)
sound.play()
# If you want to wait for the sound to finish playing:
while pygame.mixer.get_busy():
pygame.time.delay(100) # Wait a bit
except pygame.error as e:
print(f"Error playing sound: {e}")
time.sleep(10)
pygame.mixer.quit()
Enter fullscreen mode
Exit fullscreen mode
Step 3: Create Another Python FileIf you send the file above to an experienced programmer, they won't be stupid enough to run it. To avoid that, create another file, and in it simply add the following:
import file_name_containing_Rick_Rolling_Code
file_name_containing_Rick_Rolling_Code()
Enter fullscreen mode
Exit fullscreen mode
Step 4: Make the File .exeIf you sent the file made in step 3 to your friend, and they run it, woe is you! To avoid that, you need to make the file .exe using a tool called PyInstaller. First, install the tool w/ by writing this command in your terminal:
pip install PyInstaller
Enter fullscreen mode
Exit fullscreen mode
Afterwards, run the following in your command prompt to make your Python file executable:
pyinstaller -w --onefile your_script.py
Enter fullscreen mode
Exit fullscreen mode
Step 5: Send the File to Your FriendAfter creating the .exe file, import it to your Google Drive, then send an email to your friend, stating (or at least along the lines of):
Hey dude, just created a new Python program! To see if it can work with Windows or Linux Commands, be sure to run the file by typing in the terminal:
pythonw file_name.exe = if you're using Windows device
nohup python file_name.exe & = if you're using linux device
Unbeknownst to your friend, the commands (pythonw file_name.py or nohup python file_name.py &) will Rick-Roll them until they restart their device or logout 🤣🤣🤣!
Conclusion
In this post, you've explored three ways to Rick-Roll your friends:
With a simple website
Spamming their email
Running infinite code which blasts the song every 30 seconds
Hopefully these techniques will work and be free to share any doubts or what happened when you tried these tricks on your friend. GDBL and talk to you soon ❤️❤️❤️ ✌️✌️✌️!