en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nl en en en en en en en en en en en en it de de en en en en nl en en en en en en en en en en en uk en uk en en en en en en en en en nl en en en en en en en en it en en en en en en en nl en en en en en en en en en en en en en en en nl en en en en en en en en it en en en en en en en nl en en en en en en en en en en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Alan Earnshaw - "you can hook the TCP/IP stack and monitor packets" ?
4 Oct 2001, 10:24 PM
alan, you originally posted this at
just a thought, but you can hook the tcp/ip stack and monitor the packets that pass through your computer. although that's not the raw data stream, it might give you the information you need.
of course, a tcp/ip session can send a lot of data across the line, and you might get buried trying to find what you're looking for.
"hook the tcp/ip stack" - how !?!?
id be very interested in this sort of thing
Join Date: Apr 2000
4 Oct 2001, 10:41 PM
Windows doesn't natively allow a network card to drop in promiscuios mode
to do this, you need a packet driver.
Almost all packet sniffers use WinPcab NDIS Packet Capture Driver, they have drivers
for all version of windows. All code is in C, and as far as I know nobody has
converted it to PB. I was going to start converting it at one time but got
side tracked. If you need some help email me privately: [email protected]
[This message has been edited by Gregery D Engle (edited October 04, 2001).]
Join Date: Sep 2000
5 Oct 2001, 12:15 AM
Greg, thanks - I thought he may have been referring to some other funky technique that i was unaware of
I haven't been able to port the Winpcap headers to PB either as Im very inexperienced and 100% self-taught when it comes to C/C++, but every night before I go to sleep I pray that somebody here who knows what they're doing will port it over to my beloved PB, to make my life complete.
The best Ive been able to do so far is a C executable that uses the winpcap driver (a VERY cool driver!), and when it receives data from the driver, it sends it to my Powerbasic DLL. Its working now, but its very 'raw' and im not sure how stable it would be, Ive only tested it with bugger-all traffic on my 10mbps LAN. I would love to just have the one Powerbasic exe receiving the data though, especially as I dont have much freedom with the C exe due to my own limitations in that I can't code in C to save my life
Join Date: Jun 2001
5 Oct 2001, 08:02 AM
I have found that WinPcap has 'issues' to say the least when it comes to Windows 2000
and some devices - such as modems. In fact, it won't even bind to them!
The new version of it, recently released, doesn't seem to fix this either.
Have you looked at the new APIs in Windows 2000 and XP for Packet Filtering et al ?
Join Date: Sep 2000
6 Oct 2001, 02:39 AM
Nathan no I haven't looked at the Win2K/XP packet API's, I know you can virtually get 'raw sockets' out of those similar to 'nix in that you can build your own packets (and thus the script kiddies can spoof their IPs etc, bleh!) - I think that may do more harm than good
But im still on NT4 so Ive never dabbled in any Win2K/XP-specific APIs --- im installing Win2K next week though when I get a new development machine
So WinPCap it is for me -- I haven't experienced any 'issues' with it though? It works fine on all the machines that Ive ever tested it on
Join Date: Jun 2001
7 Oct 2001, 08:19 AM
I have had problems getting it to Bind to a Dialup Adapter (as in any modem)..
But only on Win2k/XP - apparently it is some sort of limitation with the 'mini NDIS driver' that Pcaplib uses.
This is on their FAQ page @ http://netgroup-serv.polito.it/winpcap/misc/faq.htm :
Q-4: Can I use WinPcap on a PPP connection?
A: We have tested WinPcap on PPP connections under Windows 95, Windows 98 and Windows ME. In Windows 95, due to a bug in NDIS, WinPcap sometimes resets the PPP connection. In Windows 98/ME this bug appears to be corrected, and WinPcap seems to work properly. Under Windows NT and Windows 2000 there are problems with the binding process, that prevents a protocol driver from working properly on the WAN adapter.
Good luck with the new box!
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 10:34 PM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.