$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install Cython
$ pip install numpy --no-use-pep517
$ pip install pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./hashcat -b | |
hashcat (v6.2.6-549-gd3f7c5132) 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. | |
The device #1 has been disabled as it most likely also exists as an OpenCL device, but it is not possible to automatically map it. | |
You can use -d 1 to use Metal API instead of OpenCL API. In some rare cases this is more stable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import cryptocompare | |
from time import sleep | |
from inky import InkyPHAT | |
from random import shuffle | |
from datetime import datetime | |
from PIL import Image, ImageDraw, ImageColor, ImageFont | |
def log(msg): | |
#print(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import time | |
import hashlib | |
import multiprocessing as mp | |
class Hashes(object): | |
def md5(s): | |
return hashlib.md5(str(s).encode()).hexdigest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import gzip | |
import requests | |
data = requests.get('https://url/file.txt.gz', stream=True) | |
in_ = io.BytesIO() | |
in_.write(data.content) | |
in_.seek(0) | |
gunzipped_bytes_obj = gzip.GzipFile(fileobj=in_, mode='rb').read() | |
data = gunzipped_bytes_obj.decode() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ssh root@host "dd if=/dev/sda1" | dd of=host.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import dns.resolver | |
import multiprocessing as mp | |
def worker(hostname, results): | |
resolv = dns.resolver.Resolver() | |
resolv.nameservers = [ | |
'8.8.8.8', # Google | |
'8.8.4.4', # Google |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Security enhancements and custom Nginx server header | |
# | |
# Requirements: | |
# $ apt install nginx vim | |
# $ apt install libnginx-mod-http-headers-more-filter | |
# $ vim /etc/nginx/sites-enabled/default | |
# | |
# Further reading http://docs.hardentheworld.org/Applications/Nginx/ | |
# | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Yara signatures for identifying secrets in text files. Requires libmagic! | |
Mostly all stolen from Trufflehog regexes: | |
- https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json | |
*/ | |
import "magic" |
NewerOlder