This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
PATH=%PATH%;C:\Windows\Microsoft.NET\Framework64\v4.0.30319 | |
csc test1.cs | |
echo Done | |
pause |
OlderNewer