AndroRAT - Android Remote Administration Tool Setup Tutorial
Prerequisites
Getting Started
![[Image: mHkTc79.png]](http://i.imgur.com/mHkTc79.png)
Preparing the SDK
The SDK comes with the basic tools & libraries, but we need to download more packs to compile AndroRAT.
![[Image: Q5wXPaw.png]](http://i.imgur.com/Q5wXPaw.png)
![[Image: NWa1Hyz.png]](http://i.imgur.com/NWa1Hyz.png)
Compiling the APK
![[Image: gxZqAFB.png]](http://i.imgur.com/gxZqAFB.png)
![[Image: zvpwVMW.png]](http://i.imgur.com/zvpwVMW.png)
![[Image: LVY0mvI.png]](http://i.imgur.com/LVY0mvI.png)
If you'd like to, you can compile the APK right now.
![[Image: tHbnGLY.png]](http://i.imgur.com/tHbnGLY.png)
Compiling the Server
![[Image: 5qBrZ40.png]](http://i.imgur.com/5qBrZ40.png)
![[Image: trQFY7I.png]](http://i.imgur.com/trQFY7I.png)
![[Image: 9JUaeL3.png]](http://i.imgur.com/9JUaeL3.png)
![[Image: gqzErWE.png]](http://i.imgur.com/gqzErWE.png)
![[Image: 3E5pNhK.png]](http://i.imgur.com/3E5pNhK.png)
Now we're going to run the applet once, so we can compile it in a second:
Now we're going to compile our RAT client into a .JAR: (so we can run it whenever)
![[Image: awEZqhG.png]](http://i.imgur.com/awEZqhG.png)
![[Image: DcrkaZt.png]](http://i.imgur.com/DcrkaZt.png)
Modifying the APK to auto-configure our server on startup
![[Image: IF5HA3f.png]](http://i.imgur.com/IF5HA3f.png)
![[Image: oqBiAtO.png]](http://i.imgur.com/oqBiAtO.png)
![[Image: tHbnGLY.png]](http://i.imgur.com/tHbnGLY.png)
Prerequisites
- Android Developer Tools [here]
- Java Runtime Environment [here]
- AndroRAT Source [here]
- I recommend you have some previous experience with PC RATs before getting into this. I recommend following this first
- keep your phone plugged into your PC via USB & make sure you're phone has USB debugging enabled
Getting Started
- extract and run eclipse, which is inside the Android SDK:
Code:
\eclipse\eclipse.exe- choose "use this default workspace and don't ask again" when eclipse runs
- should look like this:
![[Image: mHkTc79.png]](http://i.imgur.com/mHkTc79.png)
Preparing the SDK
The SDK comes with the basic tools & libraries, but we need to download more packs to compile AndroRAT.
- In eclipse, click: window -> android SDK manager
- this should open:
![[Image: Q5wXPaw.png]](http://i.imgur.com/Q5wXPaw.png)
- note: The Android app says it needs API level 2.2; this does not mean it's only for 2.2! This is the minimum requirement. It will run in GingerBread 2.2 & up! (2.3, HC, ICS, JB)
- select these:
![[Image: NWa1Hyz.png]](http://i.imgur.com/NWa1Hyz.png)
- click install packages
- accept anything that pops up
- wait for the download to finish
- close & re-open eclipse
Compiling the APK
- go to file -> new -> project
- select this:
![[Image: gxZqAFB.png]](http://i.imgur.com/gxZqAFB.png)
- click browse & select this:
![[Image: zvpwVMW.png]](http://i.imgur.com/zvpwVMW.png)
- click OK, this should appear:
![[Image: LVY0mvI.png]](http://i.imgur.com/LVY0mvI.png)
- make sure the project is checked
- click finish; it should load the project into eclipse
- note: you can compile this app right now, but it will ask you on startup (on the phone, when launched) for the IP address of your NO-IP host (since you will use that I assume). We will change this source later on to make it automatically configure itself on startup & go to background
If you'd like to, you can compile the APK right now.
- click the drop-down button to compile the APK (when asked what you would compile it as, select "Android Application")
![[Image: tHbnGLY.png]](http://i.imgur.com/tHbnGLY.png)
- note: the APK will be built to the bin folder inside the project's folder: (the one we downloaded)
Code:
androrat-master\src\Androrat\binCompiling the Server
- go to: file -> import
- select this:
![[Image: 5qBrZ40.png]](http://i.imgur.com/5qBrZ40.png)
- click browse when the new window shows up. select this:
![[Image: trQFY7I.png]](http://i.imgur.com/trQFY7I.png)
- make sure the project is checked, click finish
- our project will have an error-like icon:
![[Image: 9JUaeL3.png]](http://i.imgur.com/9JUaeL3.png)
- right click on the project folder (the icon with the "!" sign) & click properties
- click "Java Build Path" & click the "Libraries" tab:
![[Image: gqzErWE.png]](http://i.imgur.com/gqzErWE.png)
- the libraries with the "x" icons aren't recognized by eclipse, so delete them. select them all & click "Remove"
- the project still needs those libraries. on the same window, click this:
![[Image: 3E5pNhK.png]](http://i.imgur.com/3E5pNhK.png)
- navigate to:Code:
androrat-master\src\api
- select all and of the files & click open
- click OK
Now we're going to run the applet once, so we can compile it in a second:
- click on "Androrat Server" in the package explorer window
- click the drop-down arrow next to the green "play" button -> run as -> Java application -> "Server - server" -> OK
- AndroRAT Project (our client window) should run. if so, great!
- close AndroRAT Project
Now we're going to compile our RAT client into a .JAR: (so we can run it whenever)
- click: file -> export; select:
![[Image: awEZqhG.png]](http://i.imgur.com/awEZqhG.png)
- set the options in the next screen as shown:
![[Image: DcrkaZt.png]](http://i.imgur.com/DcrkaZt.png)
- click finish
- note: you will get a few warnings; click OK on each
Modifying the APK to auto-configure our server on startup
- open LauncherActivity.java
![[Image: IF5HA3f.png]](http://i.imgur.com/IF5HA3f.png)
- delete all of it's content & replace with this:
Spoiler (Click to View)
- edit the obvious parts:
![[Image: oqBiAtO.png]](http://i.imgur.com/oqBiAtO.png)
- you can put your NO-IP address here, if you'd like (alternatively, you can use your IP)
- compile & you're done
![[Image: tHbnGLY.png]](http://i.imgur.com/tHbnGLY.png)
Posting Komentar