Giter Site home page Giter Site logo

rpp0 / scapy-fakeap Goto Github PK

View Code? Open in Web Editor NEW
234.0 234.0 58.0 219 KB

Fake wireless Access Point (AP) implementation using Python and Scapy, intended for convenient testing of 802.11 protocols and implementations.

License: GNU General Public License v2.0

Python 100.00%

scapy-fakeap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scapy-fakeap's Issues

Running a FakeAccessPoint() make my system freeze

I have this program

from fakeap import * ap = FakeAccessPoint("mon0", "testap") ap.run()

I have this interface

sudo iw dev wlo1 interface add mon0 type monitor sudo ip link set mon0 up
I have the same issue as MrSentex (Issue #10 )

I haven't any more information. I looked at the process ressource consumption in top, and everything seems to be ok. Maybe a driver issue (iwlwifi), i have several errors in kernel.log

Could not find IP 224.0.0.251 in ARP table.

When I started a FakeAccessPoint it does not stop getting errors of this style:
Could not find IP 117.208.55.170 in ARP table.
Could not find IP 239.255.255.250 in ARP table.
Could not find IP 239.255.255.250 in ARP table.
Could not find IP 239.255.255.250 in ARP table.
Could not find IP 239.255.255.250 in ARP table.

Substitute sendp with conf.L2socket.send [suggestion / enhancement]

I saw that for sending packets the project uses the sendp method from scapy.
I've read in another issue that this project is not necessarily an efficient AP implementation but is rather focusing on versatility.
Despite that, sendp is a slow method for injecting packets, especially if it is a lot of packets. This is because for every sendp call scapy opens a new socket, sends packets and then closes the socket again. Opening and closing sockets is time consuming.

Alternatively you can open an L2socket at the very start of the program and use only that socket for sending packets.

what's the use of get_radiotap_header ?

Radio_tap_header is gnerated by the receiver wireless card . I tried this function and found no use . Infact the reciever wireless card recieves the radio_tap_header according to properties of the sender wireless card like channel , transmission rate etc . Please explain the use of get_radiotap_header and correct me if i am wrong ?

Not showing up on other devices

Not sure if it's still supported, and i had to change many things. But now that everything looks good I cant connect to the AP nor just see it from other devices

rpyutils directory missing after install

Hi,

after a python setup.py install your subdirectory rpyutils is missing.

I'm not yet familar with python setuptools to send you a patch right now.
Guess you are faster then I :)

Regards
Andurin

Unknown error at monitor interface: NameError

Had these lines :

Unknown error at monitor interface: NameError("global name 'EAP' is not defined",)
Unknown error at monitor interface: NameError("global name 'EAPOL' is not defined",)

Fixed them by adding this line in callbacks.py
from scapy.layers.eap import EAPOL, EAP

got a question..

Hey there,
Is the AP that is created under the scapy TCP/IP stack or the Native TCP/IP stack? If it is under the scapy stack then how can I reject packets to the AP? And if it is not, is there a way to create an AP under python which can be integrated with the native tcp/ip stack and can reject packets acting like a traditional firewall?

too many packets lost ...

Have you noticed that the packet loss rate is a little high?
Many ICMP (ping) packets between station and the fakeap may be lost, for me, more than 50% sometimes. And I am sure it's not the wifi-adapter's problem.
If I use airbase-ng to setup an AP, then the situation will be much better.

I am not an expert in the network field.
So, I am just curious about that whether it is the problem of scapy or the way you handle dot11 packets?

Cannot start dhcp interface on tun interface

Hi,

When I starting the fakeap, tun interface created successfully but I am not able start dhcp server for that interface. Root cause is mac address is not assigned when fakeap is created. When I try to assign mac address using "ip link", it throwed errors.

I am using isc-dhcp-server in ubuntu to assign ip address for the clients connecting to fakeap

Can you please help

Switching to BSD / MIT?

Hello,

I'm the author of wifiphisher, a tool for automated phishing attacks. I'm considering replacing hostapd in our codebase with your project. There's a ticker for that here.

Wifiphisher is released under the MIT license though while scapy-fakeap is GPLv2. This would lead to releasing all of wifiphisher's next versions under GPL.

Do you consider switching to MIT or BSD for scapy-fakeap so we can avoid that?

Thank you,

George

rpyutils module python reqirement

When I import the fakeap module and run the script It tells me to install rpyutils.
image

I can't install that module as well.
image

I am using a Kali Linux 2021.2 VM.

Remove airmon dependency

The airmon dependency should disappear over time. Instead, the libnl interface should be used to configure the driver.

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.