AndroRAT - Android Remote Administration Tool Setup Tutorial
Prerequisites
Getting Started
![[Image: mHkTc79.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uu2dJpf0G895cpFuB-q_VJSJ8bCyFdmZlg4JiD_QIeqLv7gr8aHRv3hhIVWdToDbk1b7YIaayFqvfuYH-_57SY9g=s0-d)
Preparing the SDK
The SDK comes with the basic tools & libraries, but we need to download more packs to compile AndroRAT.
![[Image: Q5wXPaw.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sfIllF7jo5R2I2eVIEopgETmr8JOHPOBZuO8cPDDuIqL8CMPZZBX1eWmv1vmBijudwkdWYYe3KGAMYppLd-_Ly=s0-d)
![[Image: NWa1Hyz.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sXrvYNqGUZ7QNQ8rIwL8V7_XBO6Jbn2LnGaGFfvKzSMq7NOA2DPhAG2ejG7VUE8b1JpiM5Y2jtazYKyKu0sa0s=s0-d)
Compiling the APK
![[Image: gxZqAFB.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sRs2jMIdZOBCZ3WubEwhB3ztB0-7T1VJdRblibiZ7PkjLejDOjk5YsDfwnmcuFC_KrY-0p27BY0Q01zepX0HG6=s0-d)
![[Image: zvpwVMW.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uoneteQT-esSGteL32k0lA_AgUuR7mVpd6U9yZqNaNhD9EDSBh2lCoSpiHt5vE2lSryg1GYSJwtWhiwZJyuZEiFA=s0-d)
![[Image: LVY0mvI.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tr6Jqzrmil6xw6fK8zVu1kWRNyGptlotxSwLj1FD594UhWPtPS3iiYFl2SGI1DQDLldgRYxDDJLBkwl2fwW-r-=s0-d)
If you'd like to, you can compile the APK right now.
![[Image: tHbnGLY.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_v1U9qPylcDVyS5N_uxeoZR21t6OjVcX5b2vq9Oi6a1rb7YbDKEUwz1fmwn2H2c8X3yEbHUpOHbsrCjUBwdgwTE=s0-d)
Compiling the Server
![[Image: 5qBrZ40.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_sub4tZVnUIFN7jSgFj1ymSuWKwlh7y9AcHSO40NIjbUrgukuMoKbKh7S8wZKcd-C7kcl2NG0LwUxixlJVIvew5BQ=s0-d)
![[Image: trQFY7I.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vfFlg41uTl-Kto6bAqHPdg6ubwCOlxBBeiif6_9Qj-eLra-tvi7jsX5L0OxDkdJfde-RHOoPAydc4cQEaPGwIS=s0-d)
![[Image: 9JUaeL3.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vSmp3HTmui_va9Xm67MUbxuqCPZFE04xEQzHEPaPCUan5QHpAZE55kDTiU7SfpA0eLmP-YGMTmxUQsaLrQIotyTw=s0-d)
![[Image: gqzErWE.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_s7CX786yczXglcFO7faZdOQL-l1CQLLh-iFNssKRCjUfReM9EaD5zHcg1s4gpis9bsv4uL80t0KyXDuRQdU_ElWg=s0-d)
![[Image: 3E5pNhK.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tdXTbZHIMKMs03_KfBmLdxWy94jIUrm6Qn5cbRl9TB7PXYbLq5q1NJdb2HZCTB8uCDFripEprOFv6qzaZDJNns=s0-d)
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]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tqOd6yPWKwS-7w5VnGIZgUh7isbWGruW9cd3v09Jf9S7BN6zfNaOhHAULRZvg_LRhX8aca6HZg56zFCk3WZjR-pw=s0-d)
![[Image: DcrkaZt.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_uAJjLEu2HHL55MrbOuxf0jQxnyR8VnAx_o5RgZBOSTSsGyMyWsltykgYCIMOlLaBVE1lKXZKeOtDCR9TjfyJJtIA=s0-d)
Modifying the APK to auto-configure our server on startup
![[Image: IF5HA3f.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_si-dKkNkXZBPNrywDbHl4eDJQml_E12tEBSN-VMwpvl--7gJu-8bo8QtapWrTIUDnB-FFVKVSS56nILv7U7Ad7JQ=s0-d)
![[Image: oqBiAtO.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vWZSD3mnDQdY6bvU_5hqZ_AezEUgVGd6W8PRew6dEi-21DB1r1hKgcbcoIzP9t5lPcRLFZzMw0lW3CjcAD-HS9=s0-d)
![[Image: tHbnGLY.png]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_v1U9qPylcDVyS5N_uxeoZR21t6OjVcX5b2vq9Oi6a1rb7YbDKEUwz1fmwn2H2c8X3yEbHUpOHbsrCjUBwdgwTE=s0-d)
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:
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:
- 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:
- 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:
- click browse & select this:
- click OK, this should appear:
- 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")
- 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:
- click browse when the new window shows up. select this:
- make sure the project is checked, click finish
- our project will have an error-like icon:
- right click on the project folder (the icon with the "!" sign) & click properties
- click "Java Build Path" & click the "Libraries" tab:
- 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:
- 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:
- set the options in the next screen as shown:
- 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
- delete all of it's content & replace with this:
Spoiler (Click to View)
- edit the obvious parts:
- you can put your NO-IP address here, if you'd like (alternatively, you can use your IP)
- compile & you're done
No comments:
Post a Comment