Skip to content

Instantly share code, notes, and snippets.

@encrypted-def
encrypted-def / flask_app2.py
Created March 5, 2025 14:56
Upside Academy Q2
# A very simple Flask Hello World app for you to get started with...
from flask import Flask, request
import time
import hashlib
import string
import random
app = Flask(__name__)
@encrypted-def
encrypted-def / flask_app.py
Last active March 7, 2025 01:38
Upside Academy Q1
# A very simple Flask Hello World app for you to get started with...
from flask import Flask, request
import time
import hashlib
import string
import random
app = Flask(__name__)
@encrypted-def
encrypted-def / 0x05_1.cpp
Created January 3, 2019 06:08
Algorithm_0x05_1.cpp
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second // pair에서 first, second를 줄여서 쓰기 위해서 사용
int board[502][502] =
{{1,1,1,0,1,0,0,0,0,0},
{1,0,0,0,1,0,0,0,0,0},
{1,1,1,0,1,0,0,0,0,0},
{1,1,0,0,1,0,0,0,0,0},
{0,1,0,0,0,0,0,0,0,0},
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "gmp.h"
clock_t elapsed;
float sec;
@encrypted-def
encrypted-def / Pikachu_sub_409D50.cpp
Created March 10, 2018 16:31
[Reversing] Pikachu Volleyball sub_409D50
int __thiscall sub_409D50(BYTE *this, int a2)
{
BYTE *v2; // esi@1
int v3; // edi@1
signed int v4; // ecx@1
v2 = this;
v3 = 0;
GetKeyboardState(this);
v4 = 0;
@encrypted-def
encrypted-def / Pikachu_sub_402DC0.cpp
Created March 10, 2018 16:16
[Reversing] Pikachu Volleyball sub_402DC0
signed int __thiscall sub_402DC0(int this)
{
int v1; // esi@1
int v2; // edi@1
int v3; // eax@1
bool v4; // sf@1
int v5; // eax@1
int v6; // eax@2
signed int v7; // ecx@6
int v8; // eax@6
@encrypted-def
encrypted-def / Pikachu_sub_401460.cpp
Created March 10, 2018 14:53
[Reversing] Pikachu Volleyball sub_401460
signed int __thiscall sub_401460(void *this)
{
int v1; // esi@1
signed int result; // eax@2
signed int v3; // edi@3
int v4; // ebp@3
int v5; // ebx@3
char v6; // al@4
HDC v7; // edi@17
@encrypted-def
encrypted-def / Pikachu_sub_4075C0.cpp
Created March 10, 2018 14:34
[Reversing] Pikachu Volleyball sub_4075C0
signed int __thiscall sub_4075C0(void *this, DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int a6, HWND hWndParent, const CHAR *a8, const CHAR *a9, LPCSTR lpMenuName, HBRUSH a11, int a12, int a13)
{
void *v13; // esi@1
signed int result; // eax@2
const CHAR *v15; // edi@4
HCURSOR v16; // eax@5
HICON v17; // eax@8
HBRUSH v18; // eax@10
HINSTANCE v19; // ST28_4@16
HMENU v20; // eax@16
@encrypted-def
encrypted-def / Reversingkr_Ransomware
Last active December 31, 2017 11:42
[Reversing.kr] Ransomware
#python3, http://baaaaaaaaaaaaaaaaaaaaaaarkingdog.tistory.com/10
S = [0x93,0x9A,0x8B,0x8C,0x8F,0x93,0x9E,0x86,0x9C,0x97,0x9A,0x8C,0x8C]
for i in range(0xD):
print(S[i]^0xFF, chr(S[i]^0xFF))
@encrypted-def
encrypted-def / Reversingkr_Position.py
Last active December 31, 2017 11:43
[Reversing.kr] Position
#python3, http://baaaaaaaaaaaaaaaaaaaaaaarkingdog.tistory.com/10
#serial : 76876-77776
for alpha0 in range(0x61, 0x7B):
for alpha1 in range(0x61, 0x7B):
for alpha2 in range(0x61, 0x7B):
if alpha0 == alpha1 or alpha1 == alpha2 or alpha0 == alpha2: continue
v8 = (alpha0 & 1) + 5
v59 = ((alpha0>>4) & 1) + 5
v53 = ((alpha0>>1) & 1) + 5