Skip to content

Instantly share code, notes, and snippets.

View SakiiR's full-sized avatar
🎯
Focusing

SakiiR SakiiR

🎯
Focusing
View GitHub Profile
@SakiiR
SakiiR / archs.sh
Created August 18, 2020 13:15
Some architecture initrd (useful for reversing CTF challenge)
#!/bin/sh
# XeR
readonly HOST="http://ftp.fr.debian.org/";
readonly DIST="unstable";
readonly BASE="${HOST}/debian/dists/${DIST}/main/";
declare -A links
links["x86_64"]="/installer-amd64/current/images/cdrom/initrd.gz";
@SakiiR
SakiiR / homoglyphes.js
Last active July 25, 2020 16:10
Homoglyphes List
// Array.from("PIZZATO").map(c => CHAR_MAP[c][0]).join("")
const CHAR_MAP = {
"0": ["\u{1d476}", "\u{1d7f6}", "\u{1d6f0}", "\u{1d7e2}", "\u{1d7ec}", "\u{1d512}", "\u{1d442}", "\u{09e6}", "\u{07c0}", "\u{1d40e}", "\u{039f}", "\u{3007}", "\u{1d546}", "\u{ff2f}", "\u{0b66}", "\u{1d67e}", "\u{1d79e}", "\u{0555}", "\u{10516}", "\u{0d20}", "\u{0b20}", "\u{2d54}", "\u{10404}", "\u{118e0}", "\u{1d6b6}", "\u{114d0}", "\u{041e}", "\u{118b5}", "\u{1d72a}", "\u{1d7d8}", "\u{1d4aa}", "\u{1d57a}", "\u{ff10}", "\u{1d616}", "\u{1d764}", "\u{102ab}", "\u{10292}", "\u{1d4de}", "\u{a4f3}", "\u{004f}", "\u{2c9e}", "\u{1d7ce}", "\u{1d5ae}", "\u{1d64a}", "\u{1d5e2}"],
"1": ["\u{217c}", "\u{1ee80}", "\u{1d75e}", "\u{1d6ea}", "\u{1d48d}", "\u{1d644}", "\u{ff29}", "\u{10320}", "\u{fe8e}", "\u{2160}", "\u{0661}", "\u{007c}", "\u{0049}", "\u{1d55d}", "\u{1d5a8}", "\u{0196}", "\u{05df}", "\u{2c92}", "\u{1d4f5}", "\u{07ca}", "\u{2d4f}", "\u{0627}", "\u{2223}", "\u{1d43c}", "\u{1d5dc}", "\u{ff4c}", "\u{1d459}", "\u{1d7d9}", "\u{1
@SakiiR
SakiiR / dino.js
Created May 22, 2020 07:54
Google Chrome Dino Cheat (:
const a = Runner.prototype.gameOver ; Runner.prototype.gameOver = () => { Runner.instance_.currentSpeed += Runner.config.ACCELERATION; console.log("Lol ! Actually bypassed obstacle !") ; };
@SakiiR
SakiiR / hook.c
Created May 18, 2020 07:23
Defcon Quals 2020 - Babymaze hook.c
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <dlfcn.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
@SakiiR
SakiiR / vscode.json
Created April 16, 2020 13:46
Visual Studio Code - Configuration
{
"editor.tabCompletion": "on",
"workbench.useExperimentalGridLayout": true,
"editor.cursorStyle": "line-thin",
"files.autoSave": "onWindowChange",
"explorer.confirmDelete": false,
"vim.useSystemClipboard": true,
"terminal.integrated.fontFamily": "Monofur Nerd Font",
"editor.fontFamily": "Monofur Nerd Font",
"editor.fontLigatures": true,
@SakiiR
SakiiR / exploit.py
Created April 5, 2020 00:19
MidnighSun CTF 2020 - Pwny 2 write up
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
context.terminal = ["tmux", "splitw", "-h"]
exe = context.binary = ELF("./challenge")
host = args.HOST or "pwn2-01.play.midnightsunctf.se"
port = int(args.PORT or 10002)
@SakiiR
SakiiR / tmux.conf
Created March 12, 2020 22:10
My tmux conf
# Terminal
set -g default-terminal "screen-256color"
# Vi style keys
set -g mode-keys vi
bind Enter copy-mode
bind P paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# No latency
@SakiiR
SakiiR / exploit.py
Created January 20, 2020 10:14
Insomni'hack Teaser 2019 - Defiltrate part 1 - Unsolved
#!/usr/bin/env python
# @SakiiR
from struct import pack
import requests
import base64
"""
00000000: aced 0005 7372 000a 5765 6253 6573 7369 ....sr..WebSessi
00000010: 6f6e 0000 0000 0000 0001 0200 044c 000c on...........L..
@SakiiR
SakiiR / libc.py
Created November 27, 2019 16:40
Using libc (rand, srand) etc using python :)
from ctypes import CDLL
libc = CDLL("libc.so.6")
now = int(floor(time.time()))
libc.srand(now)
print(libc.rand())
@SakiiR
SakiiR / darkula.css
Last active October 31, 2019 13:03
chat.google.com - Darkcula theme
/* Reduce left and right margins in the chat area */
.BEjUKc .cFc9ae {
margin-left: 10px;
margin-right: 10px;
width: auto;
max-width:none;
}
.cFc9ae {
background-color: #282828 !important;
}