Skip to content

Instantly share code, notes, and snippets.

@clem9669
clem9669 / convert_to_preappend.py
Created October 10, 2023 13:29
Convert append to preappend rules hashcat
import sys
# Fonction pour convertir l'append en preappend avec inversion de l'ordre et remplacement de $
def convert_rules(rule):
parts = rule.split('\\x')[1:] # Divise la règle en parties basées sur '\x'
reversed_parts = parts[::-1] # Inverse l'ordre des parties
preappend = '^\\x' + '^\\x'.join(reversed_parts) # Joins les parties avec '^\\x' et ajoute '^\\x' au début
return preappend
# Fonction pour convertir les règles dans le fichier d'entrée et écrire le résultat dans le fichier de sortie
@clem9669
clem9669 / parse_cs_bin.py
Created June 23, 2022 09:30
Export Cobalt Strike bin file to csv (credentials.bin)
""" Parse Cobalt Strike Logs
Description: Generate CSV representations of Cobalt Strike .bin logs
Authors: Alyssa R. (@ramen0x3f), Nick M. (@kulinacs), clem9669
Created: 2020-02-28
Last Updated: 2022-06-23
Dependencies: pip3 install javaobj-py3
Usage: python3 parse_cs_bin.py <directory containing CobaltStrike .bin files>
@clem9669
clem9669 / hashcat-benchmark-quadro-RTX-all.md
Created December 21, 2021 14:17
Hashcat All Benchmark on Quadro RTX 6000, 6055/24220 MB allocatable, 72MCU
$ hashcat -b -d1 -D2 --benchmark-all 

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.
@clem9669
clem9669 / hashcat-benchmark-quadro-RTX.md
Last active November 23, 2021 13:23
Hashcat Benchmark on Quadro RTX 6000, 6055/24220 MB allocatable, 72MCU
$ hashcat -I
hashcat (v5.1.0) starting...

OpenCL Info:

Platform ID #1
  Vendor  : NVIDIA Corporation
  Name    : NVIDIA CUDA
  Version : OpenCL 3.0 CUDA 11.4.153
Command
uname -a
ifconfig
ps -aux
id
top
route -n
iptables -L -n -v
w
Command
hostname
whoami /all
systeminfo
net users
systeminfo
ipconfig \all
tree C:\ /f /a > C:\output_of_tree.txt
route print