Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/prank/Alien Message From Computer/script.py
2968 views
1
import os
2
from time import sleep
3
try:
4
import pyttsx3
5
except:
6
os.system("pip install pyttsx3")
7
import pyttsx3
8
9
10
# How much time you want to wait before speak
11
sleep(60)
12
13
alien_message = 'Greetings to the inhabitants of planet Earth. I am an alien from a distant planet named Hak5 and I have taken control of this computer to communicate with you. I want to announce to you that in exactly one year\'s time our invasion fleet will arrive on your planet because we have heard that you make very good fries. Resistance is useless. Your only option is to give us all the fries you have and to produce as many as possible to satiate us. Your planet will become a potato chip colony and you will produce forever. Get ready, earthlings. Our hunger is near.'
14
15
motore = pyttsx3.init()
16
17
# Set alien voice
18
voce_alienea = motore.getProperty('voices')[1]
19
motore.setProperty('voice', voce_alienea.id)
20
21
# Set the pitch property to make the voice more alien-like
22
motore.setProperty('pitch', 70)
23
24
motore.say(alien_message)
25
motore.runAndWait()
26