Skip to content

Instantly share code, notes, and snippets.

View AlexLynd's full-sized avatar
🐢

Alex Lynd AlexLynd

🐢
View GitHub Profile
#include <IRremote.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
const int RECV_PIN= 7; // IR data pin
@AlexLynd
AlexLynd / Spectrum-PassGen.py
Last active April 22, 2024 15:10
default Spectrum Router password generator based off SSID
essid, bssid = input("ESSID: "), input("BSSID: ").replace(":","")
psk= essid[0:len(essid)-2] + bssid[6:10] + essid[len(essid)-2:len(essid)]
print("Password: "psk)
@AlexLynd
AlexLynd / shodan.py
Last active September 24, 2021 13:14
Python Shodan utility [GCI 2019-20]
from os import system
system("clear")
while True :
print("1. What's my IP")
print("2. Scanning host")
print("3. Shodan search to scan ip, port, hostname")
print("0. Exit\n")
option = input("SHODAN>")
@AlexLynd
AlexLynd / net-scan.py
Last active September 24, 2021 13:15
Python network scanning utility [GCI 2019-20]
import subprocess, ipaddress, socket, concurrent.futures , re
from subprocess import Popen, PIPE
def myIP(): # get my IP addy
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip = s.getsockname()[0]
s.close()
return ip
@AlexLynd
AlexLynd / ACSL-SR1-1920.py
Last active September 24, 2021 13:14
ACSL Senior Contest 1 [2019-20]
def prime(n):
count = [];
while n%2 == 0:
count.append(2)
n = n/2
for i in range(3,int(n**.5)+1,2):
while n%i == 0:
count.append (i)
n = n/i
if n>2: count.append(int(n))
@AlexLynd
AlexLynd / port-scan.py
Last active September 24, 2021 13:14
Python port scanner [GCI 2019-20]
import socket
host = raw_input("enter host: ")
IP = socket.gethostbyname(host) # for remote
print("scanning\n----------")
for port in range(1,1025):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
open = sock.connect_ex((IP, port))
@AlexLynd
AlexLynd / igg-wordgen.py
Last active September 24, 2021 13:14
IGG Games wordlist for blocking random ad HTML elements
from itertools import product
from string import ascii_lowercase, ascii_uppercase
alphabet = ascii_lowercase + ascii_uppercase
codes = open("codelist.txt","w+")
keywords = [''.join(i) for i in product(alphabet, repeat = 3)]
for words in keywords:
codes.write(words+"\n")
@AlexLynd
AlexLynd / hash-crack.py
Last active September 24, 2021 13:14
Python basic hash cracker / encoder [GCI 2019-20]
import hashlib, sys
def get_hash(case, arg) :
hash_val = {
1: hashlib.md5(arg.encode('utf-8')).hexdigest() ,
2: hashlib.sha1(arg.encode('utf-8')).hexdigest() ,
3: hashlib.sha224(arg.encode('utf-8')).hexdigest() ,
4: hashlib.sha256(arg.encode('utf-8')).hexdigest() ,
5: hashlib.sha384(arg.encode('utf-8')).hexdigest() ,
6: hashlib.sha512(arg.encode('utf-8')).hexdigest() ,
@AlexLynd
AlexLynd / phonegen.py
Last active September 24, 2021 13:13
Phone number wordlist generator for hacking Wi-Fi networks
import os
from os import path
area_code= input("Area Code: ")
output= "wlist/"+area_code+".txt"
if not os.path.exists("wlist"):
os.mkdir("wlist")
if path.exists(output):
print(output+" already exists, overwriting")
os.remove(output)
else:
@AlexLynd
AlexLynd / reminder.py
Last active September 22, 2024 19:09
A timed Python script to send reminder emails.
# https://myaccount.google.com/lesssecureapps
import datetime as dt
from datetime import datetime
import time , smtplib
def send_email(have):
email_user = '***@gmail.com' # email here
server = smtplib.SMTP ('smtp.gmail.com', 587)
server.starttls()
server.login(email_user, '***') # pass here or read from input
message = """\