Skip to content

Instantly share code, notes, and snippets.

@raphaelvallat
raphaelvallat / bruteforce.py
Last active July 22, 2024 18:34
Password brute-force in Python
"""
Password brute-force algorithm.
List of most probable passwords and english names can be found, respectively, at:
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt
Author: Raphael Vallat
Date: May 2018
Python 3
@sooop
sooop / colorprint.py
Last active December 27, 2020 17:07
print colored text in python
COLORS = dict(zip(range(1, 10), 'black red green yellow blue magenta'
' cyan white reset'.split()))
class BG:
black = '\033[40m'
red = '\033[41m'
green = '\033[42m'
yellow = '\033[43m'
blue = '\033[44m'
@vratiu
vratiu / .bash_aliases
Last active July 22, 2024 00:26
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset