$ 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
rule osx_finder_rce_21 { | |
meta: | |
description = "https://ssd-disclosure.com/ssd-advisory-macos-finder-rce/" | |
strings: | |
$xml_1 = /\<\?xml/ | |
$xml_2 = /\<plist/ | |
$xml_3 = /\<key\>URL/ | |
$sploit_str = /\<string\>(file|ssh|sftp|ftp|git|svn|news|afp|telnet)\:\/\// nocase |
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
[package] | |
name = "http-sensor" | |
version = "0.1.0" | |
authors = [""] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
rocket = "0.4.10" |
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/python | |
import os | |
import json | |
import requests | |
from time import sleep | |
def main(): | |
# API configuration | |
VULTR_SECRET = os.getenv("VULTR_SECRET") | |
# SSH_KEYS must be a list of SSH key uuids as tracked by Vultr. |
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
[package] | |
name = "certstream-logger" | |
version = "0.1.0" | |
authors = [""] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
websocket = "0.26.2" |
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 netaddr | |
import json | |
from smart_open import open | |
def main(): | |
# Use smart_open to stream the compressed data line by line | |
with open('./ip2asn.json', 'a+') as outfile: | |
for line in open('https://iptoasn.com/data/ip2asn-v4.tsv.gz', encoding='utf-8'): | |
range_start,range_end,AS_number,country_code,AS_description = line.split('\t') |
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 pymysql.cursors | |
def main(): | |
# Connect to the database | |
connection = pymysql.connect( | |
host='localhost', | |
user='changeme', | |
password='changeme', |
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() |
NewerOlder