- python-selenium (can be install by doing
pip install selenium
) - geckodriver
usage: codeforces-register.py [-h] [-e EMAIL] [-p PASSWORD] [-a] contest_id
import numpy as np | |
import matplotlib.pyplot as plt | |
def fill_square(x1, y1, size, img): | |
for x in range(x1, x1+size): | |
for y in range(y1, y1+size): | |
img[x, y] = 0 | |
return img |
// ==UserScript== | |
// @name code jam | |
// @version 2.1 | |
// @author Mukundan Senthil | |
// @include https://codingcompetitions.withgoogle.com/* | |
// @require http://code.jquery.com/jquery-latest.js | |
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/waitForKeyElements.js | |
// @grant none | |
// ==/UserScript== |
package main | |
import ( | |
"net/http" | |
"log" | |
) | |
var urlMap = map[string]string{ | |
"google": "https://google.com", | |
"github": "https://github.com", |
pip install selenium
)usage: codeforces-register.py [-h] [-e EMAIL] [-p PASSWORD] [-a] contest_id
import argparse | |
import socket | |
import sys | |
from tqdm import trange | |
def main(argv): | |
parser = argparse.ArgumentParser(description="A port scanner") | |
parser.add_argument("host", type=str) |
server { | |
listen *:8080; | |
server_name localhost; | |
root /tmp/data; | |
autoindex on; | |
} |
If we get all printable inside the executable by using the strings
command and ignore all symbol and compiler metadata what is left is:
Enter password:
FEDORAGCIPASSEASY
Success!
Error! Wrong password!
0x1337
0x133337
import socket | |
import io | |
def main(): | |
HOST, PORT = "localhost", 5000 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) |
import argparse | |
import hashlib | |
import sys | |
HASH_ALGORITHIMS = ["md5", "sha1", "sha224", "sha256", "sha384", "sha512"] | |
def hash_subcommand(args): | |
h = hashlib.new(args.algorithim) | |
h.update(args.string.encode('ascii')) |
import argparse | |
import sys | |
from PIL import Image | |
def encode_subcommand(args): | |
im = Image.open(args.input_image) | |
pixels = im.load() | |
data = args.data.encode('ascii') + b'\0' |