frep / radxa

workspace for radxa devices, such as the radxa rock pro
16 stars 7 forks source link

Monitoring mode for Alfa (RTL8187) #1

Open johndoesenior opened 9 years ago

johndoesenior commented 9 years ago

For some reason the produced image doesn't have the drivers for the Alfa.

More over - it doesnt support monitoring mode at all (even for the built in wireless card).

Any suggestions?

frep commented 9 years ago

Offensive security patches the kernel sources before building the arm-kernels: echo "Patching kernel" wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O mac80211.patch patch -p1 --no-backup-if-mismatch < mac80211.patch

I think, this patch is missing now, to get it work. But that's where the trouble begins: Until now, I'm still not able to build my own kernel. That's the only reason I used the prebuild boot-image from the descriped ubuntu-Image from above. I tried the instructions at http://radxa.com/Rock/Booting_Linux (with and without kernel-patch, using the descriped cross-compiler as well as the following https://github.com/offensive-security/gcc-arm-linux-gnueabihf-4.7) without success yet.

You can find the scripts for building a kernel in my radxa workspace. The workflow would look like this: ./getKernelSource.sh (This would also apply the descripted kernel patch). ./createKernelConfig.sh (creates the .config file and allows you to modify it, if needed) ./createBootImage.sh (compiles the kernel and creates a Boot-Image)

But as mentioned before, the created BootImage didn't worked for me so far. So I left these scripts out of the build-process and just used an extracted, working boot-image from a ubuntu-Image -> but of course without the descripted patch.

Are you able to build a working boot-Image? Maybe, you see what I'm doing wrong creating a boot-Image. It would be a great improvement to use a self created boot-Image, since it would be possible to build the kali-Image from scratch and modifications like this patch could be applied.

Anyway, maybe it would also be possible to apply this patch on the builded image? I don't know...

I want for sure be able to build my own kernel, but the next weeks, I don't have much time to search the error here, so any help would be very welcome! :-)

frep commented 9 years ago

jack from radxa wrote:

This is compatibility of chipsets to the aircrack-ng suite. http://www.aircrack-ng.org/doku.php?id=compatibility_drivers&DokuWiki=e03c68ced5941f1ea36274d781a0aa49

RTL8187L is supported by airodump for Linux, but need patch. RTL8188 is not supported.

I will try to patch it the next days... not much time left due to christmas

johndoesenior commented 9 years ago

Thanks dude, any chance you had time to play with it? i didn't succeed in making the monitoring mode working..

manu7irl commented 9 years ago

Hi everyone, thank you frep for your incredible work, And for continuing my first rock project. I have localy made some changes to my first script, I have embedded the kernel build commands for kali inside it. I will post my work as soon as possible. Keep up the good work.