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
@trietptm
trietptm / patmake.py
Created August 2, 2020 17:16 — forked from NeatMonster/patmake.py
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
@trietptm
trietptm / CTFs.md
Created June 30, 2020 07:39
CTFサイト集。デザイン確認のためのテスト用。

CTFs

⚠️このページはデザイン比較のためのページです。メンテナンス予定はありません。本体はこちら

ほとんどのCTF情報はCTF Timeに記載されている。 jeopardy方式のみ。チェックボックスは履修済みかどうか。

常設CTF

初心者向け

@trietptm
trietptm / index.md
Created June 30, 2020 07:39 — forked from fingerart/index.md
安全

Newbie-Security-List

一桌菜,十几盘,有荤有素,有凉有热,怎么吃呢?你可以找一盘看起来好吃的,也可以找一盘离自己近的,都行。但是,得动筷子。不管怎么吃,最重要的是得动筷子。学技术也是一样。

有的人死活不动筷子,还不断念叨:“我要开始吃了。我马上就要开始吃了。我只要开始吃就能吃饱。我吃饱了就不饿了。你能不能告诉我该先吃哪一盘?先冷盘后热菜再喝汤这样是不是最好?但是我听说广东人都是先喝汤?这盘菜会不会太远了?这盘会不会太油腻?我吃饱了万一想拉屎你们这里有厕所吗?我真的马上就要开始吃了……为什么我现在还是饿?你能不能帮帮我?”

by tombkeeper @2017-11-28

如需配合目录食用请访问这里

@trietptm
trietptm / CTFsite.md
Created June 30, 2020 07:39 — forked from musaprg/CTFsite.md
CTF memo
rule mutex_before_file
{
strings:
$sA = "bad.gcc" nocase
$sZ = "mutex" nocase
condition:
(@sZ[1] < @sA[1])
}
@trietptm
trietptm / ch6.py
Created June 24, 2020 08:36 — forked from arvinddoraiswamy/ch6.py
Flare on challenge 6
import collections
import string
import sys
def hextobin(string):
bin_str=''
split_str=list(string)
for i in split_str:
temp1=str(bin(int(i,16))[2:].zfill(4))
@trietptm
trietptm / flare-on-6__solve_sc.py
Created June 24, 2020 08:36 — forked from williballenthin/flare-on-6__solve_sc.py
IDAPython script to solve the expected byte sequence in the FLARE-On Challenge #6
"""
The shellcode in Challege 6 compares the string in RDI
against a bunch of conditions. This script extracts the
conditions and solves the constraints, yielding the
expected string.
"""
from idaapi import *
from williutils import *
@trietptm
trietptm / flare-on-6__extract_buffer.py
Created June 24, 2020 08:36 — forked from williballenthin/flare-on-6__extract_buffer.py
IDAPython script to extract contents of global byte array in the FLARE-On Challenge #6
from idaapi import *
GEN_REG = 0x1
MEM_REF = 0x2
BASE_INDEX = 0x3
BASE_INDEX_DISP = 0x4
IMMED = 0x5
def doone(ea):
xrefs = []