Skip to content

Instantly share code, notes, and snippets.

@nl5887
nl5887 / readme.md
Created April 29, 2016 08:17
Modern.IE Windows XP download
@nl5887
nl5887 / decode.go
Last active March 9, 2026 01:21
Golang implementation for RFC 1342: Non-ASCII Mail Headers
package main
import (
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"mime/quotedprintable"
"regexp"
"strings"
@nl5887
nl5887 / 00_readme.md
Last active June 7, 2025 02:42
Ghidra decompile

Ghydra decompiler

This python script communicates with the Ghydra decompiler. Currently it succeeds in communicating, sending hardcoded opcodes and returning decompiled code.

Currently working on reversing the getPcodePacked command.

Next steps:

  • implement exception handling
  • implement callbacks
  • allow decompilation of custom payloads
@nl5887
nl5887 / transfer.fish
Last active July 30, 2024 09:21
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@nl5887
nl5887 / gist:ec5462b1671451163b29
Created August 18, 2015 19:59
install openoffice headless amazon linux
8 cd /usr/local/
9 wget http://download.documentfoundation.org/libreoffice/stable/5.0.0/rpm/x86_64/LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz
10 tar -xvf LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz
11 cd LibreOffice_5.0.0
12 cd LibreOffice_5.0.0_Linux_x86-64_rpm.tar.gz
13 cd LibreOffice_5.0.0.5_Linux_x86-64_rpm/
20 yum localinstall *.rpm --skip-broken
47 yum install cairo
50 yum install cups
51 /opt/libreoffice5.0/program/soffice --headless --convert-to csv websiteregister-rijksoverheid-20150730.ods
@nl5887
nl5887 / cargo-update-dependency.py
Last active June 16, 2023 09:29
Update cargo.toml dependencies recursively
import os
import toml
import argparse
parser = argparse.ArgumentParser(description='Update cargo toml module path')
parser.add_argument('--module', metavar='m', type=str, required=True)
parser.add_argument('--work-dir', type=str, default='.')
parser.add_argument('--version', type=str)
parser.add_argument('--path', type=str)
@nl5887
nl5887 / gist:8433808
Created January 15, 2014 10:10
Google App Engine boilerplate: Running background services.
package service
import (
_ "encoding/base64"
_ "fmt"
_ "net/http"
"appengine"
"appengine/urlfetch"
"appengine/runtime"
"time"
@nl5887
nl5887 / ApplicationProxy.cs
Created February 22, 2015 11:34
Compile and run dynamic .NET code in sandbox
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace dutchcoders.Sandbox
{
public class ApplicationProxy : MarshalByRefObject
{
@nl5887
nl5887 / gpg-agent.conf
Last active November 14, 2022 09:37
Using GPG Agent on OS-X
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
@nl5887
nl5887 / 001_readme.md
Last active July 10, 2022 02:44
Metasploit Meterpreter handler servers (HTTP/HTTPS)

This gist contains a list of verified Metasploit Meterpreter http(s) handlers and Powershell Empire http(s) listeners.

Servers could be malicious, or just part of a red teaming action.

Thanks to censys.io and Jose.