Skip to content

Instantly share code, notes, and snippets.

View xax007's full-sized avatar

xax007

  • Error: Unable to resolve
View GitHub Profile
@xax007
xax007 / 0dedict.py
Created May 5, 2019 06:43 — forked from josephg/0dedict.py
Apple dictionaries
# Thanks to commenters for providing the base of this much nicer implementation!
# Save and run with $ python 0dedict.py
# You may need to hunt down the dictionary files yourself and change the awful path string below.
# This works for me on MacOS 10.14 Mohave
from struct import unpack
from zlib import decompress
import re
filename = '/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/9f5862030e8f00af171924ebbc23ebfd6e91af78.asset/AssetData/Oxford Dictionary of English.dictionary/Contents/Resources/Body.data'
f = open(filename, 'rb')
@xax007
xax007 / Suricata_Rules_Descriptionaa
Created June 3, 2019 05:27
Suricata_Rules_Descriptionaa
SURICATA Applayer Mismatch protocol both directions
SURICATA Applayer Wrong direction first Data
SURICATA Applayer Detect protocol only one direction
SURICATA Applayer Protocol detection skipped
SURICATA Applayer No TLS after STARTTLS
SURICATA Applayer Unexpected protocol
ET CNC Shadowserver Reported CnC Server Port 80 Group 1
ET CNC Shadowserver Reported CnC Server Port 81 Group 1
ET CNC Shadowserver Reported CnC Server Port 443 Group 1
@xax007
xax007 / FusionPBX-XSS.md
Last active November 20, 2019 16:30
FusionPBX XSS

XSS 1

Cross-site scripting (XSS) vulnerability in file app/xml_cdr/xml_cdr_search.php line 63 allows remote attackers to inject arbitrary web script or HTML via the redirect parameter.

...
    if (strlen(check_str($_GET['redirect'])) > 0) {
        echo "<form method='get' action='" . $_GET['redirect'] . ".php'>\n";
    }
...
@xax007
xax007 / FusionPBX-XSS.md
Last active February 4, 2021 10:29
FusionPBX-XSS
@xax007
xax007 / tomcat-ajp-lfi.py
Created February 23, 2020 15:00
Aapche Tomcat AJP local file include and code execution exploit
#!/usr/bin/env python
#Tomcat-Ajp lfi
import struct
# Some references:
# [url]https://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html[/url]
def pack_string(s):
if s is None:
return struct.pack(">h", -1)
l = len(s)