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
from sh import sh | |
dict(_.split('=',1) for _ in [_ for _ in sh('-c','\n'.join([_.strip() for _ in open('/etc/rc.conf').read().split('\n') if not _.startswith('#') and _ is not ''])+'\nset').split('\n') if _.startswith('jail_')]) |
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 | |
# | |
# OpenSSL heap overflow PoC | |
# Found by ZDI - ZDI-14-173 // CVE-2014-0195 | |
# PoC by @_hugsy_ | |
# | |
# Ref: https://tools.ietf.org/html/rfc6347 | |
# | |
import socket, struct |
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
{}.__class__.__base__.__subclasses__()[59]()._module.__builtins__['__import__']('os').system('id') |
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
Description='31C3 802.1x WiFi' | |
Interface=wlp4s0 | |
Connection=wireless | |
Security=wpa-configsection | |
IP=dhcp | |
WPAConfigSection=( | |
'ssid="31C3"' | |
'key_mgmt=WPA-EAP' | |
'eap=TTLS' | |
'identity="randomusername"' |
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 | |
# -*- coding: utf-8 -*- | |
DEBUG = True | |
import dbus, gobject,re,pynotify | |
from dbus.mainloop.glib import DBusGMainLoop | |
dingregex = re.compile(r'(ding)',re.IGNORECASE) | |
def check_ding(account, sender, message, conv, flags): | |
sender = sender.encode('utf-8') | |
message = message.encode('utf-8') | |
obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject") |
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(){ |
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
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
for jail in $(jails);do jexec $(jid $jail) portmaster -ay;done |
OlderNewer