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 repo in $(ls -l |grep dr |awk {'print $9'}); do | |
cd $repo; | |
if [ -d ".git" ]; then | |
echo "Attempting to update $repo"| logger | |
git pull; | |
if [ $? -ne 0 ]; then | |
echo "Error attempting to update $repo" 1> >(logger -s 2>> /opt/repoupdate.err) | |
fi; | |
fi; | |
cd ..; |
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
# Pushover setup, | |
# Run with 'pushover $MSG' | |
# Example: $ pushover "this is a test notification" | |
# Can be piped to as well | |
# Example: $ echo "this is also a test" | pushover | |
#!/bin/bash | |
if [[ $# -gt 0 ]]; then | |
a=$@ | |
else |
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/sh | |
# Taken from http://blog.encomiabile.it/2011/02/03/prune-quassel-database/ | |
BAK_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite.bak" | |
CURRENT_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite" | |
# first day of data that will be maintained | |
# -7 day means that *every* chatline stored before 8 days ago and so on are going to be eliminated. | |
# only the last 7 days are keeped. | |
DATE_TO_PRUNE='-7 day' |
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 | |
# Example usage: office_365_mail_relay.py --from-addr [email protected] --to-addr [email protected] --domain example.com --subject "SPAM TIME!" --from-name "John Doe" --to-name "John Smith" | |
# 20170709 - @Und3rf10w | |
import dns.resolver | |
import socket | |
import smtplib | |
import argparse | |
from termcolor import cprint |
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
#include <windows.h> | |
#include <stdio.h> | |
FARPROC fpCreateProcessW; | |
BYTE bSavedByte; | |
// Blog Post Here: | |
// https://0x00sec.org/t/user-mode-rootkits-iat-and-inline-hooking/1108 | |
// tasklist | findstr explore.exe |
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 Get-Doppelgangers | |
{ | |
<# | |
.SYNOPSIS | |
Detects use of NTFS transactions for stealth/evasion, aka 'Process Doppelganging' | |
Author: Joe Desimone (@dez_) | |
License: BSD 3-Clause | |
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 PIL import Image | |
from cStringIO import StringIO | |
import requests | |
import imageio | |
import base64 | |
import re | |
def GetGifPixel(gif): | |
frame = Image.open(gif) | |
nframes = 0 |
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 PIL import Image | |
from cStringIO import StringIO | |
import requests | |
import imageio | |
import base64 | |
import zlib | |
import PIL | |
import re | |
def encode(data, imageio): |
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
sudo mount -t tmpfs -o size=1024m tmpfs ~/ramdisk/ |
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
objdumpfunc() { | |
funcname="$1" | |
sed "/<$funcname>:/,/^\$/!d" | |
} | |
# objdump -M intel -M hex -j .text -D a.out | objdumpfunc main |
OlderNewer