Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Lim Wee Soong daniellimws

View GitHub Profile
View index.html
<!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 Aug 2, 2020
Ghidra script to demangle Rust symbols
View rust_demangle.py
# 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
View evil.js
document.write("<script>alert(1)</script>");
View frida-tips.md

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 / collection.md
Last active Dec 8, 2019
collection of ctf writeups and papers
View collection.md

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 Mar 20, 2018
Simple Makefile template
View Makefile
# 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 Mar 10, 2018
Proper way to flip a bool
View boolflip.cpp
#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 Feb 5, 2018
Script to start up pwn environment in tmux
View pwnenv
#!/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