Related
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
I'd appreciate if someone write a how-to for "non-geeks", and a better mirror.
Download 0.11
Mirror (courtesy of a1Pha)
Cheers
How did You do that?
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=0020,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
Can you reupload the file. Thanks.
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
Great work onaips. But how to install it? Do you have any guide ready?
I can not find out a way to install it.
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?
Try to give it executable permissions,
chmod 777 ettercap
onaips said:
Try to give it executable permissions,
chmod 777 ettercap
Click to expand...
Click to collapse
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.
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-*
dazdaz said:
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=0020,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
Click to expand...
Click to collapse
Hey.... Many many many thanks, but i have a question..
i run debian-ubuntu-bt5 on my HTC DesireZ and i can not run ettercap because of some Fatal error with the Layer 3 (wich is the internet layer). Then, i was suspicious with the interface (eth0). Eth0 refers to ethernet connection and i am connected wireless (is this the problem)????? i tried to change my eth0 interface with the wlan0 but without luck.... please help me how to make it work....
Thank u again
thank you!
ettercap layer 2 error
come on guys please someone answer me, i really need this to work
dude on most mobiles wifi= eth0 or tiwlan0 so quit trying to change it to wlan0. Also, are you talking about the android ettercap binary or the debian chroot version? also post exactly what it says if you can
working but not package received, cant put in promicious mode...
Hi, the binary is working but is telling me 0 plugins, any one knows how to deal with the plugins
links dead
Both links are dead. Can you fix it?
You can mail me the app, i can mirror it for you if you'd like.
Reup please ....
Jah. reup please
I'm also interested in testing this on an android phone, but the links are dead.
HI, i'm new to android, i did use linux/iptables on pc before.
i did setup iptables as my android phone's firewall, it works just fine.
but i do not know where can i read the log. (iptables -A INPUT -j LOG)
i know on some linux/pc default is /var/log/messages,
but where is android default?
please help and thank you.
This post is actually part HOWTO and part Question / RFC
Hardware used:
LG Optimus V
Software used:
Bumblebee ROM 2.4
WiFi TXpower
Wireless Tether (for root users)
iwconfig
UAPick (to change the User Agent string in IE8 to avoid raising red flags with Virgin Mobile)
So I've been playing around with OP V and decided that it would be best for me to reduce my wifi TX power since I always us my wifi tether is close proximity to my laptop. Unfortunately, the ROM that I use does not come with the iwconfig tool necessary so I had to do a little fiddling around to get everything to work. So I figured I'd post here so you guys can review what I did and make any corrections if you think there is a better way to do this. And hopefully this info will help out some people that are newer at this than I am.
After I installed Bumblebee 2.4, I decided to play with the Tether APP that comes with it. I configured BB's tether and used UAPick to change IE8's UA string to the UA string from the Android Browser. It then occurred to me that my OPV was sitting ~2' away from my laptop and didn't to be transmitting at full power. So I started looking for APP to easily adjust the TX power. I happened upon WiFi TXpower in the android market and installed it. But it did not work because the Bumblebee ROM does not come with iwconfig.....hmmm....what to do what to do?
After many hours of Googling and reading forums I came to find out that I needed access to iwconfig to make WiFi TXpower work correctly. So I had to make a choice, 1) try downloading iwconfig and try to adb push iwconfig to /system/xbin and hope it works and that I can chmod the file correctly 2) install and APP that comes with iwconfig and symlink it into the /system/xbin dir.
Fortunately, I stumbled on a post in a forum that stated the APP Wireless Tether (for root users) comes with iwconfig and it allows for changing the TX power level in the APP (for hardware that supports TX adjustments). So I installed Wireless Tether (for root users) setup my Android for wi-fi tethering. I then proceeded to fire up my laptop and put it in my bedroom with the android phone on my kitchen table in order to test changing TX power levels and checking the change with my laptop.....SURE ENOUGH IT WORKS. Power level changes supported by the APP are as follows: disabled(no TX reduction)/3mW/5mW/10mW/15mW/20mW/25mW/30mW. The only problem is that the APP is rather large. 403KB for the .apk and ~.98MB when running on the Android. So onto the next step.
WiFi TXpower is pretty light weight @ 92KB supports the following power levels: 4/11/18/25/32 so all I need now is iwconfig to get it to work right. I decided to symlink iwconfig from the Wireless Tether (for root users) install dir instead of trying to adb push it. Here's what I did to symlink:
# adb shell
# echo $PATH
# mount -o remount,rw -t yaffs2 /system /system
# ln -s /data/data/android.tether/bin/iwconfig /system/xbin/iwconfig
After that I fired up WiFi TXpower and now it works because the symlink worked. . I was just happy because it's been a long time since I made a symlink.
So now I would like some input form you guys here.
1) Is it possible for me to just unzip the Wireless Tether.apk and pull out the iwconfig then use adb to push the file into /system/xbin so that I don't have to install the whole APP package then create a symlink. If I do go that route will I have to chmod the iwconfig?
2) Could I just copy the iwconfig to /system/xbin from the install directory then uninstall the APP it came with.
3) Can I package the iwconfig (and possibly other wireless tools) into a zip that I can flash to the system from the Xionia recovery? This is how I would prefer to do it so that I have a simple package to load if I ever switch ROMs.
I'd greatly appreciate any feedback you could provide as to the best method and if I may have done this the long hard way or the right way. Although I am new to Android, I have been playing with linux on & off for the last 12+ years. It's just been ~2 years since my last outing with a full blown install that I could play with.
-eric
P.S. Thx to obijon for Bumblebee. I've been loving this ROM for the last couple weeks and having the Terminal Emulator app installed by default was VERY helpful to me in getting this WiFi TXpower / iwconfig thing worked out.
so this will work on p500 also?
should i type these in terminal emulator?
# adb shell
# echo $PATH
# mount -o remount,rw -t yaffs2 /system /system
# ln -s /data/data/android.tether/bin/iwconfig /system/xbin/iwconfig
ccdreadcc said:
so this will work on p500 also?
should i type these in terminal emulator?
Click to expand...
Click to collapse
1/ Flash this
2/ Use /system/etc/setwifi.sh script or WiFi Tx Power (the iwmulticall method).
3/ Done
k i will try..
im using void froyo final
ccdreadcc said:
so this will work on p500 also?
should i type these in terminal emulator?
# adb shell
# echo $PATH
# mount -o remount,rw -t yaffs2 /system /system
# ln -s /data/data/android.tether/bin/iwconfig /system/xbin/iwconfig
Click to expand...
Click to collapse
To be 100% honest I don't know if it will work on other hardware, as I have only done this on my hardware. I guess you could always install the Wireless Tether for root users APP and conduct a similar experiment to mine, in order to verify that your platforms wifi radio can change TX levels. The thing I like about the WiFi TXpower app is that it can change TX levels on the fly and comes with a very simple widget that allows you to "single tap cycle" through the TX levels. Where as the Wireless Tether app shuts down the radio and tether to modify the power level.
So by using the WiFi TXpower app you can use your personal favorite wifi tether app and have the TXpower toggle/cycle seperate. And it even works when your using the WiFi radio for anything else since it runs as a service in the background and sets your specified power level whenever the radio comes on. Which is awesome when I'm at home or in a coffee shop with a good signal. No need to operate at full power.
You should definitely let us know if dr.notor's solution works for you. good luck man.
dr.notors method worked, thx anyway
no worries mate. that's why we post what we do. to help each other.
glad nortor's suggestion worked for you.
Talking about WiFi Tx power... what are recommended values for someone like me who use my home Wifi with a router on a small apartment?
LOL 1.4.2 Rom (which I use) has WiFi Tx set to 20 by default, but I've always wondered if that's already a "reduced value" or what. Does anyone knows what's the actual default value for The Optimus One?
ElGeorge said:
Talking about WiFi Tx power... Does anyone knows what's the actual default value for The Optimus One?
Click to expand...
Click to collapse
32 dBm......
dr.notor said:
32 dBm......
Click to expand...
Click to collapse
yep! 32/30 is the default.
I'm in a 750 sq/ft duplex and I go outside to smoke cigs (about 50+' away) and a setting of 4/11 dB works great for me. So you could drop it down a few levels and still maintain good connectivity. Judging by the the Windows Vista "WiFi power level meter", @ 4dB WiFi TxPower setting I still have 50% signal strength @ ~100' away on my HP Laptop's wifi card/antannae.
regarding dr.norto's setwifi.zip file: It's doesnt seem to like my Xionia/LG OPV. It gives me a "failed : no boot.img" error. So this .zip may not be for everyone. It may be an issue with the Bumblebee 2.4 rom or the Xionia recovery tool. Which is a bit of a bummer as I REALLY wanted to use iwmulticall instead of imconfig. But that is just how life goes.
I'm working on getting the Jave SDK & and Android SDK install and working so I can build a package for the LG OPV guys with either iwconfig or iwmulticall.
thx for all the help guys.
fatchick1o9 said:
regarding dr.norto's setwifi.zip file: It's doesnt seem to like my Xionia/LG OPV. It gives me a "failed : no boot.img" error. So this .zip may not be for everyone. It may be an issue with the Bumblebee 2.4 rom or the Xionia recovery tool. Which is a bit of a bummer as I REALLY wanted to use iwmulticall instead of imconfig. But that is just how life goes.
Click to expand...
Click to collapse
You can try to replace update-binary with one from some of the working ZIPs on your device. Other than that, no idea about your recovery. This works (tested) with CWM and AmonRa...
ccdreadcc said:
so this will work on p500 also?
should i type these in terminal emulator?
# adb shell
# echo $PATH
# mount -o remount,rw -t yaffs2 /system /system
# ln -s /data/data/android.tether/bin/iwconfig /system/xbin/iwconfig
Click to expand...
Click to collapse
" # mount -o remount,rw -t yaffs2 /system /system"
Thank you for the line of code!
dr.notor said:
1/ Flash this
2/ Use /system/etc/setwifi.sh script or WiFi Tx Power (the iwmulticall method).
3/ Done
Click to expand...
Click to collapse
I'm having a ***** of a time getting iwconfig on my Asus transformer tablet. I tried flashing this, but didn't work. I'm running Xenogenesis JB 4.2. is there any way to get this working?
There are a good number of us that has TF300 with JB and cannot unlock via the unlock tool provided by ASUS. Is it possible to request a dev or start a donation for something to start working for a possible root method for JB?
+1 i also need root,i can't unlocked my bootloader via asus apk.
bump
It's said that if you register your tablet on Asus's website you will be able to unlock after a day or two, they'll add the SN to the database.
Trimis de pe Motorola Defy
tjy8tim said:
There are a good number of us that has TF300 with JB and cannot unlock via the unlock tool provided by ASUS. Is it possible to request a dev or start a donation for something to start working for a possible root method for JB?
Click to expand...
Click to collapse
I have an idea about this issue but have no chance to verify. As I know the problem with unlocking is the tablet can't connect to some host using http (host wvdrm.asus.com), but this host have https port opened. So U an try to covert this traffic to https and redirect it to https.
If U have linux box betwen your wifi router and internet connection - you can use "stunnel" software and redirect traffic using iptables.
stunnel configuration:
--- cut --- cut ---
client = yes
debug = 7
foreground = yes
[asus]
accept = 0.0.0.0:8888
connect = wvdrm.asus.com:443
--- cut --- cut ---
for redirect using iptables U need to add this to the nat table:
-A PREROUTING -d 103.10.4.109/32 -i IIF -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8888
where IIF - input interface - interface which receive traffic from your tablet.
PS this is just an idea. I can't verify how it works because my tablet is unlocked.
Android 8 (Oreo) has a major behavior change on how device ID is manipulated, this tool helps you Query / Modify the IDs on Oreo in a programmatic way.
For further information about the behavior changes of device ID in Oreo, see the page: https://developer.android.com/about/versions/oreo/android-8.0-changes.html#privacy-all
Looking for the App?
See This New Threadhttps://forum.xda-developers.com/android/general/app-device-id-changer-oreo-13-aprv0-9-2-t3777299
How to use it:
Root privilege is NEEDED.
Download the proper version for your phone - if not sure, armv7 is **[pretty much]** working on most phones.
You might need adb tools / Terminal Emulator.
Copy the executable binary downloaded to /cache or other ext filesystems.
Give 0755 permission to the executable.
Assign/Query IDs.
Command Usage:
See the link: https://github.com/CoNsTaRs/oreo_device_id_changer/blob/master/README.md
Step By Step Querying/Assigning IDs:
Have the downloaded exctuable placed at the root of your SD card.
Use either adb/Terminal Emulator to run the commands below.
Setting up
Code:
su # Gain root permission if available
cp /sdcard/[EXECUTABLE] /cache/ # Copy executable from /sdcard to /cache
chmod 0755 /cache/[EXECUTABLE] # Set permission
Querying
Query current device ID for package [PACKAGE].
Code:
/cache/[EXECUTABLE] -q -p [PACKAGE]
Query the default device ID for package [PACKAGE].
Code:
/cache/[EXECUTABLE] -Q -p [PACKAGE]
Assigning
Make a backup first using this command.
Code:
/cache/[EXECUTABLE] -b /sdcard/settings-ssaid.xml.bak
Preview changes. (This is not changing anything, just previewing the modification(s).)
Code:
/cache/[EXECUTABLE] -a [ID] -p [PACKAGE]
If satisfied with the result given from the command above, run the following command to make the changes.
Assign the ID [ID] to the package [PACKAGE] directly.
Code:
/cache/[EXECUTABLE] -i -a [ID] -p [PACKAGE]
※ Substitute [EXECUTABLE] to the file name of the executable, [ID] to the appreciated ID, and [PACKAGE] to the package name in the commands above.
Do not forget to REBOOT your phone after changing IDs.
New IDs go into effect only after a reboot is performed.
Downloads:
https://github.com/CoNsTaRs/oreo_device_id_changer/releases
------------------------------------------------------------------------------------------------------------------------------------------------------
I'll update this thread soon, heading out for food now
Waiting patiently haha
CoNsTaR said:
Android 8 (Oreo) has a major behavior change on how device id is manipulated, I wrote a tool to Query / Modify the ID on Oreo.
For more information, see the github repo below:
HTML:
https://github.com/CoNsTaRwU/oreo_device_id_changer
I'll update this thread soon, heading out for food now
Click to expand...
Click to collapse
Just one question. Your notes contradict themselves.
First you say you cannot query and assign at the same time
Then you say to query and assign at the same time set ......the flags.
So which is true? Can you set and query in fact at the same time or not?
Thanks
Sent from my SM-G935W8 using Tapatalk
tineprogramming said:
Waiting patiently haha
Click to expand...
Click to collapse
I just found out I might have selective disorder on food
I'm gonna keep the last line in the post. hahaha
sonic_the_hedgeh said:
Just one question. Your notes contradict themselves.
First you say you cannot query and assign at the same time
Then you say to query and assign at the same time set ......the flags.
So which is true? Can you set and query in fact at the same time or not?
Thanks
Sent from my SM-G935W8 using Tapatalk
Click to expand...
Click to collapse
I don't really find the contradiction in my note.
To clarify, I'll restate them again for you.
Querying both ID - NOT possible
Assigning both ID - Possible
Querying and Assigning in one command - NOT possible
how can i use it? should i compile it in some way? it uses adb?
Edit: whoops, just found the instructions
mirko902 said:
how can i use it? should i compile it in some way? it uses adb?
Click to expand...
Click to collapse
See the Release Page for downloads.
Use this tool through adb or terminal emulator are both possible.
I've just updated the original post, hope that gives more information.
I'm still not sure to where to put the executable so i can execute it with the terminal emulator
mirko902 said:
I'm still not sure to where to put the executable so i can execute it with the terminal emulator
Click to expand...
Click to collapse
Any ext filesystem should be good.
Step by step:
Copy/Download the executable to the root of your SD card
Follow the commands below
Code:
su
cp /sdcard/dvcid-armv7 /cache/
chmod 0755 /cache/dvcid-armv7
/cache/dvcid-armv7 -q -p com.android.example # Run commands as you want
it looks like it works, if i query the id i get the new id that i set, but the app wich i'm trying to use it on recognize that it is still the same phone, maybe i'm doing something wrong, thanks anyway!
mirko902 said:
it looks like it works, if i query the id i get the new id that i set, but the app wich i'm trying to use it on recognize that it is still the same phone, maybe i'm doing something wrong, thanks anyway!
Click to expand...
Click to collapse
Don't forget to REBOOT your phone after changing IDs.
The changes take place after the next boot.
Hi
Firstly thanks for your efforts; I've been after a device id tool since I updated to Oreo.
My system:
Xiaomi MIX (ARM64) running Resurrection Remix Oreo.
I used the ARM64 version of your tool and the query part worked fine.
The trial change reported that the id I had supplied wasn't a 16 digit number (it was) but I could use --force to do it anyway, which I did, and it appeared to work.
I made the actual change (again using --force) and rebooted.
Querying the id for the package now shows that it has reverted to the original id.
Any ideas? If there's anything I can do to help (logs...), please let me know.
Sláinte
mmidders
mmidders said:
Hi
Firstly thanks for your efforts; I've been after a device id tool since I updated to Oreo.
My system:
Xiaomi MIX (ARM64) running Resurrection Remix Oreo.
I used the ARM64 version of your tool and the query part worked fine.
The trial change reported that the id I had supplied wasn't a 16 digit number (it was) but I could use --force to do it anyway, which I did, and it appeared to work.
I made the actual change (again using --force) and rebooted.
Querying the id for the package now shows that it has reverted to the original id.
Any ideas? If there's anything I can do to help (logs...), please let me know.
Sláinte
mmidders
Click to expand...
Click to collapse
Hi, thanks for your report.
Can you try again with This Release, and see if your problems are still there.
Thanks for the swift response.
I still get an error about the deviceid I'm using and have to use the --force switch, but the change worked with the above realease and has persisted after a reboot. Thanks muchly.
Sláinte
mmidders
Session log:
lithium:/sbin # chmod 0755 dvcid
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
a3d809934af2ca85
lithium:/sbin # dvcid -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
the designated ID is NOT valid: 84dbc105e6063270
use --force to perform anyway
lithium:/sbin # dvcid --force -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
...
lithium:/sbin # dvcid --force -i -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
84dbc105e6063270
mmidders said:
Thanks for the swift response.
I still get an error about the deviceid I'm using and have to use the --force switch, but the change worked with the above realease and has persisted after a reboot. Thanks muchly.
Sláinte
mmidders
Session log:
lithium:/sbin # chmod 0755 dvcid
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
a3d809934af2ca85
lithium:/sbin # dvcid -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
the designated ID is NOT valid: 84dbc105e6063270
use --force to perform anyway
lithium:/sbin # dvcid --force -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
...
lithium:/sbin # dvcid --force -i -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
84dbc105e6063270
Click to expand...
Click to collapse
Thanks for the feedback. I'm happy it helps.
It appears that I mistaken thought that device IDs are numbers which actually are not.
I'll make some improvements based on your feedback.
CoNsTaR said:
It appears that I mistaken thought that device IDs are numbers which actually are not.
I'll make some improvements based on your feedback.
Click to expand...
Click to collapse
They're sixteen digit hex strings, so technically numbers, just not in decimal.
Thanks for your help.
Just as an addendum, I found it quite difficult to find out where the ssaid settings file was in oreo; maybe because I'm new to Android development, but for google and anyone else:
Android Oreo 8.1 Device ID SSAID /data/system/users/0/settings_ssaid.xml
If it is possible.. Then please Make an App to Change the Device id changing id through Commands is little bit complicated.. I m searching for Changing ID in my oreo Device with any module or App. But nothing working till now it ll be very helpful and easy to me and to others too by an App to Change id.. Thanks
Bhabesh98 said:
If it is possible.. Then please Make an App to Change the Device id changing id through Commands is little bit complicated.. I m searching for Changing ID in my oreo Device with any module or App. But nothing working till now it ll be very helpful and easy to me and to others too by an App to Change id.. Thanks
Click to expand...
Click to collapse
Hi Bhabesh,
I totally understand what you're saying, and it was actually my intention to make an android app in the first place I started this project.
However, I've hardly no experience of developing android apps as of the last time I did it was years ago.
Specifically, it apparently will take a lot of time for me to re-learn it, get my knowledge up to date, and maintain such a project.
The problem is, I'm currently busy working on another project which consumes most of my free time, and have no time to pay attention to this.
For these reasons, I'm not likely to get into this shortly, but I will finally make it an app for sure.
Hope you can understand my situation, if I made it, eventually, I'll as soon update this thread and let you know.
CoNsTaR said:
Hi, Bhabesh,
I totally understand what you're saying, and it was actually my intention to make an android app in the first place I started this project.
However, I've hardly no experience of developing android apps as of the last time I did it was years ago.
Specifically, it apparently will take a lot of time for me to re-learn it, get my knowledge up to date, and maintain such a project.
The problem is, I'm currently busy working on another project which consumes most of my free time, and have no time to pay attention to this.
For these reasons, I'm not likely to get into this shortly, but I will, finally make it an app.
Hope you can understand my situation, if I made it, eventually, I'll as soon update this thread and let you know.
Click to expand...
Click to collapse
I ll wait till then ?... Goodluck ?