This library implements the fundamentals needed to communicate with the WinPcap Remote Capture Daemon. It currently supports authenticating to the service using either NULL-, or Password-based authentication. In addition it has the capabilities to list the interfaces that may be used for sniffing.
The library consist of classes handling
Request and classes
Response. The communication with the service is
handled by the
Comm class, and the main interface for script
writers is kept under the
The following code snippet illustrates how to connect to the service and extract information about network interfaces:
local helper = rpcap.Helper:new(host, port) helper:connect() helper:login() helper:findAllInterfaces() helper:close()
For a more complete example, consult the rpcap-info.nse script.
|"Patrik Karlsson <firstname.lastname@example.org>"|