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
@sourcerebels
sourcerebels / download-phrack-issues.sh
Created February 20, 2012 20:14
Download all Phrack Magazine Issues
#!/bin/sh
for i in {1..67}
do
FILE="phrack${i}.tar.gz"
wget http://phrack.org/archives/tgz/${FILE}
tar xvzf ${FILE}
rm ${FILE}
done
@CocoaBeans
CocoaBeans / gdbinit
Created February 21, 2012 21:58
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
@jappy
jappy / dos2unix.sh
Created March 10, 2012 18:03
Shell script to convert files with CRLF to LF (Mac/Linux)
#! /bin/sh
for x
do
echo "Converting $x"
tr -d '\015' < "$x" > "tmp.$x"
mv "tmp.$x" "$x"
done
@packz
packz / gist:2036038
Last active April 29, 2016 17:35
Security
@amorri40
amorri40 / fixobjc.idc
Created April 2, 2012 06:25
Fix objC for Ida 6.1
// vim: ft=cpp sw=4 ts=4 et
/* (C) 2003-2008 Willem Jan Hengeveld <itsme@xs4all.nl>
*
* Web: http://www.xs4all.nl/~itsme/projects/ida/
*/
#define UNLOADED_FILE 1
#include <idc.idc>
// this script processes the objective C typeinfo tables,
// and names functions accordingly.
@melice
melice / gist:2337560
Created April 8, 2012 14:23
反调试技术(以OD为例附核心原代码)
反调试技术(以OD为例附核心原代码)
【标 题】:反调试技术(以OD为例附核心原代码)
【作 者】:★天&緣★
【时 间】:2007-11-16 18:14
【链 接】:http://www.wgum.net/viewthread.php?tid=980
知其然,知其所以然,希望大家觉得有用,大家可以用在自己程序中查看自己的程序是否被调试..同时为了更好的了解一些游戏无法用OD调试的原因
1.程序窗口句柄检测
原理:用FindWindow函数查找具有相同窗口类名和标题的窗口,如果找到就说明有OD在运行
//********************************************
@amutz
amutz / Crypted
Created April 23, 2012 17:53
You can't crack the fourth paragraph
NCCSBYVB VF N ENCVQYL RKCNAQVAT NAQ JRYY-SHAQRQ PBZCNAL SBPHFRQ BA QRYVIREVAT GNETRGRQ FBSGJNER-NF-N-FREIVPR FBYHGVBAF GB OHFVARFFRF. BHE PBZCNAL JNF SBHAQRQ OL N GRNZ BS GRPUABYBTL YRNQREF JVGU ZNAL LRNEF BS RKCREVRAPR QRIRYBCVAT FNNF NCCYVPNGVBAF. JR ORYVRIR GUNG N FZNYY TEBHC BS CNFFVBANGR CRBCYR PNA QRYVIRE RKGENBEQVANEL ERFHYGF. JR ORYVRIR VA SBPHF NAQ XABJ JR PNA BAYL QB N SRJ GUVATF ERNYYL, ERNYYL JRYY. BHE PBZCNAL VF RKCREVRAPRQ NAQ OHVYG GB YNFG.
KQN OKBPSWNA AJCEJAANO SKNG PK XQEHZ OYWHWXHA, NKXQOP WJZ AWOU PK QOA OKHQPEKJO PK YKILHAT XQOEJAOO LNKXHAIO. ZAHERANEJC EJPQEPERA WJZ NAOLKJOERA WLLHEYWPEKJO KRAN PDA SAX NAMQENAO QO PK OKHRA XKPD ZEBBEYQHP AJCEJAANEJC WJZ LNKZQYP ZAOECJ LNKXHAIO.  LHAWOA AIWEH QO WP PAYD.FKXO@WLLBKHEK.YKI PK DAWN IKNA WXKQP KLLKNPQJEPEAO WP WLLBKHEK.
WDWCMSTQDCSFVDCMAFMADODMADMSDMLFMDDQRWBNCQDTNKENQSCIJDWFSBCBFLBADLQDDNECUSNMNKYCMACMCLFJDTNJJCINQCSFVDWNQHDMVFQNMKDMSFEYNUCQDCRKCQSVDQRCSFJDRNESWCQDDMLFMDDQWFSBCADRFQDSNWNQHWFSBSBDENJJNWFMLSDTBMNJNLFDRWDAJNVDSNBDCQEQNKYNUQCF
@joshenders
joshenders / history
Created May 15, 2012 01:54
environment variables relating to .bash_history
# Unset bounds on history file. Disk is cheap, unlimited is fine until it's not
# and then rotate
export HISTFILESIZE=
export HISTSIZE=
# Add timestamps to .bash_history
# TODO: find someway to store the current working directory for forensics
export HISTTIMEFORMAT="%d/%m/%y %T "
# The "ignoreboth" setting ignores repeated lines as well as silently discards
@matthewmccullough
matthewmccullough / game-theory-books.markdown
Created May 17, 2012 22:10
Game Theory Book list by Matthew McCullough

Economics & Software Development - Book List

The following books are ordered in descending order of Matthew's preference.

by Avinash K. Dixit

Recommended by Ted Neward. A different perspective and writing style from the other volumes listed.

“I am hard pressed to think of another book that can match the combination of practical insights and reading enjoyment.”—Steven Levitt

@e-dard
e-dard / linkedin.py
Created June 6, 2012 17:11
Checks if your password is in the Linkedin password dump.
#!/usr/bin/env python
# encoding: utf-8
"""
linkedin.py
Created by Edward Robinson on 2012-06-06.
You'll need to go find the password dump yourself.
Google combo_not.zip
"""