Giter Club home page Giter Club logo

zjlywjh001 / bcm-public Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seemoo-lab/bcm-public

0.0 1.0 0.0 623.91 MB

DEPRECATED: Monitor Mode and Firmware patching framework for the Google Nexus 5, development moved to: https://github.com/seemoo-lab/nexmon

Makefile 0.29% Java 0.02% Shell 0.06% C# 0.04% Roff 0.51% Python 0.11% HTML 3.71% CSS 0.01% C 87.04% Objective-C 0.42% C++ 4.50% Assembly 2.43% CMake 0.01% Perl 6 0.50% Prolog 0.10% Perl 0.12% Go 0.09% Lex 0.01% Yacc 0.03% XS 0.01%

bcm-public's Introduction

NexMon logo

What is NexMon?

NexMon is a firmware patching framework for the BCM4339 WiFi firmware of Nexus 5 smartphones. It's main intension was to enable monitor mode and frame injection, which is already working quite well. Nevertheless, we also publish many example patches that allow to dive into firmware reverse engineering and firmware patching. Especially, the ability to write firmware patches in C makes it easy to use, also for beginners.

If you only intend to activate monitor mode on a device using the bcmdhd driver, take a look at the following commit: ed11c18

News

Related Projects

WARNING

Our software may damage your hardware and may void your hardware’s warranty! You use our tools at your own risk and responsibility! If you don't like these terms, don't use nexmon!

What this Repo contains

  • A bootable boot ROM for Android
  • Everything needed to build the ROM by yourself

Requirements

  • Nexus 5 with bcm4339 chipset
  • Your bootloader needs to be unlocked (no root required)
  • Android 6.0 or 6.0.1
  • Android Tools (adb + fastboot)

To build your own patches

  • Xubuntu 14.04.4 64-Bit (do not use a different version to avoid compilation problems)
  • set the environment variable NDK_ROOT to an installation of android-ndk-r11c (using exactly this version allows to build all tools without problems)

Steps needed to run the boot.img on your phone

  • Download the boot.img (this project is still in heavy development, the monitor mode should work on the boot.img in this commit though: 2c39825)
  • adb reboot bootloader
  • fastboot boot boot.img
    • without the flash parameter, this boot image will be reset to the previous one on the next reboot
  • fastboot reboot
  • adb shell
  • su
  • insmod /nexmon/bcmdhd.ko
  • ifconfig wlan0 up
  • nexutil -m true this tells the firmware to activate monitor mode
  • do whatever you want, e.g. run tcpdump: /nexmon/bin/tcpdump -i wlan0 -s0

Steps to build your own boot.img

  • source setup_env.sh
  • make cleanboot
  • make boot.img

Steps to create your own firmware patches

Caveats

  • The current patch is unable to handle aggregated frames (A-MSDU's). This makes it impossible to receive frames in an 802.11n/802.11ac enabled environment.
  • Current Monitor Mode was tested and works for 802.11n with 20MHz wide channels (2.4 as well as 5GHz), 40MHz channels seems to be a problem. We keep working on it ;-)
  • Using this patch should enalbe iw to set 40MHz channels. It currently only works for 5GHz frequencies. Capturing WiFi packets which use mutliple spatial streams is still not possible, this is caused by a hardware limitation of the Nexus 5

Read our papers

Feel free to read and reference our papers on the development of this project

Contact

bcm-public's People

Contributors

matthiasseemoo avatar danielaw avatar c0ffeec0ffee avatar

Watchers

Jarvis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.