Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <wchar.h>
#include <windows.h>
#include <tlhelp32.h>
#include <shlwapi.h>
#include <cstdarg>
//#include <Python.h>
typedef void PyObject;
//#include <pystate.h>
@b1tninja
b1tninja / mapping.json
Last active January 13, 2018 13:37
masscan --readscan
{
"masscan": {
"order": 0,
"template": "masscan-*",
"settings": {
"index": {
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
@b1tninja
b1tninja / blowfish_irc.py
Last active August 29, 2015 14:22
Blowfish for IRC
import struct, string
from Crypto.Cipher import Blowfish
def blow(key, plaintext):
if not isinstance(plaintext, str):
raise TypeError('Plaintext must be str')
else:
if len(plaintext) % 8 != 0:
plaintext += "\0" * (8-(len(plaintext)%8))