Skip to content

Instantly share code, notes, and snippets.

@c4mx
c4mx / check_ip_virustotal.sh
Created April 29, 2020 14:28
Check a list of IP via VirusTotal API
#echo 'sleep 60s to begin...'
#sleep 60
apikey='...virustotal_apikey...'
result_file='ip_vt_result.txt'
ip_file='ip_ext.txt'
ctr=0
total=0
for i in `cat $ip_file`;do
@c4mx
c4mx / wpa2_psk_auth.py
Last active March 6, 2025 21:15
Calculate PMK, PTK, MIC and MIC verification in WPA2-PSK authentication
#!/usr/bin/env python
# __author__ = 'c4mx'
from pbkdf2 import PBKDF2
from binascii import a2b_hex
import hmac, hashlib, binascii
# passphrase: WPA wifi password
def calc_pmk(passphrase, ssid):
return PBKDF2(passphrase, ssid, 4096).read(32)