Skip to content

Instantly share code, notes, and snippets.

View dnorhoj's full-sized avatar
◼️
[object Object]

Daniel Norhøj dnorhoj

◼️
[object Object]
View GitHub Profile
@dnorhoj
dnorhoj / generic_bbb_sqli_solve.py
Last active May 20, 2024 22:30
Generic boolean-based blind sql injection solver
import requests
URL = "..."
def hexify(password: str) -> str:
realpass = ""
for i in password:
if i == "_":
realpass += "__"
@dnorhoj
dnorhoj / gist:af7b30868f1d51004c9eda76aa55ec27
Created December 20, 2023 16:31
check_x509_certificate_expiry.sh
#!/bin/bash
# Daniel Norhøj <daniel@dnorhoj.me>
# This script checks all x.509 certificates in the specified directory
# and prints the expiration date of each certificate.
# Usage: ./check_certificates.sh /path/to/certificates
# The script expects the certificates to be in PEM format.
# The script expects the certificates to be named like this:
@dnorhoj
dnorhoj / site-manager.sh
Last active December 14, 2022 22:54
Script for managing mappings to local server ports in nginx. Also adds/removes ssl and dns CNAME
#!/bin/bash
# 2022 - Daniel Norhøj <daniel@dnorhoj.me> and Super02
# This script is used to manage the sites on the server.
# It is used to add, remove, and list sites.
# The sites are stored in the /etc/nginx/sites-available directory.
# The sites are enabled by creating a symlink in the /etc/nginx/sites-enabled directory.

Aircrack-ng cheat sheet

Installing

Install aircrack-ng from your package manager.

Ex: sudo apt install aircrack-ng

Enter monitor mode

@dnorhoj
dnorhoj / day.py
Created March 8, 2022 20:12
Weekday guessing game.
from random import randrange
from datetime import datetime
from time import time
from colorama import init
init()
from termcolor import cprint, colored
START_DATE = datetime(year=2022, month=1, day=1)

Keybase proof

I hereby claim:

  • I am dnorhoj on github.
  • I am dnorhoj_1337 (https://keybase.io/dnorhoj_1337) on keybase.
  • I have a public key ASCI_8QZ9gRKx_lFK79a2WmkujnFOEN2-eAZzxV5NaHn7Qo

To claim this, I am signing this object:

@dnorhoj
dnorhoj / lock.sh
Created January 18, 2020 15:47
My i3lock script
# To use this script you need these dependencies: i3lock-color, ImageMagick 7+
timeposx=100
timeposy=$((screenH-150))
dateposy=$((timeposy+60))
timefont="Monospace bold"
green=00ff99c0
red=ff5050c0