Skip to content

Instantly share code, notes, and snippets.

sudo upgrade-from-grub-legacy - fix grub
http://seclist.us/beast-exploit-poc-of-beast-attack-against-ssltls.html
https://github.com/kostyll/poodle-exploit
https://github.com/kostyll/BEAST-exploit
http://habrahabr.ru/post/254737/
@kostyll
kostyll / rsacrack.py
Created October 28, 2015 17:25 — forked from dendisuhubdy/rsacrack.py
Cracking the RSA cyprtosystem time
import gmpy, time, random, math
def genprime(bits):
p=1
while(gmpy.is_prime(p)==0):
p = random.randrange(math.pow(2,bits-1),math.pow(2,bits))
return p
BITS=20
found=False
http://sdelay.tv/blogs/sergey-n/delaem-samodelnyi-3d-printer
@kostyll
kostyll / req_packages
Created November 12, 2015 11:20
required packages
apt-get:
python-pip
libc-dev-bin libc6-dev libexpat1-dev libpython-dev libpython2.7-dev python-dev python2.7-dev
g++
libpcap-dev libpcap0.8-dev
pip:
netifaces
netaddr
pcapy
scapy
@kostyll
kostyll / main.py
Created November 17, 2015 08:14 — forked from gear11/main.py
Simple Python proxy server based on Flask and Requests. See: http:/python-proxy-server/gear11.com/2013/12/python-proxy-server/
"""
A simple proxy server. Usage:
http://hostname:port/p/(URL to be proxied, minus protocol)
For example:
http://localhost:8080/p/www.google.com
"""
@kostyll
kostyll / proxy.py
Created November 17, 2015 08:17 — forked from bxt/proxy.py
A very basic caching python HTTP proxy server.
# Originally from http://sharebear.co.uk/blog/2009/09/17/very-simple-python-caching-proxy/
#
# Usage:
# A call to http://localhost:80000/example.com/foo.html will cache the file
# at http://example.com/foo.html on disc and not redownload it again.
# To clear the cache simply do a `rm *.cached`. To stop the server simply
# send SIGINT (Ctrl-C). It does not handle any headers or post data.
import BaseHTTPServer
import hashlib
@kostyll
kostyll / mxe_notes.md
Last active November 27, 2015 10:15
mxe workflow

1.download repo of mxe

2.make needed targets

make MXE_TARGETS='x86_64-w64-mingw32.static i686-w64-mingw32.static' freeglut qt ...

  1. generate project

cmake . -DCMAKE_TOOLCHAIN_FILE=/cross/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake

@kostyll
kostyll / sigterm.py
Created December 1, 2015 11:19
sigterm handler
import signal
import sys
def sigterm_handler(_signo, _stack_frame):
# Raises SystemExit(0):
sys.exit(0)
signal.signal(signal.SIGTERM, sigterm_handler)
signal.signal(signal.SIGINT, sigterm_handler)