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 / Computer Science Tools, Books & Articles.md
Last active April 26, 2024 06:40
Computer Science Tools, Books & Articles

BOOKS:

  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • Computer Systems: A Programmer's Perspective, 3 Edition [Randal E. Bryant, David R. O'Hallaron]
  • Code: The Hidden Language of Computer Hardware and Software [Petzold, Charles]
  • How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine [Justice, Matthew]
  • How the Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance [Article 19, Knodel, Mallory, Uhlig, Ulrike, ten Oever, Niels, Cath, Corinne]
  • How Software Works: The Magic Behind Encryption, CGI, Search Engines, and Other Everyday Technologies [Spraul, V. Anton]
  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • How Cybersecurity Really Works: A Hands-On Guide for Total Beginners [Grubb, Sam]
@trietptm
trietptm / CTFs.md
Created June 30, 2020 07:39
CTFサイト集。デザイン確認のためのテスト用。

CTFs

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

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

常設CTF

初心者向け

@trietptm
trietptm / ep4.py
Created September 8, 2013 16:06
Programming [Root Me: dedicated to Hacking and Security learning platform Information] http://www.root-me.org/fr/Challenges/Programmation/Uncompress-me
import sys, socket, ssl, time
import urllib, re, math
import base64, zlib
NICK = 'trietptm'
IDENT = 'trietptm'
REALNAME = 'trietptm'
CHAN = '#Root-Me_Challenge'
PASSWORD = 'mypassword'
data = ''
@trietptm
trietptm / Encoding-ASCII-decode.py
Created September 8, 2013 16:57
Cryptanalysis [Root Me: learning platform dedicated to Hacking and Information Security] http://www.root-me.org/fr/Challenges/Cryptanalyse/Encodage-ASCII
import re
str = '4C6520666C6167206465206365206368616C6C656E6765206573743A203261633337363438316165353436636436383964356239313237356433323465'
str_byte_list = re.findall('..', str)
result = ''
for i in xrange(0,len(str_byte_list)):
result = result + chr(int(str_byte_list[i], 16))
print result
@trietptm
trietptm / captcha.py
Last active March 11, 2024 11:55
Programming [Root Me: dedicated to Hacking and Security learning platform Information] http://www.root-me.org/fr/Challenges/Programmation/CAPTCHA-me-if-you-can?lang=fr
import urllib2, re
import urllib, os, subprocess, time, base64
opener = urllib2.build_opener()
continue_loop = True
while True:
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0')]
opener.addheaders.append(('Cookie', 'challenge_frame=1; spip_session=myspip_session; PHPSESSID=myPHPSESSID'))
opener.addheaders.append(('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'))
opener.addheaders.append(('Accept-Language', 'en-US,en;q=0.5'))
@trietptm
trietptm / rol-ror.py
Created August 3, 2016 16:27 — forked from vqhuy/rol-ror.py
python rol, ror operation implement
###########################################################################
# Rotating bits (tested with Python 2.7)
from __future__ import print_function # PEP 3105
# max bits > 0 == width of the value in bits (e.g., int_16 -> 16)
# Rotate left: 0b1001 --> 0b0011
rol = lambda val, r_bits, max_bits: \
(val << r_bits%max_bits) & (2**max_bits-1) | \
http://cryptosuite.org/forum/ CryptoSuite.ORG || The Best Encryption Platform Of The World
http://www.turkworm.com/default/index.php?wwwRedirect IP//TurkWorm.Com Hacking & Security Platform - Anasayfa
http://www.turkishajan.com/ Hack l TurkishAjan Turkish Hacking&Security Forum // Turk Hack ve Güvenlik Forumları
http://www.wardom.org/forum.php Wardom.Org - Forum
http://www.idhteam.org/ IDHTEAM UNDERGROUND
http://hcegroup.us/forum/forum.php H@ck and Cr@ck = Enj0y!
http://beyeugroup.net/BYG/forum.php BeYeuGroup - A Legend of Vietnamese Hackers World
http://cin1team.biz/index.php CiN1 Team - Cracking Is Number 1
http://diendancracker.com/ diễn đàn crack, diễn đàn seo, crack việt nam
http://forum.ayyildiz.org/forum.php AYYILDIZ TİM - Psikolojik Savaş Ve Stratejik Araştırmalar Merkezi
http://comradex.co/ Comradex | Advanced Programming - Penetration Testing - Vulnerabilities and Defence - Undetection
http://cryptosuite.org/forum/ CryptoSuite.ORG || The Best Encryption Platform Of The World
http://cyber-warrior.org/Forum/Login_User.Asp Cyber-Warrior.Org
http://hidden-sabotage.com/ Hidden-Sabotage.Com - Crypter, Keylogger, Stealer, Trojen, Fud, Güvenlik - Eğitim Sitesi | Private Undetecter Team | - vBulletin
http://imhatimi.org/forums.php iMHATiMi.ORG Hack sitesi | Hack Programları | Skype Hack | Türk Hack | Exploits | Trojan | Keylogger | FUD Keylogger | FUD exe | Botnet exe - Forumlar Warez & hack ve hacker Kolezyumu
http://mavi1.org/forum/ mavi1.org - O Bir Dünya Markası
http://millikuvvetler.net/Forum.php Hack | MilliKuvvetler TIM | Vatanın Sanal Koruyucuları | Alayına İsyan Ölümüne Vatan | GÜCÜ HİSSET - vBulletin
http://redhatz.org/ RedHatz
@trietptm
trietptm / idapython_ctree.md
Created May 1, 2020 13:56 — forked from icecr4ck/idapython_ctree.md
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.