Skip to content

Instantly share code, notes, and snippets.

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

レアコイル rarecoil

💭
<|endoftext|>
View GitHub Profile
@rarecoil
rarecoil / maskify2.go
Created November 4, 2019 01:31
Generate hashcat masks in a multithreaded fashion from a password list.
package main
import (
"flag"
"fmt"
"log"
"os"
"runtime"
"strings"
@rarecoil
rarecoil / intel-benchmark.txt
Created November 15, 2019 08:48
Intel UHD Graphics 620 - hashcat 5.1.0 OpenCL Benchmark, Intel i5-8250U, Ubuntu 18.04 LTS
hashcat (v5.1.0) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: Intel(R) Gen9 HD Graphics NEO, 4095/25647 MB allocatable, 24MCU
@rarecoil
rarecoil / gist:3d771f43ce7ef95a1c63c128613013b5
Created December 6, 2019 18:28
RX 5700 XT hashcat 5.1.0-git -m 15700 (Ethereum Wallet, SCRYPT)
hashcat (v5.1.0-1495-g53254b45) starting in benchmark mode...
OpenCL API (OpenCL 2.1 AMD-APP (2906.7)) - Platform #1 [Advanced Micro Devices, Inc.]
=====================================================================================
* Device #1: gfx1010, 8064/8176 MB (4048 MB allocatable), 20MCU
Benchmark relevant options:
===========================
* --optimized-kernel-enable
* --workload-profile=3
@rarecoil
rarecoil / x9-bench.txt
Created December 6, 2019 18:38
4x Radeon VII hashcat 5.1.0 benchmark
System specifications:
* Intel Xeon E5-2680v2
* 128 GB RAM
* 4 XFX Radeon VII
* hashcat v5.1.0-1474-gd315f614 (git)
* rocm-dkms 2.10.14
* Ubuntu 18.04
Stock clocks, stock fan, sclk/mclk variable.
@rarecoil
rarecoil / idle_kill.py
Last active January 26, 2020 21:48
shutdown a box if it hasn't been logged into for a while
#!/usr/bin/env python3
import getpass
import re
import time
import subprocess
import sys
MIN_UPTIME = 1800 # 30 minutes of uptime required before autokilling
TIME_DELTA = 21600 # 6 hours of uptime max before autokilling
@rarecoil
rarecoil / TriangleClassifier.ts
Last active January 30, 2020 06:45
A ridiculous, over-the-top classifier answer for a friend's (Java) computer science class, that robustly solves the problem in TypeScript and ignores the constraints of the professor.
export default class TriangleClassifier {
/**
* Return a string classifying a triangle based upon its sides.
*
* @param a Side A.
* @param b Side B.
* @param c Side C.
*/
public static classify(a:number, b:number, c:number):"isosceles"|"scalene"|"equilateral" {
@rarecoil
rarecoil / hashcat-bench.txt
Created February 7, 2020 06:46
AMD A6-1450 (Radeon HD 8250 / Kalindi) Hashcat Benchmark
hashcat (v5.1.0) starting in benchmark mode...
OpenCL Platform #1: Advanced Micro Devices, Inc.
================================================
* Device #1: Kalindi, 2268/3180 MB allocatable, 2MCU
Benchmark relevant options:
===========================
* --optimized-kernel-enable
* --workload-profile=3
@rarecoil
rarecoil / kubelet-whoami.py
Created February 11, 2020 20:53
Run `whoami` (arbitrary command) on every container via kubelet
#!/usr/bin/env python3
import requests
import json
import sys
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
cmd = "whoami"
@rarecoil
rarecoil / fahclient-rocm.txt
Created March 8, 2020 00:12
Folding@Home on ROCm multi-GPU failures
00:11:34: OS Arch: AMD64
00:11:34: GPUs: 4
00:11:34: GPU 0: Bus:131 Slot:0 Func:0 AMD:5 Vega 20 [Radeon VII]
00:11:34: GPU 1: Bus:134 Slot:0 Func:0 AMD:5 Vega 20 [Radeon VII]
00:11:34: GPU 2: Bus:137 Slot:0 Func:0 AMD:5 Vega 20 [Radeon VII]
00:11:34: GPU 3: Bus:140 Slot:0 Func:0 AMD:5 Vega 20 [Radeon VII]
00:11:34: CUDA: Not detected: cuInit() returned 100
00:11:34:OpenCL Device 0: Platform:0 Device:0 Bus:-125 Slot:0 Compute:2.0 Driver:3052.0
00:11:34:OpenCL Device 1: Platform:0 Device:1 Bus:-122 Slot:0 Compute:2.0 Driver:3052.0
00:11:34:OpenCL Device 2: Platform:0 Device:2 Bus:-119 Slot:0 Compute:2.0 Driver:3052.0
@rarecoil
rarecoil / encoding-challenge.py
Created April 22, 2020 05:56
CryptoHack: Encoding challenge
#!/usr/bin/env python3
from pwn import *
import json
import base64
import binascii
import codecs
import sys
def decode(t, data):
if t == 'base64':