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:4290757
Created December 15, 2012 02:25
Finding all permutations of a list(PROLOG) a snippet that lists all the possible permutations of a list
appendlist([], X, X).
appendlist([T|H], X, [T|L]) :- appendlist(H, X, L).
permutation([], []).
permutation([X], [X]) :-!.
permutation([T|H], X) :- permutation(H, H1), appendlist(L1, L2, H1), appendlist(L1, [T], X1), appendlist(X1, L2, X).
@trietptm
trietptm / gist:4291060
Created December 15, 2012 03:21
GCD in prolog a simple snippet in prolog to find the greatest common divisor of 2 numbers
gcd(0, X, X) :-!.
gcd(X, 0, X) :-!.
gcd(X, X, X) :-!.
gcd(M, N, X) :- N>M, Y is N-M, gcd(M, Y, X).
gcd(M, N, X) :- N<M, Y is M-N, gcd(Y, N, X).
@trietptm
trietptm / gist:4291209
Created December 15, 2012 03:49
Ackermann function (Prolog)
ackermann(0,N,X) :- X is N+1.
ackermann(M, 0, X) :- M>0, M1 is M-1, ackermann(M1, 1, X).
ackermann(M, N, X) :- M>0, N>0, M1 is M-1, N1 is N-1, ackermann(M, N1, X1), ackermann(M1, X1, X).
12345678910
123-567-910
.data:00402348 byte_402348 db 31h ; DATA XREF: sub_401111+19Do
.data:00402348 ; sub_401111:loc_4012E3w
.data:00402348 ; sub_401111+1DAo
.data:00402349 db 33h ; 3
.data:0040234A db 34h ; 4
.data:0040234B *byte_40234B db 42h ; DATA XREF: sub_401111+1ADr
@trietptm
trietptm / gist:4345295
Created December 20, 2012 13:20
Some links to useful websites!
http://rcejunk.blogspot.com/
http://www.arteam.accessroot.com/
http://www.reversing.be/
http://www.crackmes.de/
http://www.cracklab.ru/
http://www.cryptopp.com/
http://www.alpertron.com.ar/DILOG.HTM
http://drizz.has.it/
http://www.exetools.com/
http://htbteam.net/
@trietptm
trietptm / gist:4363952
Last active December 10, 2015 01:58
Writeup Binary 300 :: hack you too - Target: http://hackyou.ctf.su/files/keygen_me.exe
Tasks :: hack you too
http://hackyou.ctf.su/tasks/keygen_me
SHA256: 493a6ca5f9a909a4fe0687ea6c2682438c29406b0ad1e774a30020acb6e1c887
SHA1: 1fb5e902883d203624b242affcc6ca15e9bcb4b5
MD5: 987cff478289582011e700d3c22d3b51
Breakpoints:
Abs 0xD61258 Break
Abs 0xD612A6 Break
@trietptm
trietptm / gist:4382075
Created December 26, 2012 18:33
Disable third-party cookies in Firefox to stop some types of tracking by advertisers
Disable third-party cookies in Firefox to stop some types of tracking by advertisers | Firefox Help
http://support.mozilla.org/en-US/kb/disable-third-party-cookies
Note:
Disabling third-party cookies in Firefox can stop some types of tracking by advertisers, but not all.
@trietptm
trietptm / gist:4382111
Created December 26, 2012 18:36
How do I turn on the Do-not-track feature? | Firefox Help
How do I turn on the Do-not-track feature? | Firefox Help
http://support.mozilla.org/en-US/kb/how-do-i-turn-do-not-track-feature
Note:
When you turn on the Do-not-track feature, Firefox tells every website you visit (as well as their advertisers and other content providers) that you don't want your browsing behavior tracked. Honoring this setting is voluntary — individual websites are not required to respect it.
@trietptm
trietptm / gist:4384819
Created December 27, 2012 02:01
Malware Attribute Enumeration and Characterization A Structured Language for Attribute-Based Malware Characterization
MAEC - Releases
http://maec.mitre.org/language/version3.0/
http://crackmes.de/users/pulsar_tr/pulsar_crackme_very_very_easy/solutions/zombie8/browse/solution.txt
************************************
Target: Pulsar Crackme (Level 0) by PuLsAr
Protection: None
Create Date: Agust 27th 2004
Reverse Type: Serial
Author's Comment: This is very very easy crackme for NewBie's.
************************************