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
@opie4624
opie4624 / Solution.txt
Created January 10, 2009 05:15
Puzzles for Hackers
>>> from xorencdec import xorencdec
>>> xorencdec('creature_creature_creature',']VTYJQC]aGC]_PDJ[{RJ[EEMLA')
'>$18>$18>$18>$18>$18>$18>$'
>>> xorencdec('Smith','>$18')
'mIXLV'
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
char *g_data;
size_t g_size;
size_t savedata(void *ptr, size_t size, size_t nmemb, void *stream)
{
@revmischa
revmischa / how_computers_work.txt
Last active September 30, 2021 03:11
How computers work
How computers work
==================
Most people on the planet directly interact with computers on a daily
basis. They may be fooling around on their cell phone, writing a paper
for their homework, or playing video games. Despite the ubiquity
of digital computing devices, there is an astonishingly small number of
people who are familiar with the inner workings of these devices. Not
only that, but due to the fact most people think of computers in
@gerry
gerry / htl_extract.py
Last active April 8, 2020 11:08
Extracts the embedded source code from Cisco Security Agent Management Console.
#!/usr/bin/env python
"""htl_extract.py, Extracts the embedded source code from Cisco Security Agent Management Console.
Gerry <[email protected]>
"""
import os
import sys
import struct
import pefile
from itertools import takewhile
@kimoto
kimoto / gist:854498
Last active June 6, 2016 09:39
Windowsで使ってるソフトウェアメモ
Windowsで使ってるソフトウェアメモ
Webブラウザ
Firefox
使ってるAddon
AutoPagerize
自動でページ継ぎ足し
Navigational Sounds
右クリックしたときに音でるようにするやつ
Secure Login
@ashigeru
ashigeru / example.md
Created May 16, 2011 14:56
Markdown Sandbox

Section

aaa

Subsection

  • item1
  • item2
@WarGaming
WarGaming / injection.php
Created June 12, 2011 17:29
Sample SQL injection
<div style="text-align:center;">
<p>
The idiot who wrote this form's handler pretty much sucks. There's a few reasons why.
</p>
<form method="post" action="">
<label for="ext">Username:</label><br />
<input type="text" name="username" class="textbox" value="" /><br /><br />
<label for="password">Password:</label><br />
<input type="text" name="password" class="textbox" value="" /><br /><br />
@v-p-b
v-p-b / pydbg-install-tips
Created June 13, 2011 14:55
PyDbg install tips
http://code.google.com/p/paimei/ - As of r253
- You need pydasm, it is included in the libdasm package. v1.5 is fine, you don't want to fight with the bugs of the unstable version - http://code.google.com/p/libdasm/
- PyDasm will cry about MSVC scripts but you don't need those. Install MinGW (with C++ support?) - http://www.mingw.org/
- Add MinGw's bin directory to your path or else it won't find gcc
- Remove the -mno-cygwin parameters from pythonXX\lib\distutils\cygwinccompiler.py, remove the .pyc to recompile
- setup.py build_ext --compiler=mingw32
- setup.py install may fail. Install the lib by copying the .pyd file from the build directory to PythonXX\Lib\site-packages
- You don't need PaiMei's dependencies to use PyDbg, just simply build and install with setup.py
- Remove the bundled pydasm.pyd from the PaiMei package
@endeav0r
endeav0r / hex.c
Created June 24, 2011 18:13
display file in hex
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char * argv[]) {
int filesize;
int i;
unsigned char byte;
char string[41];
@mbijon
mbijon / xss_clean.php
Last active November 1, 2022 03:23
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources