FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SpringBootExploit/src/test/java/gateway.java at main · SummerSec/SpringBootExploit · GitHub
This repository was archived by the owner on Jul 25, 2024. It is now read-only.
SummerSec
/
SpringBootExploit
Public archive
Notifications
You must be signed in to change notification settings
Fork
308
Star
1.9k
Code
Issues
16
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SpringBootExploit
/
src
/
test
/
java
/
gateway.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (31 loc) · 1.11 KB
Breadcrumbs
SpringBootExploit
/
src
/
test
/
java
/
gateway.java
Copy path
File metadata and controls
37 lines (31 loc) · 1.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
com
.
drops
.
utils
.
StringRandom
;
/**
* @ClassName: gateway
* @Description: TODO
* @Author: Summer
* @Date: 2022/4/17 19:46
* @Version: v1.0.0
* @Description:
**/
public
class
gateway
{
public
static
void
main
(
String
[]
args
) {
String
endpoint
=
"s"
+
StringRandom
.
getRandomString
(
5
);
String
body
=
String
.
format
(
"{
\n
"
+
"
\"
id
\"
:
\"
%s
\"
,
\n
"
+
"
\"
filters
\"
: [{
\n
"
+
"
\"
name
\"
:
\"
AddResponseHeader
\"
,
\n
"
+
"
\"
args
\"
: {
\"
name
\"
:
\"
Result
\"
,
\"
value
\"
:
\"
%s
\"
}
\n
"
+
" }],
\n
"
+
"
\"
uri
\"
:
\"
http://example.com
\"
,
\n
"
+
"
\"
order
\"
: 0
\n
"
+
"}"
,
endpoint
,
endpoint
);
System
.
out
.
println
(
body
);
String
res
=
"Response Headers:
\n
"
+
" null=[HTTP/1.1 200 OK]
\n
"
+
" Content-Length=[7]
\n
"
+
" Content-Type=[text/html;charset=UTF-8]
\n
"
+
"Response Body:
\n
"
+
" s0gjvh"
;
System
.
out
.
println
(
res
.
contains
(
"s0gjvh"
));
}
}
Back
|
FazBrowse Home
|
New Git URL