Skip to content

Instantly share code, notes, and snippets.

View AdriDevelopsThings's full-sized avatar
🎯
Focusing

AdriDevelopsThings AdriDevelopsThings

🎯
Focusing
View GitHub Profile
@AdriDevelopsThings
AdriDevelopsThings / main.py
Last active January 6, 2021 17:09
Spam phishing site.
from argparse import ArgumentParser
from threading import Thread, Lock
from time import sleep
requires = ["names", "PySocks", "requests"]
import random
import sys
import names
import requests
@AdriDevelopsThings
AdriDevelopsThings / EsGibtMagie.py
Created September 12, 2020 22:28
Diese Simulation soll zeigen, dass es Magie gibt. Okay, sie soll eigentlich nur darstellen weshalb bestimmte Studien und Statistiken auf Grund der "Regression zur Mitte" quatsch sind. Viel Spaß beim ausprobieren!
import matplotlib.pyplot as plt
import random
class Wuerfel:
def __init__(self, seiten):
self.seiten = seiten
def wuerfeln(self):
@AdriDevelopsThings
AdriDevelopsThings / get_optimal_password_length.py
Created January 10, 2021 20:54
Get the optimal password length from charset.
from math import log
DEFAULT_CHARSET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!§$%&/()=?+*#-_.:,;<>"
Entropie = lambda p: - sum([i * log(i, 2) for i in p])
charset = input(f"Charset [{DEFAULT_CHARSET}]: ")
if charset in (None, "", " "):
charset = DEFAULT_CHARSET
@AdriDevelopsThings
AdriDevelopsThings / unlimited-download.php
Created May 30, 2021 13:24
unlimited-download.php downloads 'bilder.zip' with infinite size.
<?php
// Consts
$UNLIMITED_DOWNLOAD_OUTPUT = "unlimited_download_output";
$BUFFER = 1024 * 1024;
$WRITE_BUFFER = 64 * 1024 * 1024;
function writeInformation ($size) {
$data = "Headers:\n";
@AdriDevelopsThings
AdriDevelopsThings / keybase.md
Created July 8, 2021 10:34
My keybase verification

Keybase proof

I hereby claim:

  • I am adridevelopsthings on github.
  • I am adridoesthings (https://keybase.io/adridoesthings) on keybase.
  • I have a public key ASAJ6pavW9zTGMH5atPqxrEC-7kwwX03v1PKbCJQhXjqzAo

To claim this, I am signing this object:

@AdriDevelopsThings
AdriDevelopsThings / generate-bind-block-zones.py
Created August 29, 2021 13:25
Generates a bind9 file with blocked zone configurations.
# needs requests as package
# install with: `pip install requests`
BLOCK_LISTS = [
{
"url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts",
"type": "hosts"
},
{
"url": "https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt",
@AdriDevelopsThings
AdriDevelopsThings / cast-file-to-png.py
Created December 12, 2021 13:51
Look at a file as a picture. Each block (3 bytes) of the file will be put as RGB in one pixel. The resolution of the image is 16:9.
# cast file to png
# Copyright (C) 2021 AdriDoesThings
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@AdriDevelopsThings
AdriDevelopsThings / block_nft_twitter_users.js
Last active March 18, 2022 19:24
A userscript that blocks every twitter users with a nft profile picture. (very useful)
// ==UserScript==
// @name Block NFT twitter users
// @namespace https://twitter.com
// @version 0.1
// @description When a nft user is shown to you the userscript blocks them.
// @author AdriDevelopsThings
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// @updateURL https://gist.githubusercontent.com/AdriDevelopsThings/ce3d713a3bcc53c018d958a6c05fa188/raw/2ddd21d27abc717e6ee2fa7302f62c6d50d3a1c6/block_nft_twitter_users.js
@AdriDevelopsThings
AdriDevelopsThings / ublock_origin_filterlist.txt
Last active April 27, 2022 20:06
My uBlock origin filterlist
*.opera.com
opera.com
*.softonic.com
softonic.com
parler.com
! axel springer
amiado.com
amiadogroup.com
antenne.de
@AdriDevelopsThings
AdriDevelopsThings / gcd.py
Created May 22, 2023 17:23
A recursive implementation of the gcd in python
def gcd(a, b):
r = a - (a // b) * b
if r == 0:
return b
return gcd(b, r)