Morsmalleo / AhMyth

Cross-Platform Android Remote Administration Tool | Official maintained repository for the AhMyth R.A.T Project | A dedicated revival of the original repository at https://GitHub.com/AhMyth/AhMyth-Android-RAT
GNU General Public License v3.0
710 stars 176 forks source link

How do we properly configure AhMyth with portmap.io? #248

Closed Enigma1309 closed 1 year ago

Enigma1309 commented 1 year ago

I have successfully built and deployed the RAT, for the IP and Port configuration I've used the output given to me by portmap.io, so say the portmap.io output was something like

tcp://xyz.portmap.io:69696 ==> 5050

so i've inputted xyz.portmap.io for the Server IP, and Port "69696" for the Server Port, turned on "openvpn" configuration on my PC, and connected to my portmap server.

However when listening for Victims Connections to come back in AhMyth nothing happens, I've listened for connections on Port "5050" but I'm not able to get any connections and I've also tried listening on Port "69696" but I still can't get any connections.

how do I properly configure AhMyth with "portmap.io" with portmap??

Morsmalleo commented 1 year ago

I haven't used portmap.io before, let me run some tests myself with portmap.io and I'll get back to you

Enigma1309 commented 1 year ago

I haven't used portmap.io before, let me run some tests myself with portmap.io and I'll get back to you

Any new update??

Morsmalleo commented 1 year ago

I haven't used portmap.io before, let me run some tests myself with portmap.io and I'll get back to you

Any new update??

No not yet, I haven't had time to sit down and test this one yet, I've been busy with the Server

Enigma1309 commented 1 year ago

yeah bro please try working on it cause ur project was a lifesaver for me loved it ❤️

Enigma1309 commented 1 year ago

Any update?? @Morsmalleo

Valus3000 commented 1 year ago

This also doesn't work for me. I been trying for days to make it work with portmap.io and going to try noip. Please fix this

Morsmalleo commented 1 year ago

Sorry guys, I've been very busy, I'm jumping on this one today, I'll let everyone know when I start

Morsmalleo commented 1 year ago

Testing on Kali 2023.1 (Kali Purple 🟣) now will have results soon

Morsmalleo commented 1 year ago

portmap.io works fine with AhMyth if you know what you are doing

hopefully this will help people with portmap below.

  1. Create a new account then create a new configuration like the example below Config

The "Protocol" should always be 'tcp' and the "Type" should be OpenVPN. Once you've done the first step in the photo above, you'll want to run the command it will give you on screen, in your Linux terminal. Make sure you run the command in the same directory as the *.*.ovpn file or at least specify the path to it before running it, so for me it would be the following example below

[Example: sudo openvpn --config ~/Downloads/Morsmalleo.AhMyth.ovpn]

#

  1. Create new mapping rules mapping_rules

Where it reads "The port on your PC", this port will always be the port we listen on in AhMyth, it will be used later on after we deploy the payload. #

  1. Configure the payload Payload_configuration

Now from here it's simple, copy the string underlined in Red 🔴 and paste it into the AhMyth Server IP box in the APK Builder Tab, then copy the string underlined in Green 🟢 and paste it into the AhMyth Port Box in the APK Builder.

Build the payload and then deploy it on a victim android device, now head on back to the "Victims" Tab and then listen to the port that's underlined in Purple 🟣. its pretty simple, not much different than ngrok

Note you'll need to remove tcp:// from the openvpn IP, and the : symbol between the openvpn IP and Port number, when using this as your ahmyth server ip and port when building

Valus3000 commented 1 year ago

@Morsmalleo I have used many RAT tools before and currently others are working fine except AhMyth. The steps you posted are the default steps for anyone who wishes to use portmap.io or most static host name etc (similar tweaked process). I havent tried on Linux, so I do not know if that may be the reason it worked for you.

Unfortunately, it (AhMyth v1.0-beta.4) is not working on my Windows 10 x64

Morsmalleo commented 1 year ago

@Morsmalleo I have used many RAT tools before and currently others are working fine except AhMyth. The steps you posted are the default steps for anyone who wishes to use portmap.io or most static host name etc (similar tweaked process). I havent tried on Linux, so I do not know if that may be the reason it worked for you.

Unfortunately, it (AhMyth v1.0-beta.4) is not working on my Windows 10 x64

When you say it doesn't work on Windows 10 be more specific

Valus3000 commented 1 year ago

@Morsmalleo I did not go into detail because I responded to the same problem as the person who opened the issue. Hence I thought it was understood. But basically, I did similar to everything you posted previous. There is simply nothing showing up on the "Victims" tab after setting the correct port. As I mentioned, this is not my first rodeo using RAT tools. I even use the exact same ports from portmap.io after removing AhMyth with another RAT and it works just fine. AhMyth is simply not working on **my Windows.**

Morsmalleo commented 1 year ago

@Morsmalleo I did not go into detail because I responded to the same problem as the person who opened the issue. Hence I thought it was understood. But basically, I did similar to everything you posted previous. There is simply nothing showing up on the "Victims" tab after setting the correct port. As I mentioned, this is not my first rodeo using RAT tools. I even use the exact same ports from portmap.io after removing AhMyth with another RAT and it works just fine. AhMyth is simply not working on **my Windows.**

Well I can't understand where your issue is coming from because everything works for me, ngrok, portmap, even nginx, what port did you run through portmap.io???

Valus3000 commented 1 year ago

Some of the ports I tried was: 34045, 8080 , 48152.

Edit: Tried on laptop and it worked fine. I assume the problem is VM on my computer is the caused even though other RAT worked fine. But everything is working as it should.

Enigma1309 commented 1 year ago

Some of the ports I tried was: 34045, 8080 , 48152.

Edit: Tried on laptop and it worked fine. I assume the problem is VM on my computer is the caused even though other RAT worked fine. But everything is working as it should.

i think you shoud change your adapter setting in the vm change it to bridged image

Morsmalleo commented 1 year ago

Some of the ports I tried was: 34045, 8080 , 48152.

Edit: Tried on laptop and it worked fine. I assume the problem is VM on my computer is the caused even though other RAT worked fine. But everything is working as it should.

Yeah that's most likely your problem, I ran everything from a Kali 2023.1 VM with bridged Adapter enabled and everything works fine

Valus3000 commented 1 year ago

I did switch it from NAT to bridged adapter and tired other domain, with opening ports in router etc. But it never worked.

What worked is updating "Oracle VM VirtualBox" and both NAT or bridge after adapter install etc, started to work fine. All is good now

wajid404040 commented 3 months ago

can anyone update about how to do that on mac