This file contains 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 python2 | |
import sys,requests | |
DEBUG = False | |
try: | |
lines = sys.stdin.read().split('\n') | |
for h in lines: | |
if not h: continue | |
r = requests.get('https://api.leakdb.net/?j={}'.format(h)).json() |
This file contains 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
function proxy () { | |
UNSET="" | |
PROXY="http://127.0.0.1:8080" | |
PROXY_ENV=(http_proxy https_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY) | |
if [ $1 == on ]; then | |
for i in $PROXY_ENV; do | |
export $i=$PROXY | |
done | |
echo "proxy set" | |
elif [ $1 == off ]; then |
This file contains 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
for jail in $(jails);do jexec $(jid $jail) portmaster -ay;done |
This file contains 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/local/bin/zsh | |
JAIL_PORTS=/usr/jails/ports | |
SHELL=/usr/local/bin/zsh | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin | |
SECTION=' * * * * * * ' | |
DELIMITER='------------------------------' | |
portsnap -p $JAIL_PORTS fetch extract &>/dev/null || echo "Updating ports tree failed!" | |
echo "# VULNERABILITIES" |
This file contains 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
for jail in $(jails);do print $jail;jexec $(jid $jail) portmaster -L --index-only|egrep '(ew|ort) version|total install';print;done |
This file contains 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/zsh | |
# xrandr wrapper; switch between single/extended/cloned desktop; | |
CONFIGURED_DEVICES=($(xrandr|egrep -o '[[:alnum:]]+ [dis]{0,3}connected [0-9]{3,}x[0-9]{3,}'|awk '{print $1}')) | |
CONNECTED_DEVICES=($(xrandr|grep ' connected '|awk '{print $1}')) | |
PRIMARY=${CONFIGURED_DEVICES[1]} | |
RES_PRIMARY=$(xrandr|grep ${PRIMARY} -A1|tail -n1|egrep -o '[0-9]{3,}x[0-9]{3,}') | |
if [ ${#CONFIGURED_DEVICES[*]} -eq 1 ]; then | |
[ ${#CONNECTED_DEVICES[*]} -lt 2 ] && { print 'only one display conencted';exit; } | |
CUR_MODE='single' |
This file contains 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
# search all with wildcard | |
function saw(){ | |
find / -regextype posix-extended -iregex ".*\/[^\/]*$@.*" -exec ls -lad --color {} \; 2>/dev/null | |
} | |
# search all with exact match | |
function sa(){ | |
find / -regextype posix-extended -iregex ".*\/$@" -exec ls -lad --color {} \; 2>/dev/null | |
} | |
# search local with wildcard | |
function slw(){ |
NewerOlder