Giter Site home page Giter Site logo

too many packets lost ... about scapy-fakeap HOT 3 CLOSED

rpp0 avatar rpp0 commented on July 28, 2024
too many packets lost ...

from scapy-fakeap.

Comments (3)

rpp0 avatar rpp0 commented on July 28, 2024

You are right; unfortunately Scapy is inherently slow at processing packets. This is because it will try to dissect each frame. If Scapy can't keep up, it will drop frames. I tried to mitigate the issue with the following line:

TCP.payload_guess = []

This removes the payload dissector for layers higher than TCP. You could try to do the same with the IP layer for slightly less overhead -- if you only need ICMP replies. So:

IP.payload_guess = []

Airbase-ng is written in C, uses libpcap, and does not automatically dissect, which makes it much faster at processing packets. If you require performance, libpcap is the way to go. If you quickly want to prototype or attack a Wi-Fi protocol and performance is not crucial, then scapy-fakeap will be more convenient :).

from scapy-fakeap.

kings-way avatar kings-way commented on July 28, 2024

Thanks for replying!
Actually, I am writing a tool making use of station probe packets to dynamically setup AP with the same SSID in probe packets. Yeah, it's a tool for pentest.
So, I have to provide stable Internet access for the stations.
Additionally, I translate dot11 frame to or from ethernet frame in my code. I think 'IP.payload_guess' may make some sense for me. I'll try it later.
Thanks again.

from scapy-fakeap.

rpp0 avatar rpp0 commented on July 28, 2024

You're welcome, sounds like a cool project too! I did the same thing a while ago with hostapd. Hostapd works by putting your interface in AP / master mode (which has the advantage of automatically responding to ACKs). Might be worth taking a look at as an alternative to airbase-ng.

from scapy-fakeap.

Related Issues (15)

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.