DEV Community

Sarthak Gholve
Sarthak Gholve

Posted on

OTP-Awareness-Program

A fun Python project designed to demonstrate how scammers may trick people into sharing OTPs. It uses user input, random OTP generation, sounds, delays, and conditional statements to create an interactive awareness experience. The main message is simple: NEVER share your OTP with unknown people. 🔐💻

print(" HI THIS IS SARS bankings")
name=input(" what is your name ? ")
print("oh nice name,",name)
print("your account has been freezed because of bug in bank computers.")
p=input("if you want to fix bank account pls give ans , yes or no: ")
if p == "no":
print("you are genius , you didnt got in my trap")
else:
print("Ok, Let's proceed")
m=int(input("Give your mobile no.: "))
print("The otp has been sent to mobile no. :",m)
import time
print("wait for 5 seconds")
time.sleep(5)
import random
number = random.randint(10000, 99999)
print(number)
otp=int(input("Send the provided otp: "))
if otp == number :
import winsound
winsound.Beep(1000, 500)
print(" you are hacked !")
time.sleep(3)
print("NEVER GIVE OTP TO UNKNOWN PERSON")
time.sleep(2)
print("old people and young adults are mainly targeted")
print("this was not just joke but serious knowledge for everyone")
print("SO BE AWARE !")
else :
print("INCORRECT OTP")
winsound.Beep(800, 1100)

print("------------------------------")
time.sleep(6)
print("Directed by :")
time.sleep(2)
print("Sarthak Gholve")
print(",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,")

Top comments (1)

Collapse
 
sarthakgholve13-py profile image
Sarthak Gholve

pls try it out its cool