Milestone + USB host + debian + aircrack-ng - Motorola Droid and Milestone General

1st I found that Motorola Droid/Milestone is capable of USB host mode
tombom.co.uk/blog/?p=124
2nd root is possible on Milestone
knowyourmobile.com/motorola/motorolamilestone/milestoneuserguides/381918/how_to_root_the_motorola_milestone.html
3rd Android can chroot debian
android-hilfe.de/anleitungen-fuer-motorola-milestone/26870-how-debian-chroot-mit-lxde-auf-dem-milestone.html
So can I run aircrack-ng on debian and use connected USB wifi adapter with it?
or is there any other device which can do that?

i believe you need to be able to put your wifi adapter (the wifi chip in the phone) to a certain mode, i forget what. it varies from phone to phone as different phones use different components.

yes it could work, you would just have to get airmon-ng working to run the card in monitor mode (think thats what you were thinking of x1infusion).. let me know if you have any luck as I am trying the same with my x10..

I know Im a little late in replying, however just stumbled across the topic. But there is a new app in the market place called shark(ethereal/wireshark), this is def. right along those lines. Furthermore, I believe it could def. be beneficial to check out the possibility of dropping a symbian or debian OS on the device. These have full linux potential as well as I have seen instances when both of these have been flashed to the A855(traditional droid). However Im not sure if they can be used on the milestone
Sent from my Droid using Tapatalk

Also, it the card(wifi) would have to be put in active/promiscous mode as its traditionally called. I know that depending on the chip it does vary but I am not too sure about mobile Wi-Fi chips
Sent from my Droid using Tapatalk

Related

Mac OS X FroYo USB Tethering

... I was just wondering if anyone has a solution that allows the Nexus One to be used as a USB modem in Mac OS.
I know I can use WiFi tethering and I know of PDANet, I am not looking for alternative solutions but rather to find out if the FroYo USB tethering functionality can be used with Mac OS X (Snow Leopard).
Any help is appreciated.
well before someone comes up with a real answer (since i dont have osx) the easiest thing to do is just plug in the n1 to usb and not mount the device and turn on wifi tethering. This way its charging and being your hotspot.
Why dont you just try to see if the usb tether on froyo works on your macbook and tell us what happens? It could possibly only take 10 minutes to flash froyo plug in, test (stay there if its works), and nandroid restore (if it doesnt).
miketlo said:
well before someone comes up with a real answer (since i dont have osx) the easiest thing to do is just plug in the n1 to usb and not mount the device and turn on wifi tethering. This way its charging and being your hotspot.
Why dont you just try to see if the usb tether on froyo works on your macbook and tell us what happens? It could possibly only take 10 minutes to flash froyo plug in, test (stay there if its works), and nandroid restore (if it doesnt).
Click to expand...
Click to collapse
I have of course tried this and nothing happens, it is not mapped as a network card like it is if I reboot into Windows 7.
Furthermore, I have searched and found several posts saying that it does not work due to a lack of drivers in Mac OS.
However, this being XDA and the innovative nature of many of the people on this forums made me think that someone may have a solution that works.
Linux drivers
If any one can provide hints where the Linux drivers that that add USB tethering ability can be found ? May be we are just able to port them with little modifications if any would be needed at all.
The problem is
Simply and has been for ages (since HTC had this kind of USB tethering integrated since the Hero days) that the solution google uses probably is the same as htcs it relies on rndis, which OSX has no proper support for. RNDIS is perfectly supported on OS level in windows and Linux but not in OSX.
Apple has dropped the ball on this protocol for ages, but up until now this has not really hurt but now it does somewhat (thankfully Google also has provided Wifi tethering, which is an easy fix to the problem)

[TT] Peripherals possible?

