mac80211 kernel module modification for Linux

Source: Internet
Author: User

The mac80211 kernel module implements the process of processing the 802.11 protocol. The content in the Mlme.c file implements the processing of the Deauth management frame. Considering the Deauth attack there is still no good defense method (supposedly 802.11w, but I have not seen the application of his device, why?) Solution), Aireplay-ng tools can still easily deauth customers offline, so want to modify the client's kernel source code to prevent Deauth to the client. (AP needs to be modified for AP)

The method précis-writers is as follows:

1. To compile kernel modules, you need to download the operating system source code and compile make;

2. Find/net/mac80211/mlme.c Modify the parts of the processing deauth such as:

There may be a problem with the modification here, cfg80211_rx_mlme_mgmt This function is not carefully read.

2. Go back to the main source directory of the kernel, make modules and make Modules_install

3.reboot

Attention:

Here the main record modification method, modify the kernel to be cautious.

When the kernel compiles make menuconfig, be careful to select the required driver installation. Compilation method reference 1, kernel source code download reference 2.

Reference documents:

1. Introduction and combat of Linux driver development

2. http://www.backtrack.org.cn/thread-12670-1-1.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.