Skip to content

Instantly share code, notes, and snippets.

View kos0ng's full-sized avatar
🎯
Focusing

Ryuk kos0ng

🎯
Focusing
View GitHub Profile
@kos0ng
kos0ng / decompiled.c
Created May 23, 2024 08:35
SAS CTF Quals 2024 - decompiled.c
var_L1:
var_i0 = var_l3;
var_i0 = i32_load(&instance->w2c_memory, (u64)(var_i0) + 4u);
var_l5 = var_i0;
var_i0 = 106u;
var_l6 = var_i0;
var_i0 = var_l5;
var_i1 = var_l6;
var_i0 = var_i0 > var_i1;
var_i0 = var_l5;
@kos0ng
kos0ng / check.c
Created May 23, 2024 08:34
SAS CTF Quals 2024 - check.c
/* DISPLAY WARNING: Type casts are NOT being printed */
undefined4 export::check6(uint *param1)
{
int local_c;
local_c = 0x2d;
while( true ) {
@kos0ng
kos0ng / GameView.smali
Created September 20, 2022 08:44
Smali Patch intechfest game #4
.class public Lcom/intechfest/game/GameView;
.super Landroid/view/View;
.source "GameView.java"
# instance fields
.field private m_CirclePaint:Landroid/graphics/Paint;
.field private m_FlagTextPaint:Landroid/graphics/Paint;
@kos0ng
kos0ng / serial.log
Last active May 15, 2021 10:06
Cyber Apocalypse 2021 - Hardware
[LOG] Connection from 4b1186d29d6b97f290844407273044e5202ddf8922163077b4a82615fdb22376
[LOG] Connection from ebd967f3ed47d5410160d3ee603884a32b426d5f3a84212697290c922407d45e
[LOG] Connection from ab290d3a380f04c2f0db98f42d5b7adea2bd0723fa38e0621fb3d7c1c2808284
[LOG] Connection from ea7372f07f7a18fcfe163ff48338076ec0de0cc4a435f0abbc6046db67a73dec
[LOG] Connection from 6edec472e9754574d91f460e170b825bacee5f121b73805dffa4f2a5a7d23d7f
[LOG] Connection from 316636cf0500c22f97fa261585b72a48c4625aca7868f0f6ee253937620ac15c
[LOG] Connection from 4b1186d29d6b97f290844407273044e5202ddf8922163077b4a82615fdb22376
[LOG] Connection from 4b1186d29d6b97f290844407273044e5202ddf8922163077b4a82615fdb22376
[LOG] Connection from 4b1186d29d6b97f290844407273044e5202ddf8922163077b4a82615fdb22376
[LOG] Connection from 4b1186d29d6b97f290844407273044e5202ddf8922163077b4a82615fdb22376
@kos0ng
kos0ng / test.cpp
Last active May 15, 2021 10:05
Cyber Apocalypse 2021 - RE
#include <Windows.h>
#include <wincrypt.h>
#include <stdio.h>
#pragma comment(lib, "crypt32.lib")
#define AES_KEY_SIZE 16
#define CHUNK_SIZE (AES_KEY_SIZE*3)
int wmain( int argc, wchar_t *argv[])
{
@kos0ng
kos0ng / solver_fire.py
Created February 22, 2021 05:25
darkCON CTF 2021 - fire in the androiddd [ RE ]
def looper(n):
if (n == 0 or n == 1):
return 1
v2 = [0 for i in range(n + 1)]
v2[0] = 1
v2[1] = 1
for i in range(2, n + 1):
@kos0ng
kos0ng / get_encryptedflag.js
Created February 22, 2021 05:14
darkCON CTF 2021 - fire in the androiddd ( Helper ) [ RE ]
Java.perform(function dump() {
function sleep (time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
var api_key_class = Java.use("com.application.darkcon.data_receiver");
var api_key_instance = api_key_class.$new();
@kos0ng
kos0ng / solver_noteasy.sage
Created February 22, 2021 04:43
darkCON CTF 2021 - (Not) Easy [ RE ]
import struct
import string
key = [0x34, 0x65, 0x33, 0x30, 0x33, 0x37, 0x35, 0x38, 0x37, 0x38, 0x33, 0x37, 0x33, 0x33, 0x33, 0x34]
key = struct.unpack('<4I', bytes(key))
enc = [
0xef, 0xd0, 0x58, 0x66, 0xa2, 0x12, 0x23, 0x7a, 0x3a, 0x8b, 0x31, 0x66, 0x56, 0x40, 0x79, 0x4e, 0xff, 0x12, 0x6b, 0xa0, 0x29, 0xa0, 0xc5, 0x16, 0x47, 0x80, 0xb5, 0xa1,
0xb8, 0x87, 0xaf, 0x92, 0xb2, 0x39, 0xeb, 0x85, 0xd8, 0x3d, 0x10, 0x09, 0xf7, 0x0f, 0x80, 0x69, 0x77, 0x60, 0xd7, 0x2d, 0x24, 0x49, 0xb3, 0xc9, 0xec, 0x23, 0xcb, 0xdc,
0xa6, 0x94, 0x05, 0x49, 0xca, 0xdd, 0x1d, 0xab, 0x5b, 0x36, 0x63, 0xf6, 0x57, 0xe5, 0x42, 0x43, 0x34, 0xdd, 0xd4, 0x56, 0x36, 0xbe, 0x88, 0xdd, 0x3c, 0xdf, 0x1d, 0x2a
@kos0ng
kos0ng / solver_key.py
Created February 22, 2021 03:58
darkCON CTF 2021 - CyberDark_0x02: Installer [ RE ]
from pwn import *
import string
list_char = list(map(ord,string.uppercase))
buf = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x1, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x4, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x5, 0x9a, 0x7, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x9, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x0, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x2, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0xc, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e,
@kos0ng
kos0ng / solver_shitcomp.py
Created February 22, 2021 03:43
darkCON CTF 2021 - CyberDark0x01: ShitComp [ RE ]
from Crypto.Util.number import bytes_to_long as b2l
f=open("Installer.shitty","r")
plain=f.read()
f.close()
v4 = "CyberDarkIsACoolGameAndIWannaPlayIt"
file = ""
for i in range(0,len(plain),3):
v8 = ord(v4[i%len(v4)])
v9 = v8