Skip to content

Instantly share code, notes, and snippets.

View NullArray's full-sized avatar
:electron:
Contact me at [email protected]

Vector Security NullArray

:electron:
Contact me at [email protected]
View GitHub Profile
@NullArray
NullArray / EncryptDecrypt.cs
Created January 22, 2019 20:37 — forked from heiswayi/EncryptDecrypt.cs
Encryption & Decryption method for C#
public static string Encrypt(string data, string key)
{
RijndaelManaged rijndaelCipher = new RijndaelManaged();
rijndaelCipher.Mode = CipherMode.CBC;
rijndaelCipher.Padding = PaddingMode.PKCS7;
rijndaelCipher.KeySize = 0x80;
rijndaelCipher.BlockSize = 0x80;
byte[] pwdBytes = Encoding.UTF8.GetBytes(key);
byte[] keyBytes = new byte[0x10];
@NullArray
NullArray / tormap.py
Created April 10, 2019 21:27 — forked from resilar/tormap.py
map(GET(url)) over Tor exit nodes
#!/usr/bin/env python
PROXY=("localhost", 9050)
CONTROLPORT=9051
COOKIE="/opt/torchroot/var/lib/tor/control_auth_cookie"
URL="http://showip.net"
OUT="scan/"
RELAY="firsthop"
EXITS="exit-addresses"
#!/bin/sh
keylength=8
algo=$1
[[ "$algo" = "aes" ]] && keylength=16
[[ "$algo" = "3des" ]] && keylength=24
encfile=$(mktemp -t _encXXXXXX) && \
keyfile=$(mktemp -t _encXXXXXX) && \
dd if=/dev/urandom of="$keyfile" bs="$keylength" count=1 >/dev/null 2>&1 && \