Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Building amazing things

Daniel Malik fronbasal

👨‍💻
Building amazing things
View GitHub Profile
View mcdonalds.md
operator operator_owned_restaurants
McDonald's Deutschland LLC 118
Autobahn Tank & Rast QSR GmbH 31
Willy Dany Restaurantbetriebsgesellschaft mbH & Co. Service KG 29
Systemgastronomie Christian Eckstein GmbH & Co. KG 28
Heinritzi GmbH & Co. Restaurant KG 28
Mike Kraft Systemgastronomie e. K. 15
Hubertus Elster e.K. Systemgastronomie 15
Frank Mosher Restaurants e.K.
@fronbasal
fronbasal / regex.txt
Created Jul 22, 2020
Keycloak OIDC code regex expression for validation
View regex.txt
https://regex101.com/r/56kqHL/1
Regex: ^(\w{8}-([\w]{4}-){3}\w{12}\.?){3}$
Test code: 94eb4353-7f62-4b85-9da9-feb122230efe.69bc8ef8-e9bc-4f61-8d2f-353ccc866374.24e96d28-22cd-49e2-b2a1-c9cd4f32ad99
@fronbasal
fronbasal / cookiemixin.py
Last active Jul 2, 2020 — forked from bmispelon/cookiemixin.py
A Django CBV mixin to make setting cookies easier.
View cookiemixin.py
from django.http import HttpRequest
class CookieMixin(object):
"""
A CBV mixin that adds an `add_cookie` method on the view, allowing the user
to set cookies on the response without having direct access to the response
object itself.
Example usage::
class SomeFormView(CookieMixin, FormView):
@fronbasal
fronbasal / backoff.py
Created Jun 28, 2020
InverseBackoff for Python
View backoff.py
import time
class InverseBackoff:
def __init__(self, condition, initial=20, minimum=1):
"""
:param initial: Initial time in seconds
"""
self.minimum = minimum
assert callable(condition), "Condition has to be a callable"
@fronbasal
fronbasal / akamai_unpack.py
Created Jun 4, 2020
Akamai's Bot Manager SDK & PerimeterX deobfuscation
View akamai_unpack.py
# Dictionary not included, take from Akamai's script.
# Works on bmak.ver == 1.5.4
dictionary = []
def resolve(match):
return '"' + dictionary[int(match.group(1))] + '"'
if __name__ == "__main__":
# Save the BMAK Javascript to source.js
@fronbasal
fronbasal / source.js
Created May 31, 2020
Akamai Bot Manager SDK - Client SDK (Web) - Deobfuscated
View source.js
'use strict';
/** @type {!Array} */
var _ac = ["aj_indx_tact", "bind", "driver", "doe_cnt", "mousedown", "Batang", "clientHeight", "emit", "indexOf", "enReadDocUrl", "Palatino", "fpValstr", "onpointerup", '"', "dm_en", "/get_params", "rVal", "return/*@cc_on!@*/!1", "-1,2,-94,-70,", "http://", "storage", "", "onkeypress", "navigator", "mn_update_challenge_details", "keydown", "spawn", "bm-telemetry", "y1", "-1,2,-94,-121,", "mediaDevices", "fillText", "mn_ct", "requestWakeLock", "Noto", "=", "//", "rotationRate", "call", "mn_mc_lmt",
"toLowerCase", "uar", "Palatino-Bold", "arc", "-1,2,-94,-120,", "td", "unk", "z", "devicemotion", "gf", "push", ":", "TI-Nspire", "Edge PDF Viewer", "dme_cnt_lmt", "prototype", "hpu", "hku", "hkd", "mn_ts", "mn_tout", "Version/4.0", "non:", "sensor_data", "display", "getFloatVal", "sort", "ambient-light-sensor", "number", "~", "WebKit-integrierte PDF", "RTCPeerConnection", "0a46G5m17Vrp4o4c", "now", "value", "iPad;", "map", "GET", "mme_cnt", "msHidden", "vc", "||", "-1,2,-94,-
@fronbasal
fronbasal / proxy_checker.py
Created Dec 6, 2019
Simple concurrent proxy checker in Python
View proxy_checker.py
from datetime import datetime
from multiprocessing.pool import Pool
from typing import Optional, Type, Dict
import requests
from requests.exceptions import ProxyError, Timeout, SSLError, ConnectionError
class Proxy(object):
def __init__(self, protocol, proxy_address, is_valid=True):
@fronbasal
fronbasal / pr0pol.js
Created Sep 17, 2018
Make pr0gramm usable again. Filter all politics/far-right content.
View pr0pol.js
// ==UserScript==
// @name Pr0Pol
// @author fronbasal
// @description Pr0gramm politics filter
// @include https://pr0gramm.com/*
// @match https://pr0gramm.com/*
// @version 0.1
// @run-at document-end
// ==/UserScript==
View keybase.md

Keybase proof

I hereby claim:

  • I am fronbasal on github.
  • I am fronbasal (https://keybase.io/fronbasal) on keybase.
  • I have a public key whose fingerprint is 0CD0 E229 DA22 4C4A 7560 4E6F A9F6 A553 F4CC F339

To claim this, I am signing this object:

View kickstart.ks
install
text
url --url http://ftp.tu-chemnitz.de/pub/linux/fedora/linux/releases/27/Everything/x86_64/os/
lang en_US.UTF-8
keyboard de
network --onboot yes --bootproto dhcp
timezone --utc Europe/Berlin
firstboot --disabled
selinux --disabled
You can’t perform that action at this time.