wszf / androrat

androrat
1.88k stars 965 forks source link

Compilation of androrat fail with basic tutorial #4

Open ghost opened 10 years ago

ghost commented 10 years ago

Currently, i can't compiled my Androrat, can you correct me ?

1- Download and unzip adt-bundle-windows-x86_64-20140702.zip and androrat-master from "WSZF" 2- Launch eclipse.exe and create a default workspace 3- Window --> Android SDK Manager 4- Check "Android 4.2.2" --> "SDK Platform" and "Google APIs" and install

image

5- Close eclipse and reopen 6- File --> New --> Project --> Android --> Android Project from Existing Code 7- Path to androrat image

8- Cry :'( image

image

Someone can help me ?

Thanks !

Some screens of my configuration after the "basic" installation image

image

image

image

Mrswesnod commented 10 years ago

You need Android 2.2 SDK and Tools 19.0.1 and 17 in SDK

ghost commented 10 years ago

I have the same error: Android 2.2 SDK Platform installed Tools 19.0.1 and 17 installed

image

image image

Mrswesnod commented 10 years ago

I might be the files in the download...search around for others places that have the 2 folders to download I got it from a couple other places and compare dates and go with the most current.

Mrswesnod commented 10 years ago

I still havent got the phone to connect to the server that's the next road block

ghost commented 10 years ago

Can't compiling at the moment, so i can't help you sorry :)

I blocked with this c2cb8ada-4e05-11e4-812a-24561bf22d26

Mrswesnod commented 10 years ago

try tools 18 also

Mrswesnod commented 10 years ago

You want 2.2 and you have to delete 4.4 etc for the time being

Mrswesnod commented 10 years ago

image

Mrswesnod commented 10 years ago

image

ghost commented 10 years ago

Could you please take a screenshot of your Android SDK Manager ? Like this: capture d ecran 2014-10-14 00 05 36

Thank !

Mrswesnod commented 10 years ago

image

ghost commented 10 years ago

Ok, it's a mystery. Can you check if i have the same configuration than you ?

androrat capture d ecran 2014-10-14 11 49 24 capture d ecran 2014-10-14 11 49 36 capture d ecran 2014-10-14 11 50 40

Mrswesnod commented 10 years ago

SDK manager Extras the last one Intel x86 Emulator Accelerator needs installed then I think your pretty much set right.

ghost commented 10 years ago

Not working: Currently: 10 packages installed (you too ?) dfgdfgddddddddddd

I thinks it is something about library's localisation but not sure :'(

Error: "Packet cannot be resolved to a type"

andrei-zgirvaci commented 9 years ago

guys how did you solve the problem with 100 errors?

ghost commented 9 years ago

Unfortunately I did not find any solutions. I finally put aside the project while waiting to find an alternative, or someone to help me irl

If you find a solution I would welcome you here sharing with us :)

hemit commented 9 years ago

Did u guys find any solutions pls ?

panther2005 commented 9 years ago

the same problem any solution?

panther2005 commented 9 years ago

the problem is resolved for me don't work for "WSZF" open source (some files are missed) tested with this: https://github.com/DesignativeDave/androrat android 2.2 API 8 android sdk build-tools 21.1.2, 19.01 and 17 installed before running with eclipse: project--->clean and Refresh with project selected (F5)

Mrswesnod commented 9 years ago

Anyone know how to use the application when the phone is not on the same wifi network?

ghost commented 9 years ago

@panther2005 thanks you so much for your answer ! :+1:

@Mrswesnod you have to use your Public IP or a DNS name and configure your router to forward informations to your androrat's port. You can use DynDNS or no-ip.org such as dynamique DNS.

Internal network (same wifi network) Client Android --> Your computer IP --> Androrat Server

External network Client Android --> ( DNS ) --> Your Public IP --> Your Router --> Your computer IP --> Androrat Server

I can't do it now but later i gonna post a tutorial to try to help future readers :)

panther2005 commented 9 years ago

@lpccrypto it's works for you or not?!

Mrswesnod commented 9 years ago

I still cant figure it out...that tutorial would sure end my 6 month long headache trying to get this to work. :)

panther2005 commented 9 years ago

I built with succees the apk file, it's running even after execution and hiding in background, but not after rebooting the phone. my big problem now is how to bind my apk file with another application like "adaway", "androrat binder" don't work for me, i'm trying to bind with eclipse now.

panther2005 commented 9 years ago

@Mrswesnod what is your problem?

ghost commented 9 years ago

Ok, it work for me (in local for the time being), my tutorial is in progress.

But it doesn't work after rebooting, what do you mean by "hiding in backgroud" ? I think we have to find a fork of LauncherActivity.java

The camera capture isn't working but i have found this in a fork of DesignativeDave/androrat https://github.com/ramado78/androrat/network

panther2005 commented 9 years ago

