Skip to content

Instantly share code, notes, and snippets.

echo -n testtest | argon2 testtest -r | xxd -r -p | base64
https://antelle.net/argon2-browser/ # Argon2i / Memory 4096 / Iterations 3 / Parallel 1 / HLen 32
https://cryptii.com/pipes/binary-to-base64
package main
import (
"context"
"fmt"
"log"
"net/url"
"net/http"
"net/http/httputil"
@Danukeru
Danukeru / 00_SYMBIOTE.md
Last active January 29, 2024 02:41
cursed shitposting with LUA and friends

SYMBIOTE

Basis for an injectable DLL to a RemoteThread that opens a port from within the process for a REPL on port 8888 using ie. netcat.
Many debugging shenanigans shall ensue by extending with hooking functionality.

Building

Provide the source to luad from https://www.lua.org/ftp/lua-5.4.6.tar.gz at the relative path
src/lua/<dump all the LUA code here>

Stick build.meson in the root and dllmain.cpp in src/.

@Danukeru
Danukeru / AsrDrv104.sys.zip.b64
Last active August 8, 2022 11:29
AsrDrv104.sys
UEsDBBQAAAAIANoDalP35aL3i0cAAOiGAAANAAAAQXNyRHJ2MTA0LnN5c+xdCXhU1RV+sySZrDNA
BoIEGGCQsDokUQJRyCMz5A1MIJCwVEASkgmJZnMyA4nFEhhAhsdYxKXVWotoLbVU0SIEVEgIkCCy
qjWgaMRt4oBEayEKOv3PfW+SsFjbr8v3dXnhvXPuuefee+45d1+GzNvXcyqO49R4AwGOq+WkJ437
4ceHN6b/rhhuW/jhAbUK2+EBOUXFlYYKR/kiR16pIT+vrKzcaVhoNzhcZYbiMoN5WrahtLzAPio6
OsIox1FZumPumKiTmuA73nmHZjTDmzWLmXuyxsTg7ZokBm0yzNLcwmCmDAUGZxTnF1E8V8uaZeG4
gtUarv7sW3OCtDZuIBepDOe4yXD0lGgbH8BHR5gCr4wrOS4U7uDLnjpJaW2bg5zqDv4g0gmuQbk5
GyATSxD/yAC50L0SsAB6HQi4lePiKBme4+K5v+NJQxjF93uPctqrnIApA2WBjEHROx8DxxWNchTk
OfM4bl+YXBhIownXJCWMYmyQkfKQJcdluoavaVQFMcp5zJX5kq+NL4vPsBCecQM+FRQxCXuNfLnW
qdYcwseF47MebwTenGv4zoxyVDryOVnHG+V077gm3YmjHPaS8nwSTdI9R3IuvJaP+y99BPfZBPdC
E+DCFE4QX0s6EdBnwY5JdYJ7X0LD68FH8MwzamaD2ySIvEYQvxbEOWmCuyHB30fwCj5BnB4HD4Pg
@Danukeru
Danukeru / nginx.site.conf
Created December 25, 2020 09:54
NGINX sha256 path matching file directory
server {
listen 80;
listen [::]:80;
server_name website.com;
access_log /var/log/nginx/website.access.log;
error_log /var/log/nginx/website.error.log;
client_max_body_size 20m;
@Danukeru
Danukeru / runbin.c
Created June 5, 2018 18:27
Singing roll up, run a bin, a penny a glitch.
/*
>> How to build on Windows
* Open a VS x64 or x32 command prompt
* cl.exe runbin.c
>> Also works with Clang 6.0 within powershell...
@Danukeru
Danukeru / email_sendfile.lua
Created April 1, 2017 16:55
A simple LUA script to send an e-mail with an attachment.
-- requires an SMTP server to send emails
local smtp = require("socket.smtp")
local ltn12 = require("ltn12")
local mime = require("mime")
from = "<me@my.email.com>"
rcpt = {
"<somebob@testemail.com>"
ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'"
@Danukeru
Danukeru / forcecrc32.py
Last active June 14, 2019 16:55
Credit: http://www.nayuki.io/page/forcing-a-files-crc-to-any-value [Here for Fair Use Archiving/Reference]
#
# CRC-32 forcer (Python)
# Compatible with Python 2 and 3.
#
# Copyright (c) 2015 Project Nayuki
# All rights reserved. Contact Nayuki for licensing.
# http://www.nayuki.io/page/forcing-a-files-crc-to-any-value
#
import os, sys, zlib
@Danukeru
Danukeru / authenticator.py
Last active May 1, 2017 03:44
Blizzard authenticator as a secure RESTful endpoint
#!/usr/bin/env python
# Tested on 2.7.12
# Recommend use of authbind for binding below 1024
from SocketServer import ThreadingMixIn
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import ssl
import os, sys, pwd, grp