Skip to content

Instantly share code, notes, and snippets.

@Gavriel770U
Gavriel770U / holdmouse.py
Created September 2, 2024 18:50
Neal's circle code for perfect circle (Windows)
from pynput.mouse import Button, Controller
import time
def main() -> None:
mouse = Controller()
mouse.press(Button.left)
print("Left mouse button pressed.")
time.sleep(12)
@Gavriel770U
Gavriel770U / brute.py
Created August 25, 2024 13:18
Zed puzzle Alphabet level k bruteforcer
import requests
import re
import sys
words_list = []
results = []
urls = []#['https://www.bestwordlist.com/5letterwords.htm']
for i in range (2, 27): # answer is in page 8
@Gavriel770U
Gavriel770U / brute.py
Created August 25, 2024 11:59
Bruteforce Code for Zed Alphabet level j
import requests
import re
import sys
skip = 'EJZW'
words_list = []
results = []
urls = ['https://www.bestwordlist.com/p/s/1/words7letterssixthletters.htm',
@Gavriel770U
Gavriel770U / zed_35_1_helper.py
Created August 21, 2024 22:35
Zed 35.1 test helper
comb_dict = {
0 : '(none)',
1 : 'A',
2 : 'B',
3 : 'C',
4 : 'D',
5 : 'E',
6 : 'AB',
7 : 'AC',
8 : 'AD',
@Gavriel770U
Gavriel770U / set_time_local.sh
Last active August 19, 2024 10:32
Set linux time to be local
timedatectl set-local-rtc 1 --adjust-system-clock
@Gavriel770U
Gavriel770U / birthday_bruteforcer.py
Created August 8, 2024 20:55
ZED puzzle level 18 birthday bruteforcer
import requests
import sys
base_url: str = 'https://zedpuzzle.neocities.org/craters/'
months_data: dict = {
'January' : 31,
'February' : 29,
'March' : 31,
'April' : 30,
@Gavriel770U
Gavriel770U / zip_brute.py
Created August 6, 2024 21:18
Zip Password Bruteforcer For Magshimim+ Summer Camp 2024 CTF
from zipfile import ZipFile
file_name = "password.zip"
with ZipFile(file_name, "r") as zip:
for pwd in range(1000,10000):
try:
zip.extractall(path="uncompressed", pwd=(str(pwd)).encode("utf-8"))
print(pwd)
print("SUCCESS")
break
@Gavriel770U
Gavriel770U / bot.py
Last active August 8, 2024 20:56
bot.py
def score(src, planet, pw):
scoring = planet.growth_rate() * 10 - planet.num_ships()
#distance
for my_planet in pw.my_planets():
total_distance = pw.distance(my_planet, planet)
scoring -= total_distance
#fleets for planet
@Gavriel770U
Gavriel770U / create_file.asm
Created March 11, 2024 22:00
Function to create new file in x86 .asm for DOS
proc create_file
; [bp+4] offset file_name
; [bp+6] offset file_handle
; [bp+8] offset error_message
; [bp+10] file attributes [value]
push bp
mov bp, sp
push ax
push bx
@Gavriel770U
Gavriel770U / file_creations.sh
Last active August 11, 2024 08:16
Linux Terminal Creating New File
#!/bin/bash
touch way1.txt
echo "This is the second way!" > way2.txt
> way3.txt
printf "This is the fourth way!\n" > way4.txt
>> way5.txt
# The sixth way is made if way 5 is too much like way 3,
# But you have to insert some data and then press CTRL+C to write to the file and save it.
cat > way6.txt