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 / gist:7fdefdc0cb61e76b9813
Created May 28, 2014 06:30
10 comp commandments.txt
THINGS YOU WILL NOT DO TO YOUR COMPUTER !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1) THOU SHALT NOT BLIND CLICK THROUGH ANY INSTALL OF A PROGRAM !
(this is wheRE all the bundled software shit lives. Pay attention or get 8 programs that suck the life out of your computer)
2) THOU SHALT NOT INSTALL ANYTHING THAT WILL SPEED UP YOU PC !
(I'm not going to explain all of these to you. Dont do it or I will see you again when your computer is slow as hell and give you a big ration of shit for not listening to me)
3) THOU SHALT NOT INSTALL ANY DRIVERS FROM ANY WEBSITE OTHER THEN THE MANUFACTURERS !
4) THOU SHALT NOT INSTALL MULTIPLE ANTI VIRUS PROGRAMS THAT ALL RUN AT THE SAME TIME !
5) THOU SHALT NOT INSTALL ANY PROGRAM THAT CLAIMS TO OPTIMIZE YOUR COMPUTER !
6) THOU SHALT NOT CLICK LINKS IN EMAILS FROM PEOPLE YOU DONT KNOW !
7) THOU SHALT NOT EVEN OPEN EMAILS FROM PEOPLE YOU DONT KNOW !
enum EmulatorDetections_t
{
EmulatorDetections_OS_Beep,
EmulatorDetections_OS_GetTickCount,
EmulatorDetections_OS_SetLastError,
EmulatorDetections_OS_IsBadReadPtr,
EmulatorDetections_OS_CreateMutex,
EmulatorDetections_OS_IsDebuggerPresent,
// EmulatorDetections_OS_FirstModuleHash,
EmulatorDetections_CPU_InstructionLength,
@trietptm
trietptm / gist:c93b9ec3c298b81b7d8b
Created June 19, 2014 07:32
binary-auditing-training-package\005 - algorithm analysis\AlgoMe2\AnalyseMe004.exe
int __cdecl main(int argc, const char **argv, const char **envp)
{
signed int y_1; // ecx@1
signed int x_1; // eax@1
int remainder_1; // edx@2
unsigned int y_2; // esi@3
signed int x_2; // ecx@3
int remainder_2; // edx@4
signed int y_3; // esi@5
signed int x_3; // eax@5
[DISASM]
000000 //Instruction
1bbb6b //Directive
967b87 //Macro name
3d868b //Register name
688687 //Other keywords
dc5d9a //Dummy data name
507168 //Dummy code name
4de2a9 //Dummy unexplored name
ff2f94 //Hidden name
@trietptm
trietptm / gist:da563fdfc0232287a7e1
Created August 20, 2014 12:48
Security, Reverse, Hacking: WinDbg and IDA to Improved Code Flow Analysis http://sec-mode.blogspot.com/2012/09/windbg-and-ida-to-improved-code-flow.html
# Windbg log parser IDApython script
# Author: Matthew Graeber
# Modify: ipfans
# Update:
# v0.1:
# Initialized. (Matthew Graeber)
#
# v0.2:
# 1) fix indent;
@trietptm
trietptm / re300.py
Last active August 29, 2015 14:06
grandprix.whitehat.vn 2014, RE300
list_values = [0x70, 0x3B, 0x68, 0xF3, 0x4D, 0xDB, 0xA4, 0xB7, 0x46, 0xBE, 0x2B, 0x38, 0xE1, 0xFA, 0x6B, 0x50, 0xFC, 0xE5, 0xF7, 0x62, 0xB0, 0x77, 0x5A, 0x5C, 0xD0, 0x8C, 0xD5, 0x1A, 0x87, 0xDC, 0x12, 0x3D, 0xCD, 0x3A, 0x9B, 0x7B, 0x4A, 0xEC, 0x4B, 0x1E, 0x63, 0x1D, 0x60, 0xC2, 0x78, 0xAD, 0xF6, 0x94, 0x23, 0xBC, 0x97, 0x2D, 0x8D, 0xE3, 0x8E, 0x69, 0x88, 0x66, 0x2C, 0x98, 0x9D, 0xCB, 0x1B, 0xFB, 0x20, 0xAA, 0x5D, 0xB1, 0x05, 0x61, 0x52, 0xF9, 0x1F, 0xBB, 0x04, 0xFF, 0x31, 0x10, 0x89, 0x55, 0xF1, 0x82, 0x7A, 0x45, 0x25, 0x49, 0x6F, 0x64, 0xED, 0x18, 0x9E, 0x1C, 0xD6, 0xD3, 0x9A, 0xF4, 0xC9, 0xC0, 0x0F, 0x0A, 0xE2, 0x28, 0x7E, 0x33, 0xFD, 0x34, 0xA0, 0x2F, 0x91, 0x57, 0xDD, 0x03, 0x27, 0xB6, 0x6D, 0xCE, 0xBF, 0x01, 0x16, 0x43, 0xA3, 0x59, 0xEF, 0x4C, 0xDF, 0xD1, 0x71, 0x15, 0xE0, 0x7F, 0x47, 0x85, 0x48, 0xC4, 0xDE, 0x56, 0x76, 0x4F, 0x53, 0x75, 0x5B, 0xB9, 0x95, 0x2A, 0x09, 0x5F, 0x92, 0x32, 0xD2, 0x6C, 0x08, 0x26, 0xA5, 0x8A, 0x58, 0x07, 0xF5, 0x51, 0xE8, 0x9F, 0xAB, 0xD8, 0xC3, 0xB2, 0xEE, 0xC7, 0x81, 0x44, 0
# (c) 2010 Adam Pridgen adam@praetoriangrp.com, adam.pridgen@thecoverofnight.com
# ida_pro_name_runtime_imports.py:
# Rename references to runtime imports in a given function
# GPLv3 License
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# (c) 2010 Adam Pridgen adam@praetoriangrp.com, adam.pridgen@thecoverofnight.com
# ida_pro_remove_all_names_in_function.py:
# Remove all Data reference names in function
# GPLv3 License
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# (c) 2010 Adam Pridgen adam@praetoriangrp.com, adam.pridgen@thecoverofnight.com
# ida_pro_decode_strings.py:
# decode strings, rename, and comment on encoded strings in the binary
# GPLv3 License
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
@trietptm
trietptm / keygen1.py
Created November 19, 2014 10:40
Keygenning challenge keygenme1 of wargame.vn at http://wargame.vn/re1.html
import argparse
parser = argparse.ArgumentParser(description='Generate serial from username and email for the challenge keygenme1 of wargame.vn at http://wargame.vn/re1.html')
parser.add_argument('username', help='username to register')
parser.add_argument('email', help='email to register')
args = parser.parse_args()
username = args.username + chr(0xA) #fgets includes new line character
email = args.email + chr(0xA) #fgets includes new line character
def fuzz(username):