While looking around my phone I came up with a couple of thoughts. First would it be possible to make devices that plugged into the miniusb port on the top of the phone and could it be plug and play? Heck maybe even make the driver if necessary built into flash memory on the new device. It seems like it just takes an kernel update to make something like this possible if it's not already.
The second thing I thought of is if the above isn't possible, why not create an attachable mirror that sits at the right angle to take advantage of the rear camera for video chat. You could project your image onto the mirror and the camera could catch that. The top idea is alot better, the bottom requires alot less knowledge. Either would get us video chat.
Interesting, i like the first idea.
I like the first idea, though for video chat I would rather someone figured out where to pick up the actual modual that goes inside the phone (there's a thread about how they left the mounting brakets in place for the front cam.)
However for other things, like maybe a gamepad+extended battery combo, or an IR blaster to operate my TV
q426669 said:
I like the first idea, though for video chat I would rather someone figured out where to pick up the actual modual that goes inside the phone (there's a thread about how they left the mounting brakets in place for the front cam.)
However for other things, like maybe a gamepad+extended battery combo, or an IR blaster to operate my TV
Click to expand...
Click to collapse
This is the thread you were talking about.
From what I understand about micro usb is that there are five wires/confections. The outside connections are ground and power. The two next to the ground are for data (one + and one -) and the last one next to power is a identification connection. If the wireis connected/has power then its a source device (i.e. computer). If its not, then its a peripheral (portable hard drive, out in our case, our phone). Its been a bit since I read up on that, so it might be vice versa.
Last time I tore the phone apart, I didn't look, but it may be a setting that is hard-wired (literally), or its a switch controlled by software. If it's the latter, then its possible, if its hard wired, then its not.
Adding things to the kernel or loading drivers isn't cut and paste. It takes available source code, which isn't always available, for both the phone and the device you want to use (that works with android), as well as understanding of how to make it work.
That last part I am not well versed on. But we have a couple devs trying to get the vibrant opened up. They are few, and the request list keeps getting larger.
Sent from my SGH-T959 using XDA App
I was just thinking today that it would be great to have a micro-usb device that could house a camera for video chat... I like your mirror idea...I'm prius owner and that's how the dashboard works. The usb is right there...really I think someone should incorporate a device in a mod of the back cover...i don't know anything about code but I could make the case.
Sent from my SGH-T959 using XDA App
Devices require a driver of some kind so the controller knows how to talk to device. For example, if I wanted to hook up my DSLR and control it, I would need a driver ported over and then the SDK for the camera would have to be ported over. An OS like Windows 7 has literally thousands of drivers built in and many other devices require you to install a driver. The only time "plug and play" actually works is either with the OS has the driver already installed or if the device is designed around a generic driver.
Incredible idea! I'm going to make the second idea. I have my own twist on the concept but it shouldn't be to difficult.
Sent from my SGH-T959 using XDA App
I like the first idea but I also had a similar idea and I'd like to see the attached camera come with led's and somehow acct as a flash for both cameras. It could be tiny, if the camera app could be figured out to trigger the flash on all galaxy s models, well at least the vibrant and captivate this could sell.
If a third party app was developed it could be added to any android phone in theory. If that third party app was as good as the galaxy s stock camera app then you'd really be in business.
If I was talking to my brother I'd have tried to convince him to help me develope something. Well I hope one of you talented devs has success with this idea. I'd also like to see success with the guy adding the extra camera internally, I'd be interested in performing the mod if the software end is figured out.
Sent from my SAMSUNG-SGH-I897 using XDA App
I can take or leave peripheral support, but I'm DYING for USB host mode!
cashless said:
I can take or leave peripheral support, but I'm DYING for USB host mode!
Click to expand...
Click to collapse
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.
ttabbal said:
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.
Click to expand...
Click to collapse
That is exactly what I was trying to say earlier. You put it in better words. Thanks
Sent from my SGH-T959 using XDA App
almyz125 said:
This is the thread you were talking about.
Click to expand...
Click to collapse
Ahhah, I couldn't find it to save my life last night lol! Thanks ^_^
Makes me wonder if you can still take power off of the port and communicate to the device via blue tooth. But I don't think it would come to that.
Sent from my SAMSUNG-SGH-I897 using XDA App
Dani897 said:
Makes me wonder if you can still take power off of the port and communicate to the device via blue tooth. But I don't think it would come to that.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
??
ttabbal said:
That's the thing, devices that support USB host generally don't use a mini/micro B port. They have specific ports for that. Of course, the USB controller in there may well be able to be a USB host, but we don't know how to enable that from what I have seen. IF the controller can be put into host mode, loads of options like this become possible. It would require kernel mods, but that's not a huge deal. However, as long as we are in USB client mode, the only things we can connect to the port are chargers and computers, as that's all the phone knows how to deal with.
Click to expand...
Click to collapse
Oh, it's host mode built in already. One of the major pluses that I weighed in on when buying the phone.
"Both the S5PC110 (smartphone chipset) and S5PV210 (its netbook alternative) are optimized to ensure long battery life for mobile devices, using a 45-nanometer (nm) Low Power fabrication process and low power architectures. With the 1GHz clock speed and 512KB L2 cache, these processors should also manage to provide performance unknown to the ARM world so far.
The two processors have built-in 3D graphics engine and support 1080p full HD video playback and recording at 30 fps. The final nice features of the new chipset include a wide variety of interfaces and peripherals, including HDMI 1.3and USB 2.0 host interface."
Hate to kinda go off topic with the USB Host mode stuff again, but it seems like since the interface is built into the chip, host mode should be enabled in the kernel.
Yes? No?
Has anyone tried to get an OTG cable in there to see what happens?
Just saying.
I've been curious about this since I saw it done (rather impressively) by sonic7406 (YouTube) on the Nexus One. Since then, I hear it's also been hacked on the Droid. From my research, I'm pretty confident this should be possible with the right drivers installed on the Galaxy S series. I've gathered together an (supposedly) OTG "compatible" cable (the Nokia CA-101 for Nokia 6600 Slide/N900/etc), an extra-beefy powered hub, and female-to-female USB-A adapter. I have yet to dive into the kernel to load any special drivers, try mounting drives, etc. I'm still unsure of the "OTG" cable and may still need to manually ground that fifth pin to kick it off. Though, as far as the cable is concerned, that is the only thing that makes it OTG on one end.
Host Mode Background Info: OTG Wiki
Here's a modoco thread that includes most of the relevant links I've seen.
Ideally, I'd like to find a microUSB to USB-B OTG cable that connects directly from my phone to the powered hub, but I couldn't find any. Let me know if anyone knows where we could find these.
It seems like we could create an entire new category of toys to attach to our devices if the micro USB port could be figured out. To me that's ultra exciting!
Let's go a few steps further, Being able to physically attach a printer or hdmi (Yes, I know about AllShare) to the tv could require a simple adapter that plugs into the micro USB port on the handset. We could also have a nice flash that has brackets that mount to the handset for support to get better pics in low lighting (instead of just saying "oh, I've got night mode", bugger that).
The capability to do this has to be written at the kernel level and then we need hardware manufactures willing to make the products. Therein lies the problem, how do we get that to work?
My neighbor is an electronics engineer and I'm a machinist, my friend is a tool and die maker.
My neighbor has an idea to make a device for surface mount soldering using an inert liquid with a boiling point equal to the soldering temp. This would be a cheap alternative to infrared soldering.
Other than that I might be able to come up with a housing.
I wouldn't want to commit myself untill the software works and we've tested the soldering machine.
Sent from my SAMSUNG-SGH-I897 using XDA App

Embedding Nexus One into Portable HD as a WiFi NAS

Hi all,
I've got an old Nexus One lying around, and I was thinking, why not use it to make a WiFi Hard drive?
Originally, I was just going to use Android Assistant to clean up my startup and Samba FileSharing to share, and making a case that basically plugs into the wall with a 2.5" HD.
My question is this: From a software perspective, what is the quickest way to get the Nexus One to boot up and run what's required? Are there any trimmed down ROMs that may suit my needs better?
Thanks,
Ben
1. To do it you need the hard drive connected to the Nexus, which you can't do unless you have USB Host-capable kernel running on Nexus and USB2SATA adapter to your HD. To my knowledge, there is no USB host support in the kernels you might want to use, and the kernel that supports it doesn't allow charging.
2. Even if you find the way around the 1st problem, which is unlikely, you're going to get sub-1MB/s transfer speeds. I have a real NAS at home, and after tweaking my 802.11g WiFi adapters in laptops I'm succeeding to pull 3MB/s, and I don't plan on even starting to use it until I get the 802.11n miniPCIe card for the laptop that's going to use this NAS, and reach 7-8MB/s at least. So I believe you might find a much better use for your Nexus. Or just save it until you have kids, they'll have a nice toy (if you're a teenager, disregard this suggestion).

Kali OS for our Raspberry

What you guys think about it?
I gonna try it - this night I want to download an .img file for raspberry and also .iso for normal computers
Website: http://kali.org/
Download: http://www.kali.org/downloads/ (you need to chose armel architecture and then Raspberry PI version)
About (docs): http://www.kali.org/official-documentation/
Yeah I saw this also, it will be fun to use but it will not be good for cracking passwords fast because of the raspberry pi's hardware. Might test it out on mine soon
Informations from me (will be keep updated):
Didn't try the special applications yet, but I feel it boots much slower than Raspbian. Reading package lists is slower too, but it's prolly because of more apps on list, so it's possible to fix.
Use Thunar file manager - it's much faster than the second one.
Midori is shutting down without any reason.
3.8GB of SD card used after writing it (checked in file manager).
Chromium doesn't work at all.
Already decided to stop using it, just need to test tools now...
I installed it , but how do I connect to the internet? I dont see any wifi scanner to find a network.
Also i went to the command prompt and is not readying my usb wifi adapter... doesnt find wlan0
Sent from my SPH-L900 using xda app-developers app
I connected it with ethernet cable so I didn't have such a problem.
It's strange that kali doesn't see a wificard - it has many built-in drivers. Maybe you are searching wlan0, when it's for example wlan1? Did u use ifconfig and iwconfig?
From my understanding the rPi does better with hf than it does el, so it seems that if Kali OS could be compiled for the rPi using armhf instead that the performance might be better overall than running an armel version. On that note, you won't see the same speeds as a Raspbian distro merely because it is using armel compared to Raspbian which uses armhf.

External wifi chips for monitor mode

I bought a samsung tab 3 8.0 about 4 months ago and was disipointed when there was no support for monitor mode(rooted already) so i was wondering is there any external wifi chips that connect through micro usb and have support for monitor mode?
androidhacker007 said:
I bought a samsung tab 3 8.0 about 4 months ago and was disipointed when there was no support for monitor mode(rooted already) so i was wondering is there any external wifi chips that connect through micro usb and have support for monitor mode?
Click to expand...
Click to collapse
I don't have the Tab 3 8.0 but on other platforms I target, I use 2 dongles based on RTL8187B chipsets they do both monitor, and injection, they are very well supported and at most all you require is the kernel modules for your platform. I built them out-of-tree with minimal work. I am sure their are many more chipsets others prefer but I use what I know works for me. a little googling will show you what dongles contain this chipset, I pulled the covers off mine to integrate them or I would get you the specific ones I use with great success.
BinaryDroid
Thanks but and this my fault for not stating it but I was more talking about having USB otg connected and then connect a USB external WiFi chip to that. The wifi chip I have is the Alfa AWUS036NHA.
So what I want to know is if I go buy a USB otg adapter will it work. As far as I know the Alfa AWUS036NHA has support for Linux(drivers) and android is linux . so would I need these drivers and if so how do I install them? And anther thing is, if this works and is recognized how would I put the chip into monitor mode(with terminal eliminator, could use other methods but terminal eliminator is preferred)?
Sent from my SM-T310 using XDA Premium 4 mobile app
androidhacker007 said:
Thanks but and this my fault for not stating it but I was more talking about having USB otg connected and then connect a USB external WiFi chip to that. The wifi chip I have is the Alfa AWUS036NHA.
So what I want to know is if I go buy a USB otg adapter will it work. As far as I know the Alfa AWUS036NHA has support for Linux(drivers) and android is linux . so would I need these drivers and if so how do I install them? And anther thing is, if this works and is recognized how would I put the chip into monitor mode(with terminal eliminator, could use other methods but terminal eliminator is preferred)?
Sent from my SM-T310 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
IDK i am here a little late or not but i dont have a 8.0 but a 10.1 version and we was working on it here http://forum.xda-developers.com/gal.../dis-android-kernel-modding-gt-p52xx-t3052321 and http://forum.xda-developers.com/showthread.php?t=2727771 . It work well but you will need some extra work on kernel modding and also chmod linux onto your device. Give it a try!

Categories

Resources