Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Ettercap for Android ARM

OP onaips

25th December 2010, 09:42 PM   |  #1  
OP Senior Member
Flag Porto
Thanks Meter: 50
 
101 posts
Join Date:Joined: May 2010
Donate to Me
More
Hi guys, just to let you know, i successfully compiled ettercap for android!
This is a command-line tool only(for now) so if you never used ettercap, try it first on your PC.


What is working now (that i've tested):
- Text only support
- ARP spoofing
- ...

Not Working:
- Plugin Loading (should be easy to fix)
- Curses (is it really necessary?)

Sample usage on my galaxy S:
Code:
./ettercap -i eth0 // // -qT -M ARP
Now, use with care :P
I'd appreciate if someone write a how-to for "non-geeks", and a better mirror.

Download 0.11
Mirror (courtesy of a1Pha)

Cheers
Last edited by onaips; 21st January 2011 at 03:54 PM.
The Following User Says Thank You to onaips For This Useful Post: [ View ]
2nd January 2011, 08:52 PM   |  #2  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jan 2011
How did You do that?
2nd January 2011, 09:44 PM   |  #3  
Senior Member
Thanks Meter: 2
 
102 posts
Join Date:Joined: Apr 2010
Hi,

How did you cross compile it, and did you upload the diff back to ettercap project ? They would benefit from the changes.

I did the following to get it to work so I could execute the file from the sdcard.

# mount -o remount,rw,dirsync,nosuid,nodev,exec,relatime,uid= 1000,gid=1015,fmask=0702,dmask=0702,allow_utime=00 20,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro -t vfat /dev/block/vold/179:1 /mnt/sdcard

# ./ettercap -i eth0 // // -qT -M ARP
Last edited by dazdaz; 2nd January 2011 at 09:56 PM.
5th January 2011, 10:07 PM   |  #4  
Senior Member
Flag Warsaw
Thanks Meter: 27
 
1,509 posts
Join Date:Joined: Jun 2009
More
Can you reupload the file. Thanks.
8th January 2011, 12:33 AM   |  #5  
OP Senior Member
Flag Porto
Thanks Meter: 50
 
101 posts
Join Date:Joined: May 2010
Donate to Me
More
Link updated.

There is only one line of code modified from the original project, which sets the uid and gid to another than root, and prevents ettercap from working correctly, so i commented it and now it works well. Later ill make a tutorial on how to build it.

Cheers
15th January 2011, 03:43 PM   |  #6  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jan 2011
More
Great work onaips. But how to install it? Do you have any guide ready?

I can not find out a way to install it.
17th January 2011, 11:26 PM   |  #7  
skafan2's Avatar
Member
Thanks Meter: 10
 
97 posts
Join Date:Joined: Dec 2010
Great job here, I use Ettercap on my laptop pretty frequently, and have been waiting for an Android port. The only problem is that I keep on getting a permission error using my personal terminal emulator.

After getting su permissions, I type:
# ./ettercap -i eth0 // // -qT -M AR

Then, it just spits out:
./ettercap: permission denied

Any thoughts?
21st January 2011, 03:53 PM   |  #8  
OP Senior Member
Flag Porto
Thanks Meter: 50
 
101 posts
Join Date:Joined: May 2010
Donate to Me
More
Try to give it executable permissions,

chmod 777 ettercap
22nd January 2011, 10:28 PM   |  #9  
skafan2's Avatar
Member
Thanks Meter: 10
 
97 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by onaips

Try to give it executable permissions,

chmod 777 ettercap

No luck, but thanks for the suggestion. It still gives the same permission denied error. None of the other files in the folder have permission as well, not even with the chmod command.
20th February 2011, 01:31 PM   |  #10  
Member
Thanks Meter: 8
 
35 posts
Join Date:Joined: Sep 2009
Still no luck with the plugins? Can someone help?
@skafan2 you probably are trying to run it from your sdcard, on a fat partition. Try to move it to the /system directory, or any other place formatted as ext-*

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes