Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raw wifi packet injection to Npcap #85

Open
trancelover17 opened this issue Feb 21, 2018 · 11 comments
Open

Add raw wifi packet injection to Npcap #85

trancelover17 opened this issue Feb 21, 2018 · 11 comments
Labels
enhancement raw wifi Npcap's raw 802.11 WiFi frame capture feature

Comments

@trancelover17
Copy link

Hello! Does npcap support sending raw 802.11 packages to the radio broadcast? I form the packet: radiotap + 802.11 header, I send via the PacketSendPacket function, the packets accumulate in the buffer, and if the capture works, I see them. But on the radio broadcast there are not (I scan the second adapter).
If this function is implemented in npcap, tell me, please, how to call and use it correctly.

@dmiller-nmap
Copy link
Contributor

WiFi packet injection is not supported by Npcap at this time. Here is a different project that claims to be able to do this; I have not tested or investigated it myself: https://www.codeproject.com/Articles/28713/Packet-Injection-for-Windows

@gpotter2
Copy link

gpotter2 commented Jul 4, 2018

I wonder if it's possible to adapt such code in Npcap. May I try to have a look into that?

Edit: there is acutually no real code publicly available on that project :/ only examples on how to use a driver, which source isn’t included

@binarymaster
Copy link

@gpotter2 of course you can!

However Packet11 driver by Ryan Grevious is still closed-source, I left a comment and sent mail to him, maybe he would response.

I'm very interested in this feature too.

@gpotter2
Copy link

gpotter2 commented Jul 4, 2018

@binarymaster Great ! If you ever get any response, please forward it to me :)

@binarymaster
Copy link

However Packet11 driver by Ryan Grevious is still closed-source

It seems the driver got reversed: https://github.com/Felis-Sapiens/packet11

The author of this GitHub repository said he didn't tested it much, but I hope it will help us to get 802.11 packet injection feature with Npcap.

If you ever get any response, please forward it to me :)

Cc @gpotter2

@fyodor fyodor changed the title Wi-Fi packet injections Add raw wifi packet injection to Npcap May 19, 2020
@fyodor
Copy link
Member

fyodor commented May 19, 2020

I'm re-opening this as a tracking issue for a possible future raw wifi sending feature. It's interesting that Packet11 is allegedly able to do this using their filter driver. If we figure out how they do it (they mention that the API is "undocumented"), we could potentially add it to Npcap. And perhaps the technique could even be helpful in improving Npcap's limited raw wifi packet capture support.

@fyodor fyodor reopened this May 19, 2020
@gpotter2
Copy link

gpotter2 commented May 20, 2020

That would be awesome.

FTR the code linked above seems to have parts directly taken from the filter ndis example driver (since it's based on filtering tricks.. most likely an old version of those files). I wasn't able to make Packet11 work on my machine (you'll need to bypass signing, but the device seems to never be created. devicetree seems to confirm this).

@ghrist
Copy link

ghrist commented May 20, 2020 via email

@fyodor fyodor transferred this issue from nmap/nmap May 20, 2020
@fyodor fyodor added enhancement raw wifi Npcap's raw 802.11 WiFi frame capture feature labels May 20, 2020
@binarymaster
Copy link

but the device seems to never be created. devicetree seems to confirm this

@gpotter2 it's a filter driver, afaik these shouldn't be in the device tree, isn't it? They should be in network adapter properties instead, along with IP protocols, and etc.

@gpotter2
Copy link

Yeah you're right, pretty sure I meant the filter driver never showed up in the device properties, nor was I able to enable it.

@dozan0
Copy link

dozan0 commented Feb 22, 2022

Is there any progress? I really need this feature. I need to transfer data from one wifi adapter to another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement raw wifi Npcap's raw 802.11 WiFi frame capture feature
Projects
None yet
Development

No branches or pull requests

7 participants