MCPcopy Create free account
hub / github.com/Cybereason/Logout4Shell / ByteUrlConnection

Class ByteUrlConnection

src/main/java-template/Log4jRCE.java:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 }
180
181 private static class ByteUrlConnection extends URLConnection {
182 private final InputStream inputStream;
183
184 public ByteUrlConnection(URL url, InputStream inputStream) {
185 super(url);
186 this.inputStream = inputStream;
187 }
188
189 @Override
190 public void connect() throws IOException {
191 }
192
193 @Override
194 public InputStream getInputStream() throws IOException {
195 return inputStream;
196 }
197 }
198
199 private static class CloseIgnoringInputStream extends BufferedInputStream {
200 public CloseIgnoringInputStream(InputStream in) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected