Skip to content

Instantly share code, notes, and snippets.

View rarecoil's full-sized avatar
💭
<|endoftext|>

レアコイル rarecoil

💭
<|endoftext|>
View GitHub Profile
@rarecoil
rarecoil / webpack_source_reconstruct.py
Created June 12, 2019 00:49
Reconstruct source files from a webpack-made sourceMap
#!/usr/bin/env python3
import json
import os
import sys
def main():
if len(sys.argv) != 2:
print("Usage: webpack_source_reconstruct.py /path/to/source.map")
sys.exit(1)
@rarecoil
rarecoil / emdeefive.py
Created June 4, 2019 05:22
Emdee five for life (HackTheBox Web Challenge)
import requests
import hashlib
URI = "http://docker.hackthebox.eu:35596"
PROXIES = {} # {'http':'http://127.0.0.1:8080'}
def get_and_hash(ret):
begin = ret.find("<h3 align='center'>") + 19
end = ret.find("</h3>")
md5_string = ret[begin:end].encode('utf-8')
@rarecoil
rarecoil / maskify.go
Created May 20, 2019 02:07
Generate hashcat masks from a password list. Much faster than maskify.py
package main
import (
"bufio"
"fmt"
"log"
"os"
"strings"
"time"
)
@rarecoil
rarecoil / maskify.py
Last active November 30, 2021 19:49
Multithreaded script to analyze & create hashcat-esque unique password masks from large password lists.
#!/usr/bin/env python3
"""
maskify.py
Creates password categorization masks from big password lists
in a multithreaded fashion. Note that it assumes you have enough
RAM to hold the unique mask dict in memory. Used to analyze a 300M+
unique password list for types and occurrences.
On an ODROID-C2, runs at about 50-52K passwords/sec.
@rarecoil
rarecoil / ArchWSL_alarm_distcc.md
Last active May 1, 2019 20:22
Windows 10 LTSC as an Arch Linux ARM Build Slave for RPi 3

Windows 10 LTSC as an Arch Linux ARM RPi 3 Build Slave

Your SBC (in my case a Raspberry Pi 3) is likely not the fastest machine in your collection. Thankfully, if you have a laptop or desktop you normally use, you can recruit it to assist your Raspberry Pi in compiling Arch Linux packages for itself. It is fairly easy to do with another Arch Linux machine, but a little tougher if you don't have one running that.

I have two laptops, a ThinkPad X250 running Windows 10 Enterprise LTSC and an Apple MacBook. The X250's i7-5600U has a substantial amount more power than my MacBook, but runs Windows. This is not a big deal with the Windows Subsystem for Linux and distcc, a distributed C compiler infrastructure.

For this to work, both computers must be on the same network and they must be able to talk to each other.