This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 && \ |
OlderNewer