# Privilege Escalation Awesome Scripts Parsers These scripts allows you to transform the output of linpeas/macpeas/winpeas to JSON and then to PDF and HTML. ```python3 python3 peass2json.py python3 json2pdf.py python3 json2html.py ``` ## JSON Format Basically, **each section has**: - Infos (URLs or info about the section) - Text lines (the real text info found in the section, colors included) - More sections There is a **maximun of 3 levels of sections**. ```json { "
": { "sections": { "": { "sections": {}, "lines": [ { "raw_text": "\u001b[0m\u001b[1;33m[+] \u001b[1;32mnmap\u001b[1;34m is available for network discover & port scanning, you should use it yourself", "clean_text": "[+] is available for network discover & port scanning, you should use it yourself", "colors": { "GREEN": [ "nmap" ], "YELLOW": [ "[+]" ] } } ], "infos": [ "https://book.hacktricks.xyz/linux-unix/privilege-escalation#kernel-exploits" ] }, "infos": [] ``` ```json { "System Information": { "sections": { "Operative system": { "sections": {}, "lines": [ { "raw_text": "\u001b[0m\u001b[1;33m[+] \u001b[1;32mnmap\u001b[1;34m is available for network discover & port scanning, you should use it yourself", "clean_text": "[+] is available for network discover & port scanning, you should use it yourself", "colors": { "GREEN": [ "nmap" ], "YELLOW": [ "[+]" ] } } ], "infos": [ "https://book.hacktricks.xyz/linux-unix/privilege-escalation#kernel-exploits" ] }, "infos": [] ``` There can also be a `` # TODO: - **PRs improving the code and the aspect of the final PDFs and HTMLs are always welcome!**