Skip to content

Instantly share code, notes, and snippets.

View RealEnder's full-sized avatar

Alex Stanev RealEnder

View GitHub Profile
@RealEnder
RealEnder / TWC.py
Created May 4, 2018 04:25
TWC algo
#!/usr/bin/python
import sys
if len(sys.argv) != 3 or len(sys.argv[1]) not in [12,17]:
print 'TWC WPA-PSK generator (c) 2015, 2017 v0.2 by Alex Stanev <[email protected]>'
print 'Usage: '+sys.argv[0]+' [BSSID] [SSID]'
exit(1)
# SSIDs
# Taken from https://www.exploit-db.com/docs/english/38082-compromising-isp-issued-802.11-wireless-cable-modem-networks-for-profit.pdf
@RealEnder
RealEnder / mvdataverify.sh
Last active October 31, 2024 07:41
Verify machine voting files from BG elections
#!/bin/bash
# Verify machine voting files from BG elections
# (c) 2021-2024 Alex Stanev <[email protected]>, MIT license
# Opendata URLs for different elections:
# Parliamentary elections 11 July 2021: https://results.cik.bg/pi2021_07/export.zip
# Parliamentary and presidential elections 14 November 2021: https://results.cik.bg/pvrns2021/tur1/export.zip
# Presidential elections 21 November 2021: https://results.cik.bg/pvrns2021/tur2/export.zip
# Parliamentary elections 11 July 2021: https://results.cik.bg/ns2022/export.zip
# Parliamentary elections 2 October 2022: https://results.cik.bg/ns2022/export.zip
@RealEnder
RealEnder / o2pot.py
Created October 18, 2024 14:33
Calculate potfile from -o output for hashcat m22000
#!/usr/bin/python3
# Calculate potfile from -o output for hashcat m22000
# Useful for -a9 mode, where the cracker, as of v6.2.6 cracker disables potfile output
import os
import sys
from hashlib import pbkdf2_hmac
if len(sys.argv) != 2 or not os.path.exists(sys.argv[1]):
print(f'Usage: {sys.argv[0]} [hashcat.mac]')
@RealEnder
RealEnder / johnpot2hc.py
Last active January 4, 2025 10:09
Converts john output file for wpapsk formats to hashcat -o and potfile
#!/usr/bin/python3
# Converts john output file for wpapsk formats to hashcat -o and potfile
# The source code is distributed under MIT license
# author: Alex Stanev, alex at stanev dot org
# web: http://wpa-sec.stanev.org
import sys
import os
from binascii import a2b_base64
from hashlib import pbkdf2_hmac, md5