Skip to content

Instantly share code, notes, and snippets.

View mateusza's full-sized avatar

Mateusz Adamowski mateusza

View GitHub Profile
#!/bin/bash
mkdir -p z-return0 bez-return0
cat > z-return0/prog.c <<EOF
#include <stdio.h>
int main(){
https://www.wykop.pl/
printf("Hello world\n");
import sys
import sha
import base64
import time
import Crypto.PublicKey.RSA
cmd, prefix, suffix = map( lambda x:x.lower(), sys.argv + [ "", "" ] )[0:3]
print "usage: %s [PREFIX [SUFFIX]]" % cmd
print "searching for RSA keypair corresponding to TOR hostname [%s%s%s]:" % ( prefix, "_" * ( 16 - len(suffix+prefix)), suffix )
import sys
import fractions
import operator
import collections
def factorize( n ):
assert type(n) in (int, long)
assert n > 0
div = 2
while n > 1:
import ssl
import BaseHTTPServer
import SimpleHTTPServer
class HTTPSServer( BaseHTTPServer.HTTPServer ):
def __init__( self, port, RQ, cert ):
BaseHTTPServer.HTTPServer.__init__( self, port, RQ )
self.socket = ssl.wrap_socket( self.socket, certfile=cert )
if __name__ == '__main__':
@echo off
PATH=%PATH%;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
csc test1.cs
echo Done
pause