Skip to content

Instantly share code, notes, and snippets.

Avatar

Nicholas Starke nstarke

View GitHub Profile
@eriknl
eriknl / papi.py
Last active Sep 19, 2022
Reverse engineered partial Aruba PAPI implementation
View papi.py
import hashlib
from struct import *
"""
This implementation was reverse engineered using Wireshark (and source code), strace and two excelent articles:
- https://x-c3ll.github.io/posts/CVE-2018-7081-RCE-ArubaOS/
- https://packetstormsecurity.com/files/136997/Aruba-Authentication-Bypass-Insecure-Transport-Tons-Of-Issues.html
"""
def papi_encrypt(data):