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
@MilyMilo
MilyMilo / osx-for-hackers.sh
Created March 18, 2022 15:12 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
import os
import socket
import string
import random
# requirements.txt:
# pyzbar (pip) + zbar-gtk (dnf)
# Pillow
# isbnlib
# 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 = []
@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
#!/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 / 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
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 / 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
package main
import (
"fmt"
"os"
)
var (
tileWidth int
tileHeight int
package main
import (
"fmt"
"math"
"strings"
)
const (
RIGHT = iota