Skip to content

Instantly share code, notes, and snippets.

View MilyMilo's full-sized avatar
:shipit:
std::peep

Miłosz Skaza MilyMilo

:shipit:
std::peep
View GitHub Profile
package main
import (
"bufio"
"fmt"
"log"
"net/http"
"net/url"
"os"
"sync"
package main
import (
"fmt"
"strings"
)
// TODO: AI Player
func main() {
var turn int
package main
import (
"fmt"
"math"
"strings"
)
const (
RIGHT = iota
package main
import (
"fmt"
"os"
)
var (
tileWidth int
tileHeight int
@MilyMilo
MilyMilo / docker-compose.yml
Created October 3, 2018 09:51
Docker PHP + PSQL + PGADMIN
version: '3'
services:
php:
image: milymilo/php-psql-dev:7.3-rc-alpine3.8
volumes:
- ./app:/app
ports:
- 8080:8080
from flask import Flask
from subprocess import Popen as popen
from time import sleep
app = Flask(__name__)
@app.route('/attack', methods=['POST'])
def attack():
# launch sub-process for launching x-eyes
@MilyMilo
MilyMilo / proxy.sh
Created June 22, 2019 11:11
Simple netcat/nc based proxy
#!/bin/sh -e
if [ $# != 3 ]
then
echo "usage: $0 <src-port> <dst-host> <dst-port>"
exit 0
fi
TMP=`mktemp -d`
BACK=$TMP/pipe.back
#!/bin/bash
USERNAME="test"
CA_CRT="./ca/server.crt"
CA_KEY="./ca/server.key"
TIME=$(date +%H_%M)
OUT="${TIME}_${USERNAME}/"
mkdir $OUT
@MilyMilo
MilyMilo / crypto.py
Last active August 12, 2019 15:34
HTB Fortune Scripts
from __future__ import division
import base64
import hashlib
import os
import six
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import Cipher
# Loading fibonacci
fib_nums = []
with open("fib.txt", "r+") as fib:
lines = fib.readlines()
for line in lines:
fib_nums.append(int(line.strip()))
# Loading bytes
kipod_bytes = []