Skip to content

Instantly share code, notes, and snippets.

View t94j0's full-sized avatar
🤠
Breaking something or building something. It's all the same anyways

Max Harley t94j0

🤠
Breaking something or building something. It's all the same anyways
View GitHub Profile
@t94j0
t94j0 / checkNewProcesses.py
Created February 26, 2016 00:59
Checks for new processes created in a specified period of time
#!/use/bin/python3
from time import sleep
import psutil #pip install psutil
import sys
def main():
final = []
seconds = 1
@t94j0
t94j0 / meme.fish
Created December 1, 2016 04:01
Remember to always be on top of your memes
function meme
curl -s https://www.reddit.com/r/me_irl.json > /tmp/me_irl.json
open (python3 -c "
import json
import random
imgurs = []
with open('/tmp/me_irl.json') as f:
parsed = json.loads(f.read())
for images in parsed['data']['children']:
@t94j0
t94j0 / get_shellcode.fish
Created December 2, 2016 16:12
Getting shellcode from an objdump. Typically used for ASM. Just use `get_shellcode BINARY`
function get_shellcode
objdump -d ./$argv[1]|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's/ /\\x/g'|paste -d '' -s |sed 's/^/"/'|sed 's/$/"/g'
end
@t94j0
t94j0 / get_shellcode.fish
Created December 19, 2016 22:01
New and improved shellcode getter
function get_shellcode
objdump -D ./$argv[1]|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's_ _\\\x_g'|paste -d '' -s |sed 's/^/"/'|sed 's/$/"/g'
end
@t94j0
t94j0 / transform_nikto_db.go
Last active August 4, 2017 14:17
Transform the Nikto DB into a folder of `.scan` files
package main
import (
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"os"
"strconv"
"strings"
@t94j0
t94j0 / Get-NonDefaultServices.ps1
Last active September 28, 2017 03:42
Many of the default services on Windows 10
$defaultServices = @("AppInfo", "AudioEndpointBuilder", "Audiosrv", "BFE", "BITS", "BrokerInfrastructure", "CertPropSvc", "CoreMessagingRegistrar", "CryptSvc", "DeviceAssociationService", "Dhcp", "DiagTrack", "Dnscache", "SecurityHealthServMpsSvc", "DoSvc", "DPS", "TimeBrokerSvc", "ProfSvc", "Winmgmt", "EventLog", "LicenseManager", "EventSystem", "wuauserv", "WpnService", "Wcmsvc", "FontCache", "WSearch", "stisvc", "WinDefend", "FontCache", "CDPSvc", "WdNisSvc", "tiledatamodelsvc", "lmhosts", "WdiSest", "TrkWks", "Schedule", "UserManager", "lfsvc", "gpsvc", "StorSvc", "SystemEventsBroker", "hidserv", "iphlpsvc", "LSM", "SysMain", "netprofm", "NcbService", "NlaSvc", "nsi", "SENS", "PlugPlay", "ShellHWDetection", "Power", "StateRepository", "PcaSvc", "RpcSs", "Spooler", "SessionEnv", "SSDPSRV", "wscsvc", "LanmanServer", "TermService", "UmRdpService", "WlanSvc", "WinHttpAutoProxySvc", "DcomLaunch", "DusmSvc", "KeyIso", "LanmanWorkstation", "QWAVE", "RpcEptMapper", "VaultSvc", "AppXSvc", "ClipSVC", "COMSysApp", "
@t94j0
t94j0 / Brewfile
Last active November 10, 2017 03:03
My Brewfile if I get a new Mac
tap "osx-cross/avr"
tap "sidaf/pentest"
tap "t94j0/security"
tap "homebrew/core"
tap "homebrew/bundle"
tap "homebrew/services"
tap "acrogenesis/macchanger"
tap "caskroom/cask"
cask "java"
brew "afl-fuzz"
@t94j0
t94j0 / test
Last active November 11, 2017 15:50
<?XML version="1.0"?>
print("Hello World!");
]]>
</scriptlet>
import System.IO
import Data.Dates
import Data.List.Split
data ShadowEntry = ShadowEntry {
username :: String,
hash :: String
} deriving (Show)
parseShadowEntryString :: String -> ShadowEntry
@t94j0
t94j0 / monitor.py
Last active May 28, 2019 19:00
nick <3
from pypsrp.exceptions import AuthenticationError
from pypsrp.client import Client
HOST = '10.0.128.100'
MY_PASSWORD = 'abc123!!!'
client = None
def connect(username: str, password: str):
global client