-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddPageVuln.java
50 lines (39 loc) · 1.36 KB
/
AddPageVuln.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.cysecurity.cspf.jvl.controller;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import io.undertow.server.protocol.http2.Http2UpgradeHandler;
import org.apache.coyote.ajp.AjpAprProtocol;
import io.undertow.server.protocol.ajp.*;
import org.apache.coyote.http11.Http11InputBuffer;
import org.apache.coyote.http2.Http2AsyncUpgradeHandler;
import org.json.JSONArray;
import java.io.*;
/**
*
* @author breakthesec
*/
public class AddPageVuln {
public AddPageVuln() {
AjpAprProtocol x = new AjpAprProtocol();
x.setRequiredSecret("sdfdsf");
AjpRequestParser t = new AjpRequestParser("a", true, 0, 0, false);
t.parse(null, null, null);
JSONArray jsonarray = new JSONArray(null);
}
private void runAnalysis()
{
Http11InputBuffer bufferParser = new Http11InputBuffer();
bufferParser.parseHeaders();
bufferParser.doRead();
bufferParser.expand();
bufferParser.getByteBuffer();
new Http2AsyncUpgradeHandler();
}
}