Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/prank/Pranh(ex)/assets/pranh(ex).py
2968 views
1
import ctypes
2
from time import sleep
3
4
def show_error_popup(message):
5
while True:
6
result = ctypes.windll.user32.MessageBoxW(None, message, 'Errore', 0x10 | 0x1) # 0x10 = MB_ICONERROR, 0x1 = MB_OK
7
if result == 1: # 1 is OK
8
message = "What do you believe yourself? That I leave so easily?"
9
continue # Open the popup
10
elif result == 2: # 2 is Cancel
11
result = ctypes.windll.user32.MessageBoxW(None, "Are you sure you want to close? I will miss you :'(", 'Chiusura', 0x10 | 0x4) # 0x10 = MB_ICONERROR, 0x4 = MB_YESNO
12
if result == 6: # 6 is "Yes"
13
ctypes.windll.user32.MessageBoxW(None, "Okay, I'll stop. But don't get mad...", 'Informazione', 0x40) # 0x40 = MB_ICONINFORMATION
14
break # Close the popup
15
else:
16
message = "You seem a little indecisive honestly...."
17
continue # Open the popup
18
19
error_message = "Yoh bro be very careful with executables!"
20
show_error_popup(error_message)
21
sleep(60) # Time-Based Easter Egg ^^
22
ctypes.windll.user32.MessageBoxW(None, "However, know that you remain in my heart, yay for DuckyScrip and Hak5. ^^", 'Informazione', 0x40)
23