Skip to content

Instantly share code, notes, and snippets.

View trietptm's full-sized avatar
💭
Information Security Consulting, Threat Hunting

Minh-Triet Pham Tran trietptm

💭
Information Security Consulting, Threat Hunting
View GitHub Profile
asm(
"mov %0, %%rsi\n\t"
"mov %1, %%rdi\n\t"
"call _trumpoline\n\t"
:
:
"r" (m_code), "g"(context)
: "rsi", "rdi"
);
@arget13
arget13 / reee.md
Last active May 9, 2020 13:05
PlaidCTF 2020: reee

PlaidCTF 2020 : reee

Reversing (150 pts)

Story

Tired from all of the craziness in the Inner Sanctum, you decide to venture out to the beach to relax. You doze off in the sand only to be awoken by the loud “reee” of an osprey. A shell falls out of its talons and lands right where your head was a moment ago. No rest for the weary, huh? It looks a little funny, so you pick it up and realize that it’s backwards. I guess you’ll have to reverse it.

Problem details

Hint: The flag format is pctf{$FLAG}. This constraint should resolve any ambiguities in solutions.

@icecr4ck
icecr4ck / idapython_ctree.md
Last active April 25, 2024 08:09
Notes on CTREE usage with IDAPython

IDAPython CTREE

Important links

Description

The CTREE is built from the optimized microcode (maturity at CMAT_FINAL), it represents an AST-like tree with C statements and expressions. It can be printed as C code.

@NeatMonster
NeatMonster / copy_stuff.py
Created March 12, 2020 10:12
Contextual menu to enable copying as UUID/bytes list/hex string
import uuid
import ida_bytes
import ida_hexrays
import ida_idaapi
import ida_kernwin
from PyQt5.Qt import QApplication
class Plugin(ida_idaapi.plugin_t):
@NeatMonster
NeatMonster / patmake.py
Created March 8, 2020 18:03
Creates a pattern file from a database
"""
@file patmake.py
@brief Creates a pattern file from a database
@author neat
"""
import os
import idautils
import ida_bytes
import ida_funcs
@clarkb7
clarkb7 / unicode.md
Last active August 29, 2022 19:43
A guide to character encoding aware development
import pyqbdi
import ctypes
MAPPING_DIFF = 0
def get_binary_mapping(lib, region):
mapped = region.range[0] # mapped to _init
binary = idaapi.get_segm_by_name(".init").start_ea
return mapped - binary
@n005
n005 / Science Software
Last active September 1, 2021 14:10
This is a community list for scientific purpose.
Progamming language:
Julia
Java
GNU Octave
Scilab
Matlab - Simulink
Anaconda / Python (+ Jupyter)
R / R Studio
Wolfram Mathematica
ROOT
@pawlos
pawlos / solveWithZ3.py
Created February 13, 2020 15:30
Solution for vv_max with emulating AVX operation with z3
from z3 import *
zero = 0
reg0 = BitVec('r0', 32*8)
reg1 = BitVec('r1', 32*8)
reg2 = BitVec('r2', 32*8)
reg3 = BitVec('r3', 32*8)
reg4 = BitVec('r4', 32*8)
reg5 = BitVec('r5', 32*8)
@mubix
mubix / htb-links.md
Last active September 2, 2020 14:00
Hack the Box Repositories - Github Repositories that I have found useful during HTB challenges, Pro Labs etc