Skip to content

Instantly share code, notes, and snippets.

View duongkai's full-sized avatar

Pham Tung Duong duongkai

View GitHub Profile
@duongkai
duongkai / gist:5295033
Created April 2, 2013 18:48
This script will send a specified book to your Kindle App
# version 0.1
# this script will send a particular book to my kindle app
require 'gmail'
if ARGV.length != 1
puts "Wrong syntax. $SendToMyKindle.rb <path_to_book>"
abort "Wrong input"
end
sending_book = ARGV[0]
@duongkai
duongkai / gist:4534596
Created January 14, 2013 23:39
TetCon_2013_SQLNet.ora
TRACE_DIRECTORY_CLIENT = TetCon/trace
TRACE_FILE_CLIENT = wtf
TRACE_LEVEL_CLIENT = SUPPORT
@duongkai
duongkai / gist:4534572
Created January 14, 2013 23:35
TetCon_2013_Stealth.Password.Cracking
from Crypto.Cipher import AES
from hashlib import *
from itertools import *
from sys import *
AES_BLOCK_SIZE = 24
VALID_PADDING = '08' * 8
IV = ('00' * 16).decode ('hex')
CHARACTER_SET = 'abcdefghijklmnopqrstxyzuvw0123456789'
MIN_LENGTH = 1