Skip to content

Instantly share code, notes, and snippets.

View Wemmy0's full-sized avatar

Tom H Wemmy0

  • 19:51 (UTC)
View GitHub Profile
@Wemmy0
Wemmy0 / funny.py
Created September 26, 2024 22:21
Hehe
print(chr(sum(range(ord(min(str(not())))))))
# Take an ICS file and split events into lectures and practicals based on their name
# Made for Newcastle University timetables downloaded from https://timetables.ncl.ac.uk/
from ics import Calendar
with open('timetable.ics', 'r') as file:
ics_content = file.read()
events = list(Calendar(ics_content).events)
@Wemmy0
Wemmy0 / 4-pin bruteforce.py
Created August 5, 2024 18:31
Creates a badusb file with all combinations of a 4 pin code
# import time
# start = time.process_time()
delay = 50
with open("4-pin bruteforce.txt", "w+") as file:
for i in range(0, 10000):
print(f"{i:04d}")
file.write(f"STRING {i:04d}\n")
file.write(f"DELAY {delay})
file.write(f"ENTER\n")
@Wemmy0
Wemmy0 / Crowdstrike-Fix.txt
Last active July 22, 2024 19:38
A USB Rubber Ducky script to fix the Crowdstrike Falcon BSOD
REM Ducky script to fix the Crowdstrike Falcon BSOD loop from the recovery screen
REM Starting at the "Automatic Repair" screen
RIGHT
DELAY 50
ENTER
DELAY 500
DOWN
DELAY 50
DOWN
DELAY 50
@Wemmy0
Wemmy0 / algo.py
Last active June 15, 2023 11:03
One line version of the AQA A-Level Computer Science algorithm question on section B
while True: eval(["exit()" if all(i in "QWERTYUIOPASDFGHJKLZXCVBNM" for i in user) and user.upper() == user and len(set(user)) == len(user) and sum([ord(i) for i in user]) >= 420 and sum([ord(i) for i in user]) <= 600 and len(user) >= 5 and len(user) <= 7 else "print ('Not Valid!')" for user in [input("> ")]][0])