Random Python snippets for reference
Nothing really to see here, just snippets of code I'm putting here for my own reference & note taking
Read first 512 bytes of C:\
Returns the ASN of an IP address
Decode a blob of evil Base64 and XOR with key of 14, remove null bytes to make readable
Calculate Shannon entropy
Hash a file
Carve useful data from corrupt event logs