Skip to content

Instantly share code, notes, and snippets.

View satoooon8888's full-sized avatar

satoooon satoooon8888

  • Ibaraki College
  • Japan Ibaraki
View GitHub Profile
@satoooon8888
satoooon8888 / drm.md
Last active June 4, 2023 11:02
SECCON Beginners CTF 2023
@satoooon8888
satoooon8888 / stats.py
Created December 20, 2022 14:26
Visualize CTFTime Statistics
import matplotlib.pyplot as plt
import json
import re
from datetime import datetime
events = json.load(open("./events.json"))
events = sorted(events, key=lambda event:datetime.fromisoformat(event["start"]))
@satoooon8888
satoooon8888 / converter.py
Created December 3, 2022 16:04
taskctf 2022 - shellgei
# 記号のみでbashを動かす問題
# 参考:
# https://www.ryotosaito.com/blog/?p=178
# https://www.ryotosaito.com/blog/?p=194
command = input()
payload = R"""
__=$(($$/$$));
___=$(($__+$__));
@satoooon8888
satoooon8888 / patch_libc.sh
Last active June 28, 2022 15:08
patch libc with ubuntu glibc debug symbol
#!/bin/bash -ex
LIBC=$(ls * | grep -P '^(libc\.so\.6|libc-.*\.so)$')
LIBC_DBG_DEB="$(~/package/libc-database/identify $LIBC | sed s/libc6_/libc6-dbg_/g).deb"
if [[ ! -e $LIBC_DBG_DEB ]]; then
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/$LIBC_DBG_DEB
fi
DEBUGID=$(file $LIBC | grep -Po '(?<=BuildID\[sha1\]=)[0-9a-f]{40}')
@satoooon8888
satoooon8888 / solve.py
Created March 16, 2021 15:53
zer0pts CTF One Shot writeup
from pwn import *
import sys
import re
context.terminal = "wterminal"
context.arch = "amd64"
def get_io():
if len(sys.argv) > 1 and sys.argv[1] == "debug":
io = gdb.debug(file, command)
from microbit import *
import radio
def main():
max_length = 251
channel = 64
radio.config(length=max_length, channel=channel)
display.show(Image.HAPPY)
@satoooon8888
satoooon8888 / KPC_Python_CheatSheet.html
Last active February 7, 2020 06:23
Pythonで競プロするためのチートシート。
<head>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
<style>
pre {
margin: 3px;
padding: 2px;
background-color: #DDDDDD;
}
</style>
</head>