Top-Hat-Sec

General Category => Scripting / Programming => Topic started by: ch3rn0byl on February 09, 2017, 09:05:33 PM

Title: Valentines script
Post by: ch3rn0byl on February 09, 2017, 09:05:33 PM
Evening!

Valentines coming up and what is better than a cool 1337 hacker dude to make a loving and romantic script for your so? You'll actually be a hero!
Twilio is NOT free, but it's a service that I use quite a bit. Obviously, you'll take the time of nice shit to replace in the list and put some thought to it.

How can you use this?

A cronjob for every hour on the hour? or some other random time??

Anywho, enjoy

Code: [Select]
from twilio.rest import TwilioRestClient
import random

# put your own credentials here
ACCOUNT_SID = ''
AUTH_TOKEN = ''

client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)

romanticMessages = [
    'Say ho, no cheddar on my sandwich. I dont like it',
    'Get nekkid',
    'You look hotter in the dark. Lets keep it that way',
    'Lose weight'
]

def sendMessage(message):
    client.messages.create(
        to = '',        # Your SO
        from_= '',      # You twilio number
        body = message)

message = random.choice(romanticMessages)
sendMessage(message)
print('[+] Sent: {}'.format(message))
Title: Re: Valentines script
Post by: GalaxyNinja on February 10, 2017, 07:31:09 PM
Alternatively, you could hack their computer and make ascii hearts pop up everywhere...  ;)

ch3rn wasn't kidding about changing the messages in the script. Otherwise one might find themselves dateless on Valentine's Day.
Title: Re: Valentines script
Post by: Amonsec on February 12, 2017, 05:26:20 AM
Do you want to be my Valentin Ch3rn0byl?

Good script btw! ;)
Title: Re: Valentines script
Post by: Edi0t on October 06, 2017, 11:31:48 PM
Chern, you should add "You look fat when you cry". It's really romantic. =)