Skip to content

Instantly share code, notes, and snippets.

View vuryleo's full-sized avatar

Vury Leo vuryleo

View GitHub Profile
@vuryleo
vuryleo / ROP.py
Created January 5, 2015 07:53
recho
import time
import struct
from zio import *
io = zio(('localhost', 1234))
timeout = 1000 * 1000
buf = 0x0804a10c
recv_addr = 0x080489e6
@vuryleo
vuryleo / rec.cc
Last active August 29, 2015 14:18
/*
* $File: c.cc
* $Date: Fri Jul 10 15:00:27 2015 +0800
* $Author: Xiaoyu Liu <i[at]vuryleo[dot]com>
*/
#include <iostream>
#include <memory>
#include <vector>
#include <map>
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# $File: downloadIITC.py
# $Date: Thu Sep 24 11:28:10 2015 +0200
# $Author: Xiaoyu Liu <i[at]vuryleo[dot]com>
import requests
from bs4 import BeautifulSoup
import os
import sys
def shiftL(l, s):
return l[s:] + l[:s]
def getDiff(li, totalLen):
if len(li) < 2:
raise Exception('toooo short')
li.append(totalLen + li[0])