@lpccrypto when back button is pressed the application is stopping i have some changes in LauncherActivity.java for the application to work after the back button is pressed or to hide after execution, see the end this tut: http://cellphonetrackers.org/how-to-create-android-spy-app.html and: Don't close application when Back button is pressed: public class TestActivity extends Activity { //... // Working for all API levels @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { moveTaskToBack(true); } return super.onKeyDown(keyCode, event); }

// Alternative variant for API 5 and higher @Override public void onBackPressed() { moveTaskToBack(true); } }

panther2005 commented 9 years ago

it's work for me with external IP, just change the local ip with a no-ip server and open the port in the router and firewall of windows or antivirus

Mrswesnod commented 9 years ago

How do I change local ip with no-ip? I set up an account then set up a host name and if thats all I needed to do it didn't work. port is open as far as I know

ghost commented 9 years ago

I think your problem is your firewall and the port forwarding, and don't forget to disable windows firewall.

My tutorial is finished, quick and ugly but step by step :) https://www.dropbox.com/s/0azzg3rs2tmg8si/Androrat.docx?dl=0

Now it's time to find a way to restart Androrat when the phone is restarting and a way to fix the camera ^^

panther2005 commented 9 years ago

@Mrswesnod you must install DUC http://www.noip.com/download?page=win

panther2005 commented 9 years ago

@lpccrypto good tut :+1:

john178 commented 9 years ago

depends what you have, i had this problem long ago, delete the java run time, and reinstall it....should fix it again depends... i hope this helps out

stratrik commented 9 years ago

Be sure to exclude androrat from your AV - in my case, windefender (or whatev its called) was removing th classes.dex file.

draco678 commented 8 years ago

Hi All, I am trying to compile androrat, but with the current android studio dropping eclipse, it is confusing to import the androrat code into the project. I have eclipse downloading now for another try. Anyway, using some precompiled versions didn't work for me in the beginning, but after seeing @lpccrypto's reply to @Mrswesnod (Jan 16), I could get it to work in internal network except for camera captures and Video (disconnecting client) and calls (because of dual sim). For the external network I have trouble forwarding ports. My problem is like this. I have a D-link modem and a Belkin Wireless Router. So the connection is Public IP(xyz.xyz.xyz.xyz) > Modem IP(192.168.1.1) > Belkin IP(192.168.2.1). I forwarded the ports 5555 and 5556 on Belkin to the computer node, and added the ports for both tcp and udp on windows firewall too. On checking with open port checker website, the ports appeared closed. I then forwarded the ports on D-Link. (The available option was 192.168.1.2 although I could manually enter any other ip except gateway ip). The ports now appeared open on the open port checker website. Going to the wireless router homepage, I saw that 192.168.1.2 was WAN (while 192.168.2.1 was LAN/WLAN). Now what I don't understand is how to port 5555 and 5556 from the D-link modems 1.2 to wireless router 2.1? Or is this the problem at all? Summarizing: Public IP(xyz.xyz.xyz.xyz) D-Link(192.168.1.1) [ports cannot be forwarded on modem home page to this gateway IP address] WAN(192.168.1.2) [ports forwarded to this IP address on modem homepage appear open on open port checker website] Belkin Wireless Router (192.168.2.1) [ports forwarded to this IP address on modem homepage appear closed on open port checker] Computer (192.168.2.254) [ports forwarded to this IP address on Belkin wireless router homepage appear closed on open port checker] [Windows firewall exception added to both tcp and udp, Antivirus prevented from interfering]

What is the right method of forwarding the ports in this setup? Sorry if this is the wrong place to look for answers. All help appreciated.

KarlBaumann commented 8 years ago

Did I understand correctly after reading the comments, nobody has been able to get rid of these 100 Errors in wszf fork, the only solution was to switch back to original repo from DesignativeDave ?

andrei-zgirvaci commented 8 years ago

Yes :(

KarlBaumann commented 8 years ago

This really sucks. I am wondering how this fork got 122 stars..

ghost commented 8 years ago

No, it works for me

andrei-zgirvaci commented 8 years ago

Ipccrypto - how you made it to work?

ghost commented 8 years ago

https://www.dropbox.com/s/0azzg3rs2tmg8si/Androrat.docx?dl=0

KarlBaumann commented 8 years ago

@lpccrypto on fourth line you download original repo from DesignativeDave, not this one.

ghost commented 8 years ago

Arf, maybe i don't know i don't remember, try this repo with this tutorial.

Eventually i stop use it because this RAT doesn't work at the reboot of the phone.

KarlBaumann commented 8 years ago

Which one are you using?

ghost commented 8 years ago

currently, no one, unfortunately i don't have time. But i still interested if you find any good RAT.

andrei-zgirvaci commented 8 years ago

i saw that wszf have 2 braches, dev one was last time updated by 26 days ago... is wszf working on it now?

Skyquek commented 7 years ago

Can i compile the androrat source code with Android Studio?