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

Java 

Java RAT Reverse Connection with Sockets

I already posted a question over here:

hackforums[dot]net/showthread.php?tid=5197532

This is the problem I'm facing:

I've developed a remote administration tool in Java. It is focused on Windows machines only atm. It uses a direct connection between two sockets.

For testing purposes this was fine. I have to know the IP address of the computer to connect to, and the computer must have their firewall turned off.

I would like to implement a reverse connection so that the server connects back to my client and that I only need to turn my firewall off.

I have searched the internet for a few days now and could not find a good example.

Could someone point me in the right direction?

Tnx in advance
Make it work
This is not a "reverse connection"; it's simply a client. All you have to do is swap out socket and server socket, and portforward on your own machine that will host the botnet.
I'm guessing that you're using the Socket class.
As said before, that's no reverse connection. You simply need to be the server yourself.

Code
final ServerSocket you = new ServerSocket(25555);
final Socket other = new Socket("localhost", 25555);
final Socket otherConnection = you.accept();
Hey I have a signature.
I couldn't get my head around the fact i would deploy a server on the victim. In the other thread someone else told me that this is indeed not necessary. Thank you for confirming. I'm going to change all my client classes into server classes and vice versa.

If this can be achieved so easily with reversing the roles, what is the point of a reverse connection?
Make it work
I've reversed the roles, everything is working fine now. Thanks!
Make it work


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by DoomslayerMar 16, 2021 08:19 AM 9 339 Mar 16, 2021 08:19 AM
Last Post: synchronizing
[C#] by indetectableSep 20, 2020 05:12 AM 13 444 Sep 20, 2020 05:12 AM
Last Post: riu41776
[Python] by xPrimodyJul 27, 2020 01:55 PM 3 163 Jul 27, 2020 01:55 PM
Last Post: Pernat1y