Skip to content

Instantly share code, notes, and snippets.

@daniellimws
daniellimws / index.html
Created December 9, 2020 11:02
registry hive
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:1500px; -webkit-transform:rotate(0deg)">
<scene id="scene2">
<drawing t="translate(0,31)">
@daniellimws
daniellimws / rust_demangle.py
Created August 2, 2020 04:39
Ghidra script to demangle Rust symbols
# Demangle swift function names
# A script can be easily created in the Script Manager window
# Make sure https://github.com/luser/rustfilt is installed on your system
#@author Daniel Lim
#@category Demangler.Rust
#@keybinding
#@menupath
#@toolbar
We couldn’t find that file to show.
document.write("<script>alert(1)</script>");
@daniellimws
daniellimws / frida-tips.md
Last active April 5, 2024 21:56
Frida tips

Frida Tips

The documentation is so limited. A compilation of things I found on StackOverflow and don't want to have to search it up again.

Bypass root check

setTimeout(function() { // avoid java.lang.ClassNotFoundException

  Java.perform(function() {

    // Root detection bypass example
@daniellimws
daniellimws / convert
Last active April 23, 2018 11:28
convert
ok can
@daniellimws
daniellimws / collection.md
Last active December 8, 2019 12:47
collection of ctf writeups and papers

Collection of CTF writeups and papers

Use Ctrl+F with relevant tag to find

Tags

pickle blacklist php IIS ret2dlresolve seccomp CSS Injection vsyscall LFSR uaf Angular SSTI anti-debugging aes-ctr weak keys

Pwn

FORTIFY stack smashing message leak

vsyscall HITBGSEC 2017 - 1000 levels

@daniellimws
daniellimws / Makefile
Created March 20, 2018 08:19
Simple Makefile template
# Macros ========================================
CC=g++
CFLAGS=-Wall -Wextra -Werror -std=c++11 -pedantic
OBJECTS=insert.objects
EXE=insert.exe.name
ERASE=rm
MAKE=make
# Targets ========================================
@daniellimws
daniellimws / boolflip.cpp
Created March 10, 2018 02:56
Proper way to flip a bool
#include <memory>
template <typename T>
class ValueGetter {
public:
explicit ValueGetter(const T& value) : m_value{value} {
}
const T& get() const {
return m_value;
@daniellimws
daniellimws / pwnenv
Created February 5, 2018 09:33
Script to start up pwn environment in tmux
#!/bin/sh
if [ ! -f $1 ]; then
echo "$1 not found!"
exit
fi
tmux new-session -d 'vim exploit.py'
tmux split-window -h
tmux split-window -v 'vim notes'
tmux new-window gdb $1
tmux new-window r2 -A $1