├── ReleaseNotes-HPC.txt ├── TroubleShootingGuide-HPC.txt ├── VisitationFlowChart.vsd ├── capture-client ├── 7za.exe ├── Analyzer.cpp ├── Analyzer.h ├── ApplicationConfig │ └── Applications.conf ├── ApplicationPlugin.h ├── ApplicationPlugins │ ├── ClientConfigParser │ │ ├── Application_ClientConfigManager.cpp │ │ ├── Application_ClientConfigManager.h │ │ ├── ClientConfigParser.vcproj │ │ ├── FileDownloader.cpp │ │ ├── FileDownloader.h │ │ ├── ProcessHandler.cpp │ │ └── ProcessHandler.h │ ├── ComHelper.h │ ├── InternetExplorer │ │ ├── Application_InternetExplorer.cpp │ │ ├── Application_InternetExplorer.h │ │ ├── Application_InternetExplorer.vcproj │ │ ├── InternetExplorerInstance.cpp │ │ └── InternetExplorerInstance.h │ ├── InternetExplorerBulk │ │ ├── Application_InternetExplorerBulk.cpp │ │ ├── Application_InternetExplorerBulk.h │ │ ├── Application_InternetExplorerBulk.vcproj │ │ ├── InternetExplorerInstanceBulk.cpp │ │ └── InternetExplorerInstanceBulk.h │ └── Safari │ │ ├── Application_Safari.cpp │ │ ├── Application_Safari.h │ │ ├── Application_Safari.sln │ │ ├── Application_Safari.suo │ │ └── Application_Safari.vcproj ├── COPYING ├── CaptureClient.bat ├── CaptureClient.cpp ├── CaptureClient.rc ├── CaptureClient.sln ├── CaptureClient.vcproj ├── CaptureGlobal.cpp ├── CaptureGlobal.h ├── Element.h ├── ErrorCodes.h ├── EventController.cpp ├── EventController.h ├── EventList.h ├── ExclusionLists │ ├── ConnectionMonitor.exl │ ├── FileMonitor.exl │ ├── ProcessMonitor.exl │ ├── RegistryMonitor.exl │ └── repository │ │ ├── Firefox150 │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ ├── IE6SP2 │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ ├── Opera800 │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ ├── Safari │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ ├── WinXPSP2 │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ ├── chrome │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl │ │ └── clean │ │ ├── FileMonitor.exl │ │ ├── ProcessMonitor.exl │ │ └── RegistryMonitor.exl ├── FileMonitor.cpp ├── FileMonitor.h ├── FileMonitorInstallation.inf ├── FileUploader.cpp ├── FileUploader.h ├── KernelDrivers │ ├── CaptureKernelDrivers.sln │ ├── CaptureKernelDrivers.suo │ └── CaptureKernelDrivers │ │ ├── CaptureKernelDrivers.vcproj │ │ ├── CaptureKernelDrivers.vcproj.YOUR-5EYJ69CYVJ.ramon.user │ │ ├── Common │ │ ├── ConnectionChecker.h │ │ ├── EventList.c │ │ ├── EventList.h │ │ ├── EventRingList.c │ │ ├── EventRingList.h │ │ ├── HashMap.c │ │ ├── HashMap.h │ │ ├── SharedBuffer.c │ │ ├── SharedBuffer.h │ │ └── Sources │ │ ├── FileMonitor │ │ ├── CaptureFileMonitor.c │ │ └── Sources │ │ ├── NetworkMonitor │ │ ├── CaptureConnectionMonitor.c │ │ ├── CaptureConnectionMonitor.h │ │ ├── CaptureTdiEventHandlers.c │ │ ├── CaptureTdiEventHandlers.h │ │ ├── CaptureTdiIrpHandlers.c │ │ ├── CaptureTdiIrpHandlers.h │ │ ├── Connection.c │ │ ├── Connection.h │ │ ├── ConnectionManager.c │ │ ├── ConnectionManager.h │ │ ├── EventHandlerManager.c │ │ ├── EventHandlerManager.h │ │ └── Sources │ │ ├── ProcessMonitor │ │ ├── CaptureProcessMonitor.c │ │ └── Sources │ │ ├── RegistryMonitor │ │ ├── CaptureRegistryMonitor.c │ │ └── Sources │ │ └── dirs ├── Logger.cpp ├── Logger.h ├── Makefile ├── MiniFilter.h ├── Monitor.cpp ├── Monitor.h ├── NetworkAdapter.cpp ├── NetworkAdapter.h ├── NetworkMonitor.cpp ├── NetworkMonitor.h ├── NetworkPacketDumper.cpp ├── NetworkPacketDumper.h ├── Observable.h ├── OptionsManager.cpp ├── OptionsManager.h ├── Permission.cpp ├── Permission.h ├── PluginExports.h ├── PluginTest.cpp ├── PluginTest.h ├── Precompiled.h ├── ProcessManager.cpp ├── ProcessManager.h ├── ProcessMonitor.cpp ├── ProcessMonitor.h ├── ReadMe-BAT.txt ├── ReadMe-HPC.txt ├── RegistryMonitor.cpp ├── RegistryMonitor.h ├── Server.cpp ├── Server.h ├── ServerEventDelegator.cpp ├── ServerReceive.cpp ├── ServerReceive.h ├── SetupScript │ ├── CaptureBAT-Setup.nsi │ └── CaptureClient-Setup.nsi ├── StringHelper.cpp ├── StringHelper.h ├── Thread.h ├── Time.cpp ├── Time.h ├── Tools │ └── KernelDriverTester │ │ ├── File.cpp │ │ ├── File.h │ │ ├── KernelDriver.cpp │ │ ├── KernelDriver.h │ │ ├── KernelDriverTester.cpp │ │ ├── KernelDriverTester.vcproj │ │ ├── Log.cpp │ │ ├── Log.h │ │ ├── Precompiled.h │ │ └── targetver.h ├── UnitTests │ ├── CaptureClient_UnitTests.cpp │ ├── CaptureClient_UnitTests.vcproj │ ├── Logger_UnitTests.h │ ├── OptionsManager_UnitTests.h │ └── ProcessManager_UnitTests.h ├── Updater.cpp ├── Updater.h ├── Url.cpp ├── Url.h ├── VisitEvent.h ├── Visitor.cpp ├── Visitor.h ├── capture.ico ├── compile_README.txt ├── resource └── resource.h ├── capture-server-postprocessors └── pcap │ ├── COPYING │ ├── Readme.txt │ ├── build.xml │ ├── lib │ ├── CaptureServer.jar │ ├── DNSMapper.jar │ ├── FFDetect.jar │ ├── HTTPExtractor.jar │ ├── dnsjava-2.0.6.jar │ └── jpcap.jar │ └── pcap │ └── PcapPostprocessor.java ├── capture-server ├── .classpath ├── .project ├── COPYING ├── Readme.txt ├── ServerClassDiagram.vsd ├── build.xml ├── capture │ ├── Client.java │ ├── ClientEventController.java │ ├── ClientFileReceiver.java │ ├── ClientsController.java │ ├── ClientsPinger.java │ ├── ConfigFile.java │ ├── ConfigManager.java │ ├── Database.java │ ├── DefaultPostprocessor.java │ ├── DefaultPreprocessor.java │ ├── ERROR_CODES.java │ ├── Element.java │ ├── EventObserver.java │ ├── EventsController.java │ ├── ExclusionList.java │ ├── FactoryException.java │ ├── Logger.java │ ├── MockClient.java │ ├── MockMsgParser.java │ ├── MockVirtualMachineServer.java │ ├── MySQLDatabase.java │ ├── NoVirtualMachineServer.java │ ├── ObjectStateChange.java │ ├── PostgreSQLDatabase.java │ ├── Postprocessor.java │ ├── PostprocessorFactory.java │ ├── Preprocessor.java │ ├── PreprocessorFactory.java │ ├── ProcessStateChange.java │ ├── Server.java │ ├── StateChange.java │ ├── StateChangeHanderTest.java │ ├── StateChangeHandler.java │ ├── StateChangeTest.java │ ├── Stats.java │ ├── URL_STATE.java │ ├── Updater.java │ ├── Url.java │ ├── UrlFactory.java │ ├── UrlGroup.java │ ├── UrlGroupsController.java │ ├── UrlsController.java │ ├── VMwareServer.java │ ├── VirtualMachine.java │ ├── VirtualMachineServer.java │ ├── VirtualMachineServerController.java │ ├── VirtualMachineServerFactory.java │ └── VirtualMachinesStateChecker.java ├── compile_README.txt ├── compile_revert_linux.sh ├── compile_revert_win32.bat ├── config.xml ├── config.xsd ├── input_urls_example.txt ├── lib │ ├── commons-dbcp-1.2.2.jar │ ├── commons-pool-1.4.jar │ ├── junit-4.4.jar │ ├── mysql-connector-java-5.1.7-bin.jar │ └── postgresql-8.3-604.jdbc4.jar ├── postprocessor_README.txt ├── preprocessor_README.txt ├── revert.c └── utilities │ ├── capture_mysql.sql │ ├── capture_postgresql.sql │ ├── create_mysql_database.sh │ ├── create_postgresql_database.sh │ ├── remove_mysql_database.sh │ └── remove_postgresql_database.sh └── vendor ├── ZipArchive ├── Aes.cpp ├── Aes.h ├── Appnote.txt ├── BaseLibCompressor.cpp ├── BaseLibCompressor.h ├── BytesWriter.h ├── Bzip2Compressor.cpp ├── Bzip2Compressor.h ├── DeflateCompressor.cpp ├── DeflateCompressor.h ├── DirEnumerator.cpp ├── DirEnumerator.h ├── FileFilter.cpp ├── FileFilter.h ├── FileInfo.h ├── Hmac.cpp ├── Hmac.h ├── License.txt ├── RandomPool.cpp ├── RandomPool.h ├── Sha1.cpp ├── Sha1.h ├── Wildcard.cpp ├── Wildcard.h ├── ZipAbstractFile.h ├── ZipAesCryptograph.cpp ├── ZipAesCryptograph.h ├── ZipArchive.cpp ├── ZipArchive.h ├── ZipArchive.rc ├── ZipArchive.sln ├── ZipArchive.vcproj ├── ZipAutoBuffer.cpp ├── ZipAutoBuffer.h ├── ZipBaseException.h ├── ZipCallback.h ├── ZipCallbackProvider.h ├── ZipCentralDir.cpp ├── ZipCentralDir.h ├── ZipCollections.h ├── ZipCollections_mfc.h ├── ZipCollections_stl.h ├── ZipCompatibility.cpp ├── ZipCompatibility.h ├── ZipCompressor.cpp ├── ZipCompressor.h ├── ZipCrc32Cryptograph.cpp ├── ZipCrc32Cryptograph.h ├── ZipCryptograph.cpp ├── ZipCryptograph.h ├── ZipException.cpp ├── ZipException.h ├── ZipExport.h ├── ZipExtraData.cpp ├── ZipExtraData.h ├── ZipExtraField.cpp ├── ZipExtraField.h ├── ZipFile.h ├── ZipFileHeader.cpp ├── ZipFileHeader.h ├── ZipFileMapping.h ├── ZipFileMapping_lnx.h ├── ZipFileMapping_win.h ├── ZipFile_mfc.cpp ├── ZipFile_mfc.h ├── ZipFile_stl.cpp ├── ZipFile_stl.h ├── ZipMemFile.cpp ├── ZipMemFile.h ├── ZipMutex.h ├── ZipMutex_lnx.h ├── ZipMutex_win.h ├── ZipPathComponent.h ├── ZipPathComponent_lnx.cpp ├── ZipPathComponent_win.cpp ├── ZipPlatform.h ├── ZipPlatformComm.cpp ├── ZipPlatform_lnx.cpp ├── ZipPlatform_win.cpp ├── ZipStorage.cpp ├── ZipStorage.h ├── ZipString.cpp ├── ZipString.h ├── ZipStringStoreSettings.h ├── ZipString_mfc.h ├── ZipString_stl.h ├── _features.h ├── _platform.h ├── _readme.txt ├── bzip2 │ ├── blocksort.c │ ├── bzcompress.c │ ├── bzlib.c │ ├── bzlib.h │ ├── bzlib_private.h │ ├── crctable.c │ ├── decompress.c │ ├── huffman.c │ └── randtable.c ├── resource.h ├── std_mfc.h ├── std_stl.h ├── stdafx.h └── zlib │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zlib.def │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── expat ├── COPYING ├── Changes ├── MANIFEST ├── Makefile.in ├── README ├── amiga │ ├── Makefile │ ├── README.txt │ ├── expat.xml │ ├── expat_lib.c │ ├── expat_vectors.c │ ├── include │ │ ├── inline4 │ │ │ └── expat.h │ │ ├── interfaces │ │ │ └── expat.h │ │ ├── libraries │ │ │ └── expat.h │ │ └── proto │ │ │ └── expat.h │ ├── launch.c │ └── stdlib.c ├── bcb5 │ ├── README.txt │ ├── all_projects.bpg │ ├── elements.bpf │ ├── elements.bpr │ ├── elements.mak │ ├── expat.bpf │ ├── expat.bpr │ ├── expat.mak │ ├── expat_static.bpf │ ├── expat_static.bpr │ ├── expat_static.mak │ ├── expatw.bpf │ ├── expatw.bpr │ ├── expatw.mak │ ├── expatw_static.bpf │ ├── expatw_static.bpr │ ├── expatw_static.mak │ ├── libexpat_mtd.def │ ├── libexpatw_mtd.def │ ├── makefile.mak │ ├── outline.bpf │ ├── outline.bpr │ ├── outline.mak │ ├── setup.bat │ ├── xmlwf.bpf │ ├── xmlwf.bpr │ └── xmlwf.mak ├── configure ├── configure.in ├── conftools │ ├── PrintPath │ ├── ac_c_bigendian_cross.m4 │ ├── config.guess │ ├── config.sub │ ├── expat.m4 │ ├── get-version.sh │ ├── install-sh │ ├── libtool.m4 │ ├── ltmain.sh │ └── mkinstalldirs ├── doc │ ├── expat.png │ ├── reference.html │ ├── style.css │ ├── valid-xhtml10.png │ ├── xmlwf.1 │ └── xmlwf.sgml ├── examples │ ├── elements.c │ ├── elements.dsp │ ├── outline.c │ └── outline.dsp ├── expat.dsw ├── expat_config.h.in ├── lib │ ├── Makefile.MPW │ ├── amigaconfig.h │ ├── ascii.h │ ├── asciitab.h │ ├── expat.dsp │ ├── expat.h │ ├── expat_external.h │ ├── expat_static.dsp │ ├── expatw.dsp │ ├── expatw_static.dsp │ ├── iasciitab.h │ ├── internal.h │ ├── latin1tab.h │ ├── libexpat.def │ ├── libexpatw.def │ ├── macconfig.h │ ├── nametab.h │ ├── utf8tab.h │ ├── winconfig.h │ ├── xmlparse.c │ ├── xmlrole.c │ ├── xmlrole.h │ ├── xmltok.c │ ├── xmltok.h │ ├── xmltok_impl.c │ ├── xmltok_impl.h │ └── xmltok_ns.c ├── tests │ ├── README.txt │ ├── benchmark │ │ ├── README.txt │ │ ├── benchmark.c │ │ ├── benchmark.dsp │ │ └── benchmark.dsw │ ├── chardata.c │ ├── chardata.h │ ├── minicheck.c │ ├── minicheck.h │ ├── runtests.c │ ├── runtestspp.cpp │ └── xmltest.sh ├── vms │ ├── README.vms │ ├── descrip.mms │ └── expat_config.h ├── win32 │ ├── MANIFEST.txt │ ├── README.txt │ └── expat.iss └── xmlwf │ ├── codepage.c │ ├── codepage.h │ ├── ct.c │ ├── filemap.h │ ├── readfilemap.c │ ├── unixfilemap.c │ ├── win32filemap.c │ ├── xmlfile.c │ ├── xmlfile.h │ ├── xmlmime.c │ ├── xmlmime.h │ ├── xmltchar.h │ ├── xmlurl.h │ ├── xmlwf.c │ ├── xmlwf.dsp │ └── xmlwin32url.cxx └── wpcap ├── Examples-pcap ├── GNUmakefile ├── MakeaAll.dsw ├── UDPdump │ ├── GNUmakefile │ ├── UDPdump.dsp │ ├── UDPdump.dsw │ └── udpdump.c ├── basic_dump │ ├── GNUmakefile │ ├── basic_dump.c │ ├── basic_dump.dsp │ └── basic_dump.dsw ├── basic_dump_ex │ ├── GNUmakefile │ ├── basic_dump_ex.c │ ├── basic_dump_ex.dsp │ └── basic_dump_ex.dsw ├── iflist │ ├── GNUmakefile │ ├── iflist.c │ ├── iflist.dsp │ └── iflist.dsw ├── pcap_filter │ ├── GNUmakefile │ ├── Makefile.unix │ ├── pcap_filter.c │ ├── pcap_filter.dsp │ └── pcap_filter.dsw ├── pktdump_ex │ ├── GNUmakefile │ ├── pktdump_ex.c │ ├── pktdump_ex.dsp │ └── pktdump_ex.dsw ├── readfile │ ├── GNUmakefile │ ├── readfile.c │ ├── readfile.dsp │ └── readfile.dsw ├── readfile_ex │ ├── GNUmakefile │ ├── readfile_ex.c │ ├── readfile_ex.dsp │ └── readfile_ex.dsw ├── savedump │ ├── GNUmakefile │ ├── savedump.c │ ├── savedump.dsp │ └── savedump.dsw └── sendpack │ ├── GNUmakefile │ ├── sendpack.c │ ├── sendpack.dsp │ └── sendpack.dsw ├── Examples-remote ├── MakeaAll.dsw ├── PacketDriver │ ├── GetMacAddress │ │ ├── GetMacAddress.c │ │ └── GetMacAddress.dsp │ ├── TestPacketCapture │ │ ├── TestPacketCapture.c │ │ └── TestPacketCapture.dsp │ ├── TestPacketSend │ │ ├── TestPacketSend.c │ │ └── TestPacketSend.dsp │ └── readme.txt ├── UDPdump │ ├── UDPdump.dsp │ ├── UDPdump.dsw │ └── udpdump.c ├── UserLevelBridge │ ├── UserBridge.c │ ├── UserBridge.dsp │ └── UserBridge.dsw ├── iflist │ ├── iflist.c │ ├── iflist.dsp │ └── iflist.dsw ├── misc │ ├── MakeaAll.dsw │ ├── basic_dump.c │ ├── basic_dump.dsp │ ├── basic_dump_ex.c │ ├── basic_dump_ex.dsp │ ├── readfile.c │ ├── readfile.dsp │ ├── readfile_ex.c │ ├── readfile_ex.dsp │ ├── savedump.c │ ├── savedump.dsp │ ├── sendpack.c │ └── sendpack.dsp ├── pcap_filter │ ├── pcap_filter.c │ ├── pcap_filter.dsp │ └── pcap_filter.dsw ├── pktdump_ex │ ├── pktdump_ex.c │ ├── pktdump_ex.dsp │ └── pktdump_ex.dsw ├── sendcap │ ├── sencap.dsw │ ├── sendcap.c │ └── sendcap.dsp ├── smp_1 │ ├── smp_1.c │ ├── smp_1.dsp │ └── smp_1.dsw └── tcptop │ ├── tcptop.c │ ├── tcptop.dsp │ └── tcptop.dsw ├── Include ├── Devioctl.h ├── Gnuc.h ├── Ntddndis.h ├── Ntddpack.h ├── Packet32.h ├── Win32-Extensions.h ├── bittypes.h ├── bucket_lookup.h ├── count_packets.h ├── ip6_misc.h ├── memory_t.h ├── normal_lookup.h ├── pcap-bpf.h ├── pcap-int.h ├── pcap-stdinc.h ├── pcap.h ├── remote-ext.h ├── tcp_session.h ├── time_calls.h └── tme.h ├── Lib ├── Packet.lib ├── libpacket.a ├── libwpcap.a └── wpcap.lib └── docs ├── WinPcap_docs.html └── html ├── Packet_8h-source.html ├── Packet_8h.html ├── Win32-Extensions_8h-source.html ├── Win32-Extensions_8h.html ├── annotated.html ├── daemon_8h-source.html ├── daemon_8h.html ├── deprecated.html ├── doxygen.png ├── doxygen__groups_8txt.html ├── dump.gif ├── encoding.gif ├── fileconf_8h-source.html ├── fileconf_8h.html ├── files.html ├── ftv2blank.png ├── ftv2doc.png ├── ftv2folderclosed.png ├── ftv2folderopen.png ├── ftv2lastnode.png ├── ftv2link.png ├── ftv2mlastnode.png ├── ftv2mnode.png ├── ftv2node.png ├── ftv2plastnode.png ├── ftv2pnode.png ├── ftv2vertline.png ├── funcs_2pcap_8h-source.html ├── funcs_2pcap_8h.html ├── functions.html ├── functions_vars.html ├── globals.html ├── globals_0x62.html ├── globals_0x63.html ├── globals_0x64.html ├── globals_0x65.html ├── globals_0x66.html ├── globals_0x67.html ├── globals_0x68.html ├── globals_0x69.html ├── globals_0x6a.html ├── globals_0x6b.html ├── globals_0x6d.html ├── globals_0x6e.html ├── globals_0x6f.html ├── globals_0x70.html ├── globals_0x72.html ├── globals_0x73.html ├── globals_0x74.html ├── globals_0x75.html ├── globals_defs.html ├── globals_enum.html ├── globals_eval.html ├── globals_func.html ├── globals_type.html ├── globals_vars.html ├── group__NPF.html ├── group__NPF__code.html ├── group__NPF__include.html ├── group__compilation.html ├── group__internals.html ├── group__language.html ├── group__packetapi.html ├── group__remote.html ├── group__remote__auth__methods.html ├── group__remote__open__flags.html ├── group__remote__pri__func.html ├── group__remote__pri__struct.html ├── group__remote__samp__methods.html ├── group__remote__source__ID.html ├── group__remote__source__string.html ├── group__remote__struct.html ├── group__remotefunc.html ├── group__wpcap.html ├── group__wpcap__def.html ├── group__wpcap__tut.html ├── group__wpcap__tut1.html ├── group__wpcap__tut2.html ├── group__wpcap__tut3.html ├── group__wpcap__tut4.html ├── group__wpcap__tut5.html ├── group__wpcap__tut6.html ├── group__wpcap__tut7.html ├── group__wpcap__tut8.html ├── group__wpcap__tut9.html ├── group__wpcapfunc.html ├── group__wpcapsamps.html ├── incs_2pcap_8h-source.html ├── incs_2pcap_8h.html ├── index.hhc ├── index.hhk ├── index.hhp ├── index.html ├── internals-arch.gif ├── jitter_8h-source.html ├── jitter_8h.html ├── main.html ├── main_8txt.html ├── modules.html ├── npf-dump.gif ├── npf-ndis.gif ├── npf-npf.gif ├── pages.html ├── pcap-remote_8h-source.html ├── pcap-remote_8h.html ├── remote-ext_8h-source.html ├── remote-ext_8h.html ├── rpcapd_8h-source.html ├── rpcapd_8h.html ├── stats.gif ├── stats_wpcap.gif ├── structJIT__BPF__Filter.html ├── structPacketHeader.html ├── struct__DEVICE__EXTENSION.html ├── struct__INTERNAL__REQUEST.html ├── struct__OPEN__INSTANCE.html ├── struct__PACKET__RESERVED.html ├── struct____CPU__Private__Data.html ├── structactive__pars.html ├── structactivehosts.html ├── structbinary__stream.html ├── structdaemon__slpars.html ├── structpacket__file__header.html ├── structpcap__addr.html ├── structpcap__file__header.html ├── structpcap__if.html ├── structpcap__pkthdr.html ├── structpcap__rmtauth.html ├── structpcap__samp.html ├── structpcap__send__queue.html ├── structpcap__stat.html ├── structrpcap__auth.html ├── structrpcap__filter.html ├── structrpcap__filterbpf__insn.html ├── structrpcap__findalldevs__if.html ├── structrpcap__findalldevs__ifaddr.html ├── structrpcap__header.html ├── structrpcap__openreply.html ├── structrpcap__pkthdr.html ├── structrpcap__sampling.html ├── structrpcap__startcapreply.html ├── structrpcap__startcapreq.html ├── structrpcap__stats.html ├── structsf__pkthdr.html ├── style.css ├── tab_b.gif ├── tab_l.gif ├── tab_r.gif ├── tabs.css ├── tree.html ├── utils_8h-source.html ├── utils_8h.html ├── win32-svc_8h-source.html ├── win32-svc_8h.html ├── winpcap.gif ├── winpcap_small.gif ├── wpcap__remote_8htm-source.html ├── wpcap__remote_8htm.html ├── wpcap__tut1_8txt.html ├── wpcap__tut2_8txt.html ├── wpcap__tut3_8txt.html ├── wpcap__tut4_8txt.html ├── wpcap__tut5_8txt.html ├── wpcap__tut6_8txt.html ├── wpcap__tut7_8txt.html ├── wpcap__tut8_8txt.html ├── wpcap__tut9_8txt.html └── wpcap__tut_8txt.html /ReleaseNotes-HPC.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/ReleaseNotes-HPC.txt -------------------------------------------------------------------------------- /TroubleShootingGuide-HPC.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/TroubleShootingGuide-HPC.txt -------------------------------------------------------------------------------- /VisitationFlowChart.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/VisitationFlowChart.vsd -------------------------------------------------------------------------------- /capture-client/7za.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-client/7za.exe -------------------------------------------------------------------------------- /capture-client/ApplicationConfig/Applications.conf: -------------------------------------------------------------------------------- 1 | #[Client Name] [Client Path] (Download URL to temp directory and open from there?) 2 | firefox C:\Program Files\Mozilla Firefox\firefox.exe 3 | opera C:\Program Files\Opera\opera.exe 4 | oowriter C:\Program Files\OpenOffice.org 2.2\program\swriter.exe 5 | acrobatreader C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe yes 6 | word C:\Program Files\Microsoft Office\OFFICE11\winword.exe -------------------------------------------------------------------------------- /capture-client/ApplicationPlugins/ClientConfigParser/ProcessHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: ProcessHandler.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Copyright Victoria University of Wellington 2008 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | 34 | class ProcessHandler 35 | { 36 | public: 37 | ProcessHandler(std::wstring fullPathToExe, std::wstring parameters); 38 | ~ProcessHandler(void); 39 | DWORD executeProcess(); 40 | DWORD closeProcess(void); 41 | DWORD getProcessId(void); 42 | bool isOpen(void); 43 | 44 | private: 45 | std::wstring m_fullPathToExe; 46 | std::wstring m_parameters; 47 | PROCESS_INFORMATION m_piProcessInfo; 48 | BOOL static CALLBACK EnumWindowsCloseProc(HWND hwnd,LPARAM lParam); 49 | BOOL static CALLBACK EnumWindowsCloseAppProc(HWND hwnd,LPARAM lParam); 50 | int compareName(DWORD processID, std::wstring processName); 51 | }; 52 | -------------------------------------------------------------------------------- /capture-client/ApplicationPlugins/Safari/Application_Safari.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Application_Safari", "Application_Safari\Application_Safari.vcproj", "{9156126E-DEFD-44CD-8F8B-05879459F0B7}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {9156126E-DEFD-44CD-8F8B-05879459F0B7}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {9156126E-DEFD-44CD-8F8B-05879459F0B7}.Debug|Win32.Build.0 = Debug|Win32 14 | {9156126E-DEFD-44CD-8F8B-05879459F0B7}.Release|Win32.ActiveCfg = Release|Win32 15 | {9156126E-DEFD-44CD-8F8B-05879459F0B7}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /capture-client/ApplicationPlugins/Safari/Application_Safari.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-client/ApplicationPlugins/Safari/Application_Safari.suo -------------------------------------------------------------------------------- /capture-client/CaptureClient.bat: -------------------------------------------------------------------------------- 1 | c:\progra~1\capture\CaptureClient.exe %1 %2 %3 %4 %5 %6 %7 %8 > c:\progra~1\capture\capture.log -------------------------------------------------------------------------------- /capture-client/CaptureGlobal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: CaptureGlobal.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | #define _WIN32_WINNT 0x0501 26 | #define WIN32_LEAN_AND_MEAN 27 | // Exclude rarely-used stuff from Windows headers 28 | //#define LOCALTEST // Output some local statistics for debugging 29 | 30 | /* 31 | This header is included by all objects in the client. This allows all object 32 | to have access to the various singleton objects in the project 33 | */ 34 | #include "ErrorCodes.h" 35 | #include 36 | #include 37 | 38 | 39 | 40 | class OptionsManager; 41 | class Logger; 42 | class EventController; 43 | class ProcessManager; 44 | 45 | 46 | -------------------------------------------------------------------------------- /capture-client/ErrorCodes.h: -------------------------------------------------------------------------------- 1 | /* Error codes that are returned during client<->server mode */ 2 | 3 | #define SUCCESS 0 4 | 5 | /* Visitation major events */ 6 | #define CAPTURE_VISITATION_OK SUCCESS 7 | #define CAPTURE_VISITATION_PRESTART 0x10000101 8 | #define CAPTURE_VISITATION_START 0x10000102 9 | #define CAPTURE_VISITATION_FINISH 0x10000103 10 | #define CAPTURE_VISITATION_POSTFINISH 0x10000104 11 | #define CAPTURE_VISITATION_NETWORK_ERROR 0x10000110 12 | #define CAPTURE_VISITATION_PROCESS_ERROR 0x10000111 13 | #define CAPTURE_VISITATION_TIMEOUT_ERROR 0x10000112 14 | #define CAPTURE_VISITATION_MULTIPLE_ERRORS 0x10000113 15 | #define CAPTURE_VISITATION_ATTACH_PROCESS_ERROR 0x10000114 16 | #define CAPTURE_VISITATION_EXCEPTION 0x10000200 17 | 18 | #define CAPTURE_VISITATION_WARNING 0x10000300 19 | 20 | /* Visitation minor events */ 21 | #define CAPTURE_PE_PROCESS_TERMINATED_FORCEFULLY 0x10005000 22 | #define CAPTURE_PE_PROCESS_ALREADY_TERMINATED 0x10005001 23 | #define CAPTURE_PE_PROCESS_PATH_NOT_FOUND 0x10005002 24 | 25 | #define CAPTURE_NE_CANT_DOWNLOAD_TEMP_FILE 0x10005000 26 | #define CAPTURE_NE_CONNECT_ERROR_DL_TEMP_FILE 0x10005001 -------------------------------------------------------------------------------- /capture-client/ExclusionLists/ConnectionMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [connection|listening] [Process Name] [Destination IP Address:Port] 2 | + tcp-connection C:\\Program Files\\Internet Explorer\\iexplore\.exe .*:80 3 | + tcp-connection C:\\Program Files\\Internet Explorer\\iexplore\.exe .*:8080 4 | + tcp-connection C:\\Program Files\\Internet Explorer\\iexplore\.exe .*:8088 5 | + tcp-connection C:\\Program Files\\Internet Explorer\\iexplore\.exe .*:443 6 | + udp-connection .* .*:53 7 | + tcp-connection .* .*:139 8 | + udp-connection .* .*:67 9 | + udp-listening .* .*:68 10 | 11 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Clean Windows XP SP 2 System ### 4 | ################################################### 5 | #issue in the way process path information is communicated to capture client 6 | + UNKNOWN .* UNKNOWN 7 | #capture client itself 8 | + CaptureClient.exe .* C:\\Program Files\\Capture\\CaptureClient\.exe 9 | + CaptureClient.bat .* C:\\Program Files\\Capture\\CaptureClient\.bat 10 | + 7za.exe .* C:\\Program Files\\Capture\\7za\.exe 11 | #Windows update (it runs even if disabled) 12 | + wuauclt.exe .* C:\\WINDOWS\\system32\\wuauclt\.exe 13 | # 14 | + savedump.exe .* C:\\WINDOWS\\system32\\savedump\.exe 15 | #Standard screensaver 16 | + logon.scr .* C:\\WINDOWS\\system32\\logon\.scr 17 | #defragmenter 18 | + dfrgntfs.exe .* C:\\WINDOWS\\system32\\dfrgntfs\.exe 19 | + defrag.exe .* C:\\WINDOWS\\system32\\defrag\.exe 20 | #7za 21 | + 7za.exe .* C:\\program Files\\capture\\7za\.exe 22 | #mapping 23 | + wmiadap.exe .* C:\\WINDOWS\\system32\\wbem\\wmiadap\.exe 24 | + wmiprvse.exe .* C:\\WINDOWS\\system32\\wbem\\wmiprvse\.exe 25 | #vmware tools 26 | + VMwareUser.exe .* C:\\Program Files\\VMware\\VMware Tools\\VMwareUser\.exe 27 | ################################################### 28 | ### Microsoft Internet Explorer 6.0 ### 29 | ################################################### 30 | + iexplore.exe .* C:\\Program Files\\Internet Explorer\\iexplore.exe 31 | + IEXPLORE.EXE .* C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE 32 | #agent server is an activeX control that starts upon displaying multimedia content 33 | + agentsvr.exe .* C:\\WINDOWS\\msagent\\agentsvr.exe 34 | #messenger activeX 35 | + msmsgs.exe .* C:\\Program Files\\Messenger\\msmsgs.exe 36 | + rundll32.exe .* C:\\WINDOWS\\system32\\rundll32.exe 37 | #imapi 38 | + imapi.exe .* c:\\WINDOWS\\system32\\imapi\.exe -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Firefox150/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created (no dots)] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Mozilla Firefox 1.5 ### 4 | ################################################### 5 | + firefox.exe .* C:\\Program Files\\Mozilla Firefox\\firefox.exe 6 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Firefox150/RegistryMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Registry Event] [Process Name] [Registry Path] 2 | ################################################### 3 | ### Mozilla Firefox 1.5 ### 4 | ################################################### 5 | + OpenKey .* .* 6 | + CreateKey .* .* 7 | + CloseKey .* .* 8 | + EnumerateKey .* .* 9 | + EnumerateValueKey .* .* 10 | + QueryValueKey .* .* 11 | + QueryKey .* .* 12 | + SetValueKey C:\\Program Files\\Mozilla Firefox\\firefox\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MountPoints2\\.+ 13 | + SetValueKey C:\\Program Files\\Mozilla Firefox\\firefox\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 14 | + DeleteValueKey C:\\Program Files\\Mozilla Firefox\\firefox\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MountPoints2\\.+ 15 | + DeleteValueKey C:\\Program Files\\Mozilla Firefox\\firefox\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 16 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/IE6SP2/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Microsoft Internet Explorer 6.0 ### 4 | ################################################### 5 | + iexplore.exe .* C:\\Program Files\\Internet Explorer\\iexplore.exe 6 | #agent server is an activeX control that starts upon displaying multimedia content 7 | + agentsvr.exe .* C:\\WINDOWS\\msagent\\agentsvr.exe 8 | #messenger activeX 9 | + msmsgs.exe .* C:\\Program Files\\Messenger\\msmsgs.exe 10 | #print 11 | + rundll32.exe .* C:\\WINDOWS\\system32\\rundll32.exe -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Opera800/FileMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [File Access] [Process Name] [File Path] 2 | ################################################### 3 | ### Opera 8.0 ### 4 | ################################################### 5 | # cache, etc. 6 | + Write C:\\Program Files\\Opera\\Opera\.exe C:\\Documents and Settings\\Administrator\\Application Data\\Opera\\.+ 7 | + Write C:\\Program Files\\Opera\\Opera\.exe C:\\Program Files\\Opera\\.*.dat 8 | # no idea why, but it does.... 9 | + Write C:\\Program Files\\Opera\\Opera\.exe C:\\WINDOWS\\win.ini 10 | ################################################### 11 | ### Minus List - General Malicious Activity ### 12 | ################################################### 13 | # Alert about executables or scripts that are written to disk 14 | - Write .* .+\.bat 15 | - Write .* .+\.cmd 16 | - Write .* .+\.exe 17 | - Write .* .+\.inf 18 | - Write .* .+\.lnk 19 | - Write .* .+\.msi 20 | - Write .* .+\.msp 21 | - Write .* .+\.pif 22 | - Write .* .+\.reg 23 | - Write .* .+\.sct 24 | - Write .* .+\.shs 25 | - Write .* .+\.scr 26 | - Write .* .+\.wsc 27 | - Write .* .+\.wsf 28 | - Write .* .+\.wsh 29 | #commented out for opera because \.com cache files and \.vb script files are very common 30 | #- Write .* .+\.vb 31 | #- Write .* .+\.com 32 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Opera800/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created (no dots)] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Opera 8.00 ### 4 | ################################################### 5 | + opera.exe .* C:\\Program Files\\Opera\\Opera.exe 6 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Opera800/RegistryMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Registry Event] [Process Name] [Registry Path] 2 | ################################################### 3 | ### Opera 8.0 ### 4 | ################################################### 5 | + OpenKey .* .* 6 | + CreateKey .* .* 7 | + CloseKey .* .* 8 | + EnumerateKey .* .* 9 | + EnumerateValueKey .* .* 10 | + QueryValueKey .* .* 11 | + QueryKey .* .* 12 | + SetValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MountPoints2\\.+ 13 | + SetValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 14 | + SetValueKey C:\\Program Files\\Opera\\Opera\.exe HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 15 | + SetValueKey C:\\Program Files\\Opera\\Opera\.exe HKLM\\SOFTWARE\\Classes\\ProcETServ\.Malloc\\MapQueue 16 | + SetValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Opera Software\\.+ 17 | + DeleteValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MountPoints2\\.+ 18 | + DeleteValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 19 | + DeleteValueKey C:\\Program Files\\Opera\\Opera\.exe HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\.+ 20 | + DeleteValueKey C:\\Program Files\\Opera\\Opera\.exe HKLM\\SOFTWARE\\Classes\\ProcETServ\.Malloc\\MapQueue 21 | + DeleteValueKey C:\\Program Files\\Opera\\Opera\.exe HKCU\\Software\\Opera Software\\.+ 22 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/Safari/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created (no dots)] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Safari 3.1.2 ### 4 | ################################################### 5 | + safari.exe .* C:\\Program Files\\Safari\\Safari.exe 6 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/WinXPSP2/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Clean Windows XP SP 2 System ### 4 | ################################################### 5 | #Windows update (it runs even if disabled) 6 | + wuauclt.exe .* C:\\WINDOWS\\system32\\wuauclt\.exe 7 | #Standard screensaver 8 | + logon.scr .* C:\\WINDOWS\\system32\\logon\.scr 9 | #defragmenter 10 | + dfrgntfs.exe .* C:\\WINDOWS\\system32\\dfrgntfs\.exe 11 | + defrag.exe .* C:\\WINDOWS\\system32\\defrag\.exe 12 | #7za 13 | + 7za.exe .* C:\\program Files\\capture\\7za\.exe 14 | #mapping 15 | + wmiadap.exe .* C:\\WINDOWS\\system32\\wbem\\wmiadap\.exe 16 | + wmiprvse.exe .* C:\\WINDOWS\\system32\\wbem\\wmiprvse\.exe -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/chrome/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created (no dots)] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Google Chrome Beta ### 4 | ################################################### 5 | + chrome.exe .* C:\\Documents and Settings\\.*\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome\.exe 6 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/clean/FileMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [File Access] [Process Name] [File Path] 2 | ################################################### 3 | ### Clean Windows XP SP 2 System ### 4 | ################################################### 5 | + Read .* .* 6 | + Create .* .* 7 | + Open .* .* 8 | + Write .* .* 9 | + Delete .* .* -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/clean/ProcessMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Process Created] [Parent Process] [Process Path] 2 | ################################################### 3 | ### Clean Windows XP SP 2 System ### 4 | ################################################### 5 | #Windows update (it runs even if disabled) 6 | + wuauclt.exe .* C:\\WINDOWS\\system32\\wuauclt\.exe 7 | # 8 | + savedump.exe .* C:\\WINDOWS\\system32\\savedump\.exe 9 | #Standard screensaver 10 | + logon.scr .* C:\\WINDOWS\\system32\\logon\.scr 11 | #defragmenter 12 | + dfrgntfs.exe .* C:\\WINDOWS\\system32\\dfrgntfs\.exe 13 | + defrag.exe .* C:\\WINDOWS\\system32\\defrag\.exe 14 | #7za 15 | + 7za.exe .* C:\\program Files\\capture\\7za\.exe 16 | ################################################### 17 | ### Misc Apps 18 | ################################################### 19 | + iexplore.exe .* C:\\Program Files\\Internet Explorer\\iexplore.exe 20 | #agent server is an activeX control that starts upon displaying multimedia content 21 | + agentsvr.exe .* C:\\WINDOWS\\msagent\\agentsvr.exe 22 | #messenger activeX 23 | + msmsgs.exe .* C:\\Program Files\\Messenger\\msmsgs.exe 24 | + firefox.exe .* C:\\Program Files\\Mozilla Firefox\\firefox.exe 25 | + Safari.exe .* C:\\Program Files\\Safari\\Safari.exe 26 | + AcroRd32.exe .* C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\AcroRd32.exe 27 | + AdobeUpdater.exe .* C:\\Program Files\\Common Files\\Adobe\\Updater5\\AdobeUpdater.exe 28 | + reader_sl.exe .* C:\\Program Files\\Adobe\\Reader 8.0\\Reader\\reader_sl.exe 29 | + msiexec.exe .* C:\\WINDOWS\\system32\\msiexec.exe 30 | + msvsmon.exe .* C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\Remote Debugger\\x86\\msvsmon.exe 31 | 32 | -------------------------------------------------------------------------------- /capture-client/ExclusionLists/repository/clean/RegistryMonitor.exl: -------------------------------------------------------------------------------- 1 | #[+,-] [Registry Event] [Process Name] [Registry Path] 2 | ################################################### 3 | ### Microsoft Windows XP SP2 ### 4 | ################################################### 5 | + OpenKey .* .* 6 | + CreateKey .* .* 7 | + CloseKey .* .* 8 | + EnumerateKey .* .* 9 | + EnumerateValueKey .* .* 10 | + QueryValueKey .* .* 11 | + QueryKey .* .* 12 | + SetValueKey .* .* 13 | + DeleteValueKey .* .* 14 | + DeleteKey .* .* -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CaptureKernelDrivers", "CaptureKernelDrivers\CaptureKernelDrivers.vcproj", "{4EF34E6D-B30C-46E5-9FC5-967ECEADE2CD}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KernelDriverTester", "..\Tools\KernelDriverTester\KernelDriverTester.vcproj", "{7CE0B18D-E3F3-47FC-A1E2-F65EA231D1EA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4EF34E6D-B30C-46E5-9FC5-967ECEADE2CD}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {4EF34E6D-B30C-46E5-9FC5-967ECEADE2CD}.Debug|Win32.Build.0 = Debug|Win32 16 | {4EF34E6D-B30C-46E5-9FC5-967ECEADE2CD}.Release|Win32.ActiveCfg = Release|Win32 17 | {4EF34E6D-B30C-46E5-9FC5-967ECEADE2CD}.Release|Win32.Build.0 = Release|Win32 18 | {7CE0B18D-E3F3-47FC-A1E2-F65EA231D1EA}.Debug|Win32.ActiveCfg = Debug|Win32 19 | {7CE0B18D-E3F3-47FC-A1E2-F65EA231D1EA}.Debug|Win32.Build.0 = Debug|Win32 20 | {7CE0B18D-E3F3-47FC-A1E2-F65EA231D1EA}.Release|Win32.ActiveCfg = Release|Win32 21 | {7CE0B18D-E3F3-47FC-A1E2-F65EA231D1EA}.Release|Win32.Build.0 = Release|Win32 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-client/KernelDrivers/CaptureKernelDrivers.suo -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/CaptureKernelDrivers.vcproj.YOUR-5EYJ69CYVJ.ramon.user: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 35 | 36 | 39 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/Common/Sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=Common 2 | TARGETPATH=. 3 | TARGETTYPE=DRIVER_LIBRARY 4 | 5 | TARGETLIBS=$(TARGETLIBS) \ 6 | 7 | 8 | SOURCES=EventList.c \ 9 | SharedBuffer.c \ 10 | HashMap.c \ -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/FileMonitor/Sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=CaptureFileMonitor 2 | TARGETPATH=. 3 | DRIVERTYPE=FS 4 | TARGETTYPE=DRIVER 5 | 6 | TARGETLIBS=$(TARGETLIBS) \ 7 | $(IFSKIT_LIB_PATH)\fltMgr.lib 8 | 9 | SOURCES=CaptureFileMonitor.c \ 10 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/NetworkMonitor/Sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=CaptureConnectionMonitor 2 | TARGETPATH=. 3 | TARGETTYPE=DRIVER 4 | 5 | TARGETLIBS=$(TARGETLIBS) \ 6 | $(WNETBASE)\lib\wxp\i386\tdi.lib \ 7 | ..\Common\i386\Common.lib \ 8 | 9 | INCLUDES=..\Common 10 | 11 | SOURCES= \ 12 | Connection.c \ 13 | ConnectionManager.c \ 14 | CaptureTdiEventHandlers.c \ 15 | CaptureTdiIrpHandlers.c \ 16 | EventHandlerManager.c \ 17 | CaptureConnectionMonitor.c \ 18 | 19 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/ProcessMonitor/Sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=CaptureProcessMonitor 2 | TARGETPATH=. 3 | TARGETTYPE=DRIVER 4 | 5 | TARGETLIBS=$(TARGETLIBS) \ 6 | 7 | SOURCES=CaptureProcessMonitor.c \ 8 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/RegistryMonitor/Sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=CaptureRegistryMonitor 2 | TARGETPATH=. 3 | TARGETTYPE=DRIVER 4 | 5 | TARGETLIBS=$(TARGETLIBS) \ 6 | 7 | SOURCES=CaptureRegistryMonitor.c \ 8 | -------------------------------------------------------------------------------- /capture-client/KernelDrivers/CaptureKernelDrivers/dirs: -------------------------------------------------------------------------------- 1 | DIRS=Common RegistryMonitor FileMonitor ProcessMonitor NetworkMonitor -------------------------------------------------------------------------------- /capture-client/NetworkAdapter.cpp: -------------------------------------------------------------------------------- 1 | #include "Precompiled.h" 2 | 3 | #include "NetworkAdapter.h" 4 | #include "NetworkPacketDumper.h" 5 | 6 | NetworkAdapter::NetworkAdapter(NetworkPacketDumper* npDumper, string aName, pcap_t* adap) 7 | { 8 | networkPacketDumper = npDumper; 9 | adapterName = aName; 10 | adapter = adap; 11 | running = false; 12 | 13 | } 14 | 15 | NetworkAdapter::~NetworkAdapter(void) 16 | { 17 | stop(); 18 | } 19 | 20 | void 21 | NetworkAdapter::start() 22 | { 23 | LOG(INFO, "Starting network adapter"); 24 | if(!running) 25 | { 26 | char* szLogFileName = new char[1024]; 27 | string logName = "logs\\"; 28 | logName += adapterName; 29 | logName += ".pcap"; 30 | GetFullPathNameA(logName.c_str(), 1024, szLogFileName, NULL); 31 | dumpFile = networkPacketDumper->pfn_pcap_dump_open(adapter, szLogFileName); 32 | adapterThread = new Thread(this); 33 | string threadName = "NetworkPacketDumper-"; 34 | threadName += adapterName; 35 | char* t = (char*)threadName.c_str(); 36 | adapterThread->start(t); 37 | running = true; 38 | delete [] szLogFileName; 39 | LOG(INFO, "Started network adapter"); 40 | } 41 | } 42 | 43 | string NetworkAdapter::getAdapterName() { 44 | return adapterName; 45 | } 46 | 47 | void 48 | NetworkAdapter::stop() 49 | { 50 | LOG(INFO, "Stopping network adapter"); 51 | if(running) 52 | { 53 | adapterThread->exit(); 54 | delete adapterThread; 55 | if(dumpFile != NULL) 56 | networkPacketDumper->pfn_pcap_dump_close(dumpFile); 57 | running = false; 58 | } 59 | } 60 | 61 | void 62 | NetworkAdapter::run() 63 | { 64 | int res; 65 | struct pcap_pkthdr *header; 66 | const u_char *pkt_data; 67 | while(running && (res = networkPacketDumper->pfn_pcap_next_ex( adapter, &header, &pkt_data)) >= 0) 68 | { 69 | if(res > 0) 70 | { 71 | if(dumpFile != NULL) 72 | { 73 | networkPacketDumper->pfn_pcap_dump((unsigned char *) dumpFile, header, pkt_data); 74 | } 75 | } 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /capture-client/Permission.cpp: -------------------------------------------------------------------------------- 1 | #include "Precompiled.h" 2 | 3 | #include "Permission.h" 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | PERMISSION_CLASSIFICATION 10 | Permission::Check(std::wstring subject, std::wstring object) 11 | { 12 | std::list::iterator lit; 13 | boost::wcmatch what; 14 | bool found = false; 15 | 16 | for(lit = subjects.begin(); lit != subjects.end(); lit++) 17 | { 18 | if(boost::regex_match(subject.c_str(), what, (*lit))) 19 | { 20 | found = true; 21 | } 22 | } 23 | if(!found) 24 | { 25 | return NO_MATCH; 26 | } 27 | 28 | for(lit = objects.begin(); lit != objects.end(); lit++) 29 | { 30 | if(boost::regex_match(object.c_str(), what, (*lit))) 31 | { 32 | if(allow) 33 | { 34 | return ALLOWED; 35 | } else { 36 | return DISALLOWED; 37 | } 38 | } 39 | } 40 | return NO_MATCH; 41 | } -------------------------------------------------------------------------------- /capture-client/PluginExports.h: -------------------------------------------------------------------------------- 1 | #ifdef APPLICATION_PLUGIN_NAME 2 | extern "C" { 3 | __declspec(dllexport) void New(void** clsPtr) 4 | { 5 | *clsPtr = new APPLICATION_PLUGIN_NAME(); 6 | } 7 | __declspec(dllexport) void Delete(void** clsPtr) 8 | { 9 | delete (APPLICATION_PLUGIN_NAME*)*clsPtr; 10 | } 11 | } 12 | #endif -------------------------------------------------------------------------------- /capture-client/PluginTest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: PluginTest.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | #include 26 | #include "Url.h" 27 | #include "VisitEvent.h" 28 | #include "ApplicationPlugin.h" 29 | 30 | class PluginTest 31 | { 32 | public: 33 | 34 | public: 35 | PluginTest(void); 36 | virtual ~PluginTest(void); 37 | void loadTest(); 38 | private: 39 | void loadIEPlugin(); 40 | void loadIEBulkPlugin(); 41 | ApplicationPlugin* createApplicationPluginObject(HMODULE hPlugin); 42 | std::wstring errorCodeToString(DWORD errorCode); 43 | 44 | ApplicationPlugin* ie; 45 | }; 46 | -------------------------------------------------------------------------------- /capture-client/Precompiled.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: Server.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | 25 | #pragma once 26 | #define _WIN32_WINNT 0x0501 27 | #define WIN32_LEAN_AND_MEAN 28 | 29 | #include 30 | #include 31 | 32 | #include "ErrorCodes.h" 33 | #include "Logger.h" 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | class Base64 41 | { 42 | public: 43 | static char* decode(const char* encodedBuffer); 44 | static char* encode(char* cleartextBuffer, size_t length, size_t* encodedLength); 45 | private: 46 | static const char b64_list[]; 47 | static const int b64_index[256]; 48 | }; 49 | 50 | #include "Time.h" -------------------------------------------------------------------------------- /capture-client/ReadMe-BAT.txt: -------------------------------------------------------------------------------- 1 | Please refer to http://newzealand.honeynet.org/capture-standalone.html for more information on installation, usage, etc. 2 | -------------------------------------------------------------------------------- /capture-client/ServerEventDelegator.cpp: -------------------------------------------------------------------------------- 1 | #include "ServerEventDelegator.h" 2 | 3 | ServerEventDelegator::ServerEventDelegator(void) 4 | { 5 | } 6 | 7 | ServerEventDelegator::~ServerEventDelegator(void) 8 | { 9 | } 10 | -------------------------------------------------------------------------------- /capture-client/ServerReceive.cpp: -------------------------------------------------------------------------------- 1 | #include "Precompiled.h" 2 | 3 | #include "ServerReceive.h" 4 | #include "Server.h" 5 | #include "EventController.h" 6 | #include 7 | 8 | ServerReceive::ServerReceive(Server* s) 9 | { 10 | server = s; 11 | running = false; 12 | 13 | } 14 | 15 | ServerReceive::~ServerReceive(void) 16 | { 17 | stop(); 18 | } 19 | 20 | void 21 | ServerReceive::start() 22 | { 23 | if(!running) 24 | { 25 | receiver = new Thread(this); 26 | receiver->start("ServerReceive"); 27 | running = true; 28 | } 29 | } 30 | 31 | void 32 | ServerReceive::stop() 33 | { 34 | if(running) 35 | { 36 | receiver->exit(); 37 | } 38 | running = false; 39 | } 40 | 41 | void 42 | ServerReceive::run() 43 | { 44 | while(running && server->isConnected()) 45 | { 46 | char buffer[MAX_RECEIVE_BUFFER]; 47 | std::string xmlDocument = ""; 48 | int bytesRecv = 0; 49 | while(running && (bytesRecv = recv(server->serverSocket, buffer, MAX_RECEIVE_BUFFER, 0)) > 2) 50 | { 51 | for(int i = 0; i < bytesRecv; i++) 52 | { 53 | if(buffer[i] != '\0') 54 | { 55 | xmlDocument += buffer[i]; 56 | } else { 57 | LOG(INFO, "Server: received %i %s", xmlDocument.length(), xmlDocument.c_str()); 58 | EventController::getInstance()->receiveServerEvent(xmlDocument.c_str()); 59 | xmlDocument = ""; 60 | } 61 | } 62 | Sleep(100); 63 | } 64 | 65 | if(bytesRecv<0) { 66 | LOG(ERR, "Server: receive error - %d - %d", bytesRecv, WSAGetLastError()); 67 | server->reconnect(); 68 | } 69 | } 70 | running = false; 71 | } 72 | -------------------------------------------------------------------------------- /capture-client/ServerReceive.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: ServerReceive.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | #include "Thread.h" 26 | 27 | class Server; 28 | 29 | /* 30 | Class: ServerReceive 31 | 32 | See 33 | */ 34 | class ServerReceive : public Runnable 35 | { 36 | public: 37 | ServerReceive(Server* s); 38 | ~ServerReceive(void); 39 | void start(); 40 | void stop(); 41 | 42 | void run(); 43 | private: 44 | Server* server; 45 | Thread* receiver; 46 | bool running; 47 | }; 48 | -------------------------------------------------------------------------------- /capture-client/StringHelper.cpp: -------------------------------------------------------------------------------- 1 | #include "Precompiled.h" 2 | 3 | #include "StringHelper.h" 4 | 5 | std::wstring 6 | StringHelper::multiByteStringToWideString(const char* string, size_t length) 7 | { 8 | unsigned int converted_characters = 0; 9 | 10 | wchar_t* wide_string = (wchar_t*)malloc(length*sizeof(wchar_t)); 11 | 12 | mbstowcs_s(&converted_characters, wide_string, length, string, _TRUNCATE); 13 | 14 | std::wstring converted_wide_string = wide_string; 15 | 16 | free(wide_string); 17 | 18 | return converted_wide_string; 19 | } 20 | -------------------------------------------------------------------------------- /capture-client/StringHelper.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: StringHelper.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | 26 | class StringHelper 27 | { 28 | public: 29 | static std::wstring multiByteStringToWideString(const char* string, size_t length); 30 | }; 31 | -------------------------------------------------------------------------------- /capture-client/Time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3 | * FILE: Time.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) & Christian Seifert (christian.seifert@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | #pragma once 25 | #include 26 | 27 | typedef struct _TIME_FIELDS { 28 | WORD wYear; 29 | WORD wMonth; 30 | WORD wDay; 31 | WORD wHour; 32 | WORD wMinute; 33 | WORD wSecond; 34 | WORD wMilliseconds; 35 | WORD wWeekday; 36 | } TIME_FIELDS; 37 | 38 | class Time 39 | { 40 | public: 41 | static std::wstring timefieldToString(const TIME_FIELDS& time); 42 | static std::wstring systemtimeToString(const SYSTEMTIME& time); 43 | static std::wstring getCurrentTime(); 44 | }; -------------------------------------------------------------------------------- /capture-client/Tools/KernelDriverTester/File.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3.0 3 | * FILE: File.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | 25 | #pragma once 26 | 27 | class File 28 | { 29 | public: 30 | File( const std::wstring& file_name, unsigned int mode ); 31 | virtual ~File(void); 32 | 33 | bool open(); 34 | void close(); 35 | void flush(); 36 | 37 | bool readLine( std::wstring& buffer ); 38 | unsigned int read( wchar_t* buffer, unsigned int bytes ); 39 | 40 | void write( const std::wstring& buffer ); 41 | 42 | public: 43 | static unsigned int append; 44 | static unsigned int end; 45 | static unsigned int binary; 46 | static unsigned int in; 47 | static unsigned int out; 48 | static unsigned int truncate; 49 | 50 | public: 51 | static bool createDirectory(const std::wstring& directory); 52 | static bool deleteDirectory(const std::wstring& directory); 53 | static void getFullPathName( std::wstring& file ); 54 | 55 | private: 56 | bool opened; 57 | unsigned int mode; 58 | std::wstring file_name; 59 | 60 | std::wfstream* file_stream; 61 | }; 62 | -------------------------------------------------------------------------------- /capture-client/Tools/KernelDriverTester/Log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Capture 3.0 3 | * FILE: Log.h 4 | * AUTHORS: Ramon Steenson (rsteenson@gmail.com) 5 | * 6 | * Developed by Victoria University of Wellington and the New Zealand Honeynet Alliance 7 | * 8 | * This file is part of Capture. 9 | * 10 | * Capture is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Capture is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Capture; if not, write to the Free Software 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | */ 24 | 25 | #pragma once 26 | #include 27 | 28 | class Log 29 | { 30 | public: 31 | static void LogPrintF(int level, const char* file, int line, const char* format, ...); 32 | }; 33 | 34 | #define LOG(level, format, ...) Log::LogPrintF(level, __FILE__, __LINE__, format, __VA_ARGS__) 35 | 36 | typedef enum _LOG_LEVEL 37 | { 38 | INFO, 39 | WARNING, 40 | ERR 41 | } LOG_LEVEL; 42 | -------------------------------------------------------------------------------- /capture-client/Tools/KernelDriverTester/Precompiled.h: -------------------------------------------------------------------------------- 1 | #define WIN32_LEAN_AND_MEAN 2 | 3 | #include 4 | 5 | #include 6 | 7 | #include "Log.h" -------------------------------------------------------------------------------- /capture-client/Tools/KernelDriverTester/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // The following macros define the minimum required platform. The minimum required platform 4 | // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run 5 | // your application. The macros work by enabling all features available on platform versions up to and 6 | // including the version specified. 7 | 8 | // Modify the following defines if you have to target a platform prior to the ones specified below. 9 | // Refer to MSDN for the latest info on corresponding values for different platforms. 10 | #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. 11 | #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /capture-client/UnitTests/CaptureClient_UnitTests.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using boost::unit_test_framework::test_suite; 5 | using boost::execution_monitor; 6 | 7 | #include "OptionsManager_UnitTests.h" 8 | #include "ProcessManager_UnitTests.h" 9 | #include "Logger_UnitTests.h" 10 | 11 | test_suite* __cdecl init_unit_test_suite(int argc, char* argv[]) 12 | { 13 | test_suite* top_test_suite = BOOST_TEST_SUITE( "Capture Client Test Suite" ); 14 | 15 | top_test_suite->add(new OptionsManager_TestSuite()); 16 | top_test_suite->add(new ProcessManager_TestSuite()); 17 | top_test_suite->add(new Logger_TestSuite()); 18 | 19 | return top_test_suite; 20 | } 21 | -------------------------------------------------------------------------------- /capture-client/UnitTests/OptionsManager_UnitTests.h: -------------------------------------------------------------------------------- 1 | #include 2 | using boost::unit_test_framework::test_suite; 3 | using boost::unit_test_framework::test_case; 4 | using boost::unit_test::test_suite; 5 | #include "..\OptionsManager.h" 6 | 7 | 8 | bool OptionsManager::instanceCreated = false; 9 | OptionsManager* OptionsManager::optionsManager = NULL; 10 | 11 | class OptionsManager_Tests 12 | { 13 | public: 14 | void addOption() 15 | { 16 | OptionsManager::getInstance()->addOption(L"hello", L"world"); 17 | wstring value = OptionsManager::getInstance()->getOption(L"hello"); 18 | 19 | BOOST_CHECK(value == L"world"); 20 | delete OptionsManager::getInstance(); 21 | } 22 | }; 23 | 24 | class OptionsManager_TestSuite : public test_suite 25 | { 26 | public: 27 | 28 | OptionsManager_TestSuite() : test_suite("OptionsManager Test Suite") 29 | { 30 | boost::shared_ptr instance(new OptionsManager_Tests()); 31 | 32 | test_case* addOption_TestCase = BOOST_CLASS_TEST_CASE(&OptionsManager_Tests::addOption, instance); 33 | add(addOption_TestCase); 34 | } 35 | }; 36 | 37 | -------------------------------------------------------------------------------- /capture-client/capture.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-client/capture.ico -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/Readme.txt: -------------------------------------------------------------------------------- 1 | Capture Server PcapPostprocessor README 2 | --------------------------------------- 3 | 4 | 1.Prerequisites 5 | --------------- 6 | * Capture-Server 3.0 7 | 8 | 2. Installation 9 | --------------- 10 | 11 | 12 | 3. Usage 13 | -------- 14 | - command line test 15 | 16 | 17 | 4. Troubleshooting 18 | ------------------ 19 | -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/CaptureServer.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/CaptureServer.jar -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/DNSMapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/DNSMapper.jar -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/FFDetect.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/FFDetect.jar -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/HTTPExtractor.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/HTTPExtractor.jar -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/dnsjava-2.0.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/dnsjava-2.0.6.jar -------------------------------------------------------------------------------- /capture-server-postprocessors/pcap/lib/jpcap.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server-postprocessors/pcap/lib/jpcap.jar -------------------------------------------------------------------------------- /capture-server/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /capture-server/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | CaptureServer 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | edu.mit.csail.relo.jdt.builder.ReloJDTBuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | edu.mit.csail.relo.jdt.builder.ReloJDTBuilderProjectNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /capture-server/ServerClassDiagram.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/ServerClassDiagram.vsd -------------------------------------------------------------------------------- /capture-server/capture/ClientsPinger.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.*; 4 | import java.util.concurrent.locks.ReentrantReadWriteLock; 5 | 6 | public class ClientsPinger extends TimerTask implements Observer { 7 | private Set clients; 8 | 9 | public ClientsPinger() { 10 | this.clients = new TreeSet(); 11 | } 12 | 13 | public void addClient(Client c) { 14 | clients.add(c); 15 | } 16 | 17 | public void removeClient(Client c) { 18 | clients.remove(c); 19 | } 20 | 21 | public void update(Observable arg0, Object arg1) { 22 | Client client = (Client)arg0; 23 | if(client.getClientState() == CLIENT_STATE.DISCONNECTED) 24 | { 25 | removeClient(client); 26 | } else if(client.getClientState() == CLIENT_STATE.CONNECTED) { 27 | addClient(client); 28 | } 29 | } 30 | 31 | public void run() { 32 | for (Iterator clientIterator = clients.iterator(); clientIterator.hasNext();) { 33 | Client client = clientIterator.next(); 34 | if (client.getClientState() != CLIENT_STATE.CONNECTING || 35 | client.getClientState() != CLIENT_STATE.DISCONNECTED) { 36 | System.out.println("Sending "); 37 | client.send("\n"); 38 | } 39 | 40 | } 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /capture-server/capture/ConfigManager.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.HashMap; 4 | import java.util.Observable; 5 | 6 | public class ConfigManager extends Observable { 7 | private HashMap configOptions; 8 | private ConfigFile configFile; 9 | 10 | private ConfigManager() 11 | { 12 | configOptions = new HashMap(); 13 | configFile = new ConfigFile(); 14 | } 15 | 16 | private static ConfigManager instance = new ConfigManager(); // No lazy initialization unless needed 17 | 18 | 19 | public static ConfigManager getInstance() 20 | { 21 | return instance; 22 | } 23 | 24 | public void loadConfigurationFile() 25 | { 26 | configFile.parse("config.xml"); 27 | } 28 | 29 | public String getConfigOption(String option) 30 | { 31 | String value = null; 32 | if(configOptions.containsKey(option)) 33 | { 34 | //System.out.println("Found option: " + option); 35 | value = configOptions.get(option); 36 | } else { 37 | ;//System.out.println("NOT Found option: " + option); 38 | } 39 | return value; 40 | } 41 | 42 | public boolean containsOption(String option) 43 | { 44 | return configOptions.containsKey(option); 45 | } 46 | 47 | public boolean setConfigOption(String option, String value) 48 | { 49 | boolean set = false; 50 | if(configOptions.containsKey(option)) 51 | { 52 | configOptions.remove(option); 53 | configOptions.put(option, value); 54 | this.setChanged(); 55 | this.notifyObservers(option); 56 | set = true; 57 | } 58 | return set; 59 | } 60 | 61 | public boolean addConfigOption(String option, String value) 62 | { 63 | boolean added = false; 64 | if(!configOptions.containsKey(option)) 65 | { 66 | configOptions.put(option, value); 67 | System.out.println("Option added: " + option + " => " + value); 68 | added = true; 69 | } 70 | return added; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /capture-server/capture/ERROR_CODES.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | public enum ERROR_CODES { 4 | /* Visitation major events */ 5 | OK (0x00000000), 6 | PRESTART (0x10000101), 7 | START (0x10000102), 8 | FINISH (0x10000103), 9 | POSTFINISH (0x10000104), 10 | NETWORK_ERROR (0x10000110), 11 | PROCESS_ERROR (0x10000111), 12 | TIMEOUT_ERROR (0x10000112), 13 | VISITATION_UNABLE_TO_START_CLIENT (0x10000114), 14 | VISITATION_MULTIPLE_ERRORS (0x10000113), 15 | VISITATION_EXCEPTION (0x10000200), 16 | VISITATION_WARNING (0x10000300), 17 | 18 | CAPTURE_CLIENT_INACTIVITY (0x10004000), 19 | VM_STALLED (0x10004100), 20 | CAPTURE_CLIENT_CONNECTION_RESET (0x10004200), //when client suddently drops the connection 21 | SOCKET_ERROR (0x10004300), 22 | INVALID_URL (0x10007000), 23 | 24 | 25 | /* Visitation minor events */ 26 | PE_PROCESS_TERMINATED_FORCEFULLY (0x10005000), 27 | PE_PROCESS_ALREADY_TERMINATED (0x10005001), 28 | PE_PROCESS_PATH_NOT_FOUND (0x10005002), 29 | PE_SENT_URL_TO_DISCONNECTED_CLIENT (0x10005003), 30 | 31 | NE_CANT_DOWNLOAD_TEMP_FILE (0x10005000), 32 | 33 | INVALID_ERROR_CODE_FROM_CLIENT (0x10006000); 34 | 35 | public long errorCode; 36 | 37 | 38 | ERROR_CODES(long p) { errorCode = p; } 39 | } 40 | -------------------------------------------------------------------------------- /capture-server/capture/Element.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.HashMap; 4 | import java.util.LinkedList; 5 | 6 | public class Element { 7 | public String name; 8 | public HashMap attributes; 9 | public String data; 10 | public LinkedList childElements; 11 | public Element parent; 12 | 13 | public Element() 14 | { 15 | attributes = new HashMap(); 16 | childElements = new LinkedList(); 17 | parent = null; 18 | data = ""; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /capture-server/capture/EventObserver.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | 4 | public interface EventObserver { 5 | 6 | public void update(Element event); 7 | } 8 | -------------------------------------------------------------------------------- /capture-server/capture/EventsController.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.HashMap; 4 | import java.util.LinkedList; 5 | import java.util.Set; 6 | import java.util.Iterator; 7 | 8 | public class EventsController { 9 | private HashMap> eventObservers; 10 | 11 | private EventsController() 12 | { 13 | eventObservers = new HashMap>(); 14 | } 15 | 16 | 17 | private final static EventsController instance = new EventsController(); 18 | 19 | public static EventsController getInstance() 20 | { 21 | return instance; 22 | } 23 | 24 | public void addEventObserver(String eventName, EventObserver o) 25 | { 26 | if(!eventObservers.containsKey(eventName)) 27 | { 28 | eventObservers.put(eventName, new LinkedList()); 29 | } 30 | //System.out.println("adding " + eventName + " event"); 31 | LinkedList observers = eventObservers.get(eventName); 32 | observers.add(o); 33 | } 34 | 35 | public void deleteEventObserver(String eventName, EventObserver o) 36 | { 37 | if(eventObservers.containsKey(eventName)) 38 | { 39 | LinkedList observers = eventObservers.get(eventName); 40 | if(observers.contains(o)) 41 | { 42 | observers.remove(o); 43 | } 44 | } 45 | } 46 | 47 | public void notifyEventObservers(Element event) 48 | { 49 | Set keys = eventObservers.keySet(); 50 | for (Iterator iterator = keys.iterator(); iterator.hasNext();) { 51 | Object key = iterator.next(); 52 | Object value = eventObservers.get(key); 53 | } 54 | if(eventObservers.containsKey(event.name)) 55 | { 56 | for(EventObserver observer : eventObservers.get(event.name)) 57 | { 58 | observer.update(event); 59 | } 60 | } 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /capture-server/capture/FactoryException.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | /** 4 | * PROJECT: Capture-HPC 5 | * DATE: Apr 13, 2008 6 | * FILE: FactoryException 7 | * COPYRIGHT HOLDER: Victoria University of Wellington, NZ 8 | * AUTHORS: Christian Seifert (christian.seifert@gmail.com) 9 | *

10 | * This file is part of Capture-HPC. 11 | *

12 | * Tiki is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License as published by 14 | * the Free Software Foundation; either version 2 of the License, or 15 | * (at your option) any later version. 16 | *

17 | * Tiki is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | * GNU General Public License for more details. 21 | *

22 | * You should have received a copy of the GNU General Public License 23 | * along with Capture-HPC; if not, write to the Free Software 24 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | */ 26 | public class FactoryException extends Exception { 27 | 28 | public FactoryException(String s) { 29 | super(s); 30 | } 31 | 32 | public FactoryException(String s, Exception e) { 33 | super(s,e); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /capture-server/capture/URL_STATE.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | 4 | public enum URL_STATE { 5 | NONE, 6 | QUEUED, 7 | VISITING, 8 | VISITED, 9 | ERROR 10 | } 11 | -------------------------------------------------------------------------------- /capture-server/capture/Updater.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.io.FileInputStream; 4 | import java.io.IOException; 5 | import java.net.InetAddress; 6 | import java.net.ServerSocket; 7 | import java.net.Socket; 8 | 9 | public class Updater implements Runnable { 10 | 11 | //public static char index []= "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 12 | 13 | public Updater() 14 | { 15 | 16 | Thread t = new Thread(this, "ServerUpdater"); 17 | t.start(); 18 | } 19 | 20 | public void run() 21 | { 22 | try 23 | { 24 | ServerSocket listener = new ServerSocket(7071, 0, 25 | InetAddress.getByName((String) ConfigManager.getInstance().getConfigOption("server_listen_address"))); 26 | Socket client; 27 | System.out.println("Updater: Listening for connections."); 28 | while (true) { 29 | client = listener.accept(); 30 | System.out.println("Client connected\n"); 31 | FileInputStream fInput = new FileInputStream((String) ConfigManager.getInstance().getConfigOption("client_latest_version_executable_name")); 32 | int offset = 0; 33 | byte[] tempBuf = new byte[1024]; 34 | while (fInput.read(tempBuf, 0, 1024) != -1) { 35 | client.getOutputStream().write(tempBuf); 36 | offset += 1024; 37 | } 38 | System.out.println("Done sending update\n"); 39 | client.getOutputStream().close(); 40 | fInput.close(); 41 | } 42 | } catch (IOException e){ 43 | e.printStackTrace(System.out); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /capture-server/capture/VirtualMachineServer.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.LinkedList; 4 | 5 | 6 | public interface VirtualMachineServer { 7 | 8 | public boolean revertVirtualMachineStateAsync(VirtualMachine vm); 9 | 10 | public void addVirtualMachine(VirtualMachine vm); 11 | public LinkedList getVirtualMachines(); 12 | 13 | public String getAddress(); 14 | public int getPort(); 15 | 16 | public boolean isLocatedAt(String address, String port); 17 | } 18 | -------------------------------------------------------------------------------- /capture-server/capture/VirtualMachineServerFactory.java: -------------------------------------------------------------------------------- 1 | package capture; 2 | 3 | import java.util.HashMap; 4 | 5 | public class VirtualMachineServerFactory { 6 | 7 | public VirtualMachineServer getVirtualMachineServer(String type, 8 | HashMap attributes) 9 | { 10 | if(type.equals("vmware-server")) 11 | { 12 | String address = attributes.get("address"); 13 | int port = Integer.parseInt(attributes.get("port")); 14 | String username = attributes.get("username"); 15 | String password = attributes.get("password"); 16 | 17 | VMwareServer vmServer = new VMwareServer(address, port, username, password); 18 | return vmServer; 19 | } else if(type.equals("mock-vm-server")) 20 | { 21 | String address = attributes.get("address"); 22 | int port = Integer.parseInt(attributes.get("port")); 23 | String username = attributes.get("username"); 24 | String password = attributes.get("password"); 25 | 26 | MockVirtualMachineServer mockVirtualMachineServer = new MockVirtualMachineServer(address, port, username, password); 27 | return mockVirtualMachineServer; 28 | } else if(type.equals("no-vm-server")) 29 | { 30 | String address = attributes.get("address"); 31 | int port = Integer.parseInt(attributes.get("port")); 32 | String username = attributes.get("username"); 33 | String password = attributes.get("password"); 34 | 35 | NoVirtualMachineServer noVirtualMachineServer = new NoVirtualMachineServer(address, port, username, password); 36 | return noVirtualMachineServer; 37 | 38 | } 39 | 40 | return null; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /capture-server/compile_README.txt: -------------------------------------------------------------------------------- 1 | 1. Capture Server Compilation Instructions 2 | ------------------------------------------ 3 | For convenient compilation, we provide an Ant script for easy compilation of the Capture Server. 4 | 5 | 2. Prerequisites 6 | ---------------- 7 | One needs Apache Ant 1.7.0 (available at http://ant.apache.org) with Ant Contrib 1.0 (available at http://ant-contrib.sourceforge.net/), Sun's Java JDK 1.6.0_02 (available at http://sun.java.com), the VMware VIX (part of VMware Server 1.0.5) (available from http://www.vmware.com) and a C compiler. We use Microsoft Visual Studio C++ 2008 (available from http://msdn.microsoft.com/vstudio/express/downloads/) on our Windows build environment and GCC on the Linux build environment. 8 | 9 | Ensure that the following environment variables are set: 10 | JAVA_HOME 11 | VIX_LIB 12 | VIX_INCLUDE 13 | VIX_HOME 14 | ANT_HOME 15 | 16 | Ensure that the following directories are in the PATH: 17 | JAVA_HOME/bin 18 | ANT_HOME/bin 19 | MYSQL/bin 20 | VCINSTALLDIR/bin for Windows 21 | path to gcc for Linux 22 | 23 | For database options: 24 | - Database server: No database (text file based), MySQL server 5.1, or PostgreSQL server 8.3 25 | 26 | 27 | 3. Compilation 28 | -------------- 29 | Open a Visual Studio 2008 Command Prompt on Windows/ regular terminal windows on Linux and cd into directory of the Capture Server source. Type ant and press enter. This script will: 30 | - compile the java source and package the class files into a jar 31 | - compile the revert application 32 | - copy the relevant files into the release directory. 33 | - package the compiled server files into CaptureServer-Release.zip 34 | 35 | The uncompressed release will be located in the release directory. Please refer to the Readme.txt file on how to configure and run the server. 36 | -------------------------------------------------------------------------------- /capture-server/compile_revert_linux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo $VIX_INCLUDE 3 | gcc -I $VIX_INCLUDE -o revert revert.c $VIX_LIB/libvmware-vix.so 4 | -------------------------------------------------------------------------------- /capture-server/compile_revert_win32.bat: -------------------------------------------------------------------------------- 1 | cl -I "%VIX_INCLUDE%" revert.c /MT /link "%VIX_LIB%\vix.lib" 2 | 3 | -------------------------------------------------------------------------------- /capture-server/input_urls_example.txt: -------------------------------------------------------------------------------- 1 | #several urls. as shown below, one can specify a client application identifier (iexplore) as well as overwrite the default visitation time for the url 2 | http://www.google.com 3 | http://www.google.de 4 | http://www.google.fr 5 | http://www.google.it 6 | http://www.google.co.nz 7 | 8 | -------------------------------------------------------------------------------- /capture-server/lib/commons-dbcp-1.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/lib/commons-dbcp-1.2.2.jar -------------------------------------------------------------------------------- /capture-server/lib/commons-pool-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/lib/commons-pool-1.4.jar -------------------------------------------------------------------------------- /capture-server/lib/junit-4.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/lib/junit-4.4.jar -------------------------------------------------------------------------------- /capture-server/lib/mysql-connector-java-5.1.7-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/lib/mysql-connector-java-5.1.7-bin.jar -------------------------------------------------------------------------------- /capture-server/lib/postgresql-8.3-604.jdbc4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/lib/postgresql-8.3-604.jdbc4.jar -------------------------------------------------------------------------------- /capture-server/postprocessor_README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/postprocessor_README.txt -------------------------------------------------------------------------------- /capture-server/preprocessor_README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/capture-server/preprocessor_README.txt -------------------------------------------------------------------------------- /capture-server/utilities/remove_mysql_database.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # shell script to remove Capture-HPC database (It uses some scripts from bacula.org) 4 | # 5 | # The path to postgreSQL bin directory 6 | bindir=/usr/bin/ 7 | 8 | # Database name 9 | db_name=capturehpc 10 | # Database account which this script is going to create 11 | username=capture 12 | password=capture 13 | 14 | echo "This script is going to remove dabase, related tables and user $username" 15 | echo "If you are asked for password, please enter the password for root user!" 16 | echo "" 17 | echo "It is going to remove database $db_name and user $username..." 18 | if $bindir/mysql -u root -p <m_bDetectLibMemoryLeaks ? &m_list : 0; 24 | } 25 | 26 | void CBaseLibCompressor::EmptyPtrList() 27 | { 28 | if (m_list.GetCount()) 29 | { 30 | // if some memory hasn't been freed due to an error in zlib, so free it now 31 | CZipPtrListIter iter = m_list.GetHeadPosition(); 32 | while (m_list.IteratorValid(iter)) 33 | delete[] (char*) m_list.GetNext(iter); 34 | } 35 | m_list.RemoveAll(); 36 | } 37 | 38 | } // namespace 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Bzip2Compressor.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Bzip2Compressor.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | -------------------------------------------------------------------------------- /vendor/ZipArchive/FileFilter.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #if defined _MSC_VER && _MSC_VER < 1300 16 | // STL warnings 17 | #include "stdafx.h" 18 | #pragma warning (push, 3) 19 | #endif 20 | 21 | #include "FileFilter.h" 22 | 23 | namespace ZipArchiveLib 24 | { 25 | 26 | bool CGroupFileFilter::Accept(LPCTSTR lpszParentDir, LPCTSTR lpszName, const CFileInfo& info) 27 | { 28 | bool conditionToBreak; 29 | bool valueToReturn; 30 | 31 | // handle the evaluation as quickly as possible 32 | if (m_iType == CGroupFileFilter::And) 33 | { 34 | conditionToBreak = false; 35 | valueToReturn = m_bInverted; 36 | } 37 | else 38 | { 39 | conditionToBreak = true; 40 | valueToReturn = !m_bInverted; 41 | } 42 | 43 | for (ZIP_ARRAY_SIZE_TYPE i = 0; i < m_filters.GetSize(); i++) 44 | { 45 | CFileFilter* pFilter = m_filters[i]; 46 | if (pFilter->HandlesFile(info) && pFilter->Evaluate(lpszParentDir, lpszName, info) == conditionToBreak) 47 | return valueToReturn; 48 | } 49 | 50 | return !valueToReturn; 51 | 52 | } 53 | 54 | } // namespace 55 | 56 | 57 | #if defined _MSC_VER && _MSC_VER < 1300 58 | // STL warnings 59 | #pragma warning (pop) 60 | #endif 61 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Hmac.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Hmac.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | -------------------------------------------------------------------------------- /vendor/ZipArchive/RandomPool.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | -------------------------------------------------------------------------------- /vendor/ZipArchive/RandomPool.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Sha1.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | -------------------------------------------------------------------------------- /vendor/ZipArchive/Sha1.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipAesCryptograph.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipAesCryptograph.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipBaseException.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipBaseException.h 17 | * Contains a type definition of the base exception class. 18 | * 19 | */ 20 | 21 | #ifndef ZIPARCHIVE_ZIPBASEEXCEPTION_DOT_H 22 | #define ZIPARCHIVE_ZIPBASEEXCEPTION_DOT_H 23 | 24 | #ifdef ZIP_ARCHIVE_STL 25 | typedef std::exception CZipBaseException; 26 | #else 27 | typedef CException CZipBaseException; 28 | #endif 29 | 30 | #endif //ZIPARCHIVE_ZIPBASEEXCEPTION_DOT_H 31 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipCollections.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipCollections.h 17 | * Includes the collections classes used by the ZipArchive Library. 18 | * 19 | */ 20 | 21 | 22 | #ifndef ZIPARCHIVE_ZIPCOLLECTIONS_DOT_H 23 | #define ZIPARCHIVE_ZIPCOLLECTIONS_DOT_H 24 | 25 | #if _MSC_VER > 1000 26 | #pragma once 27 | #endif 28 | 29 | #include "_platform.h" 30 | #include "ZipExport.h" 31 | 32 | #ifdef ZIP_ARCHIVE_STL 33 | #include "ZipCollections_stl.h" 34 | #else 35 | #include "ZipCollections_mfc.h" 36 | #endif 37 | 38 | typedef CZipArray CZipIndexesArray; 39 | 40 | #endif /* ZIPARCHIVE_ZIPCOLLECTIONS_DOT_H */ 41 | 42 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipExport.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipExport.h 17 | * Contains the Windows DLL exports definitions. 18 | * 19 | */ 20 | 21 | 22 | #if !defined (ZIPARCHIVE_ZIPEXPORT_DOT_H) 23 | #define ZIPARCHIVE_ZIPEXPORT_DOT_H 24 | 25 | #if defined (ZIP_HAS_DLL) 26 | # if defined (ZIP_BUILD_DLL) 27 | # define ZIP_API __declspec (dllexport) 28 | # else 29 | # define ZIP_API __declspec (dllimport) 30 | # endif 31 | #else 32 | # define ZIP_API 33 | #endif /* ZIP_HAS_DLL */ 34 | 35 | #endif /* ZIPARCHIVE_ZIPEXPORT_DOT_H */ 36 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipExtraData.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "stdafx.h" 16 | #include "ZipArchive.h" 17 | #include "ZipExtraData.h" 18 | #include "BytesWriter.h" 19 | 20 | using namespace ZipArchiveLib; 21 | 22 | bool CZipExtraData::Read(char* buffer, WORD uSize) 23 | { 24 | if (uSize < 4) 25 | return false; 26 | WORD size; 27 | CBytesWriter::ReadBytes(m_uHeaderID, buffer); 28 | CBytesWriter::ReadBytes(size, buffer + 2); 29 | if (uSize - 4 < size) 30 | return false; 31 | m_data.Allocate(size); 32 | memcpy(m_data, buffer + 4, size); 33 | return true; 34 | } 35 | 36 | WORD CZipExtraData::Write(char* buffer)const 37 | { 38 | CBytesWriter::WriteBytes(buffer, m_uHeaderID); 39 | WORD size = (WORD)m_data.GetSize(); 40 | CBytesWriter::WriteBytes(buffer + 2, size); 41 | memcpy(buffer + 4, m_data, size); 42 | return (WORD)(size + 4); 43 | } 44 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipFile.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipFile.h 17 | * Includes the CZipFile class. 18 | * 19 | */ 20 | 21 | 22 | #if !defined(ZIPARCHIVE_ZIPFILE_DOT_H) 23 | #define ZIPARCHIVE_ZIPFILE_DOT_H 24 | 25 | #if _MSC_VER > 1000 26 | #pragma once 27 | #endif 28 | 29 | #include "_features.h" 30 | 31 | #if defined ZIP_ARCHIVE_STL || defined ZIP_FILE_USES_STL 32 | #include "ZipFile_stl.h" 33 | #else 34 | #include "ZipFile_mfc.h" 35 | #endif 36 | 37 | 38 | 39 | #endif // !defined(ZIPARCHIVE_ZIPFILE_DOT_H) 40 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipFileMapping.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipFileMapping.h 17 | * Includes the ZipArchiveLib::CZipFileMapping class. 18 | * 19 | */ 20 | 21 | 22 | #if !defined(ZIPARCHIVE_ZIPFILEMAPPING_DOT_H) 23 | #define ZIPARCHIVE_ZIPFILEMAPPING_DOT_H 24 | 25 | #if _MSC_VER > 1000 26 | #pragma once 27 | #endif 28 | 29 | #include "_platform.h" 30 | 31 | #ifdef ZIP_ARCHIVE_WIN 32 | #include "ZipFileMapping_win.h" 33 | #else 34 | #include "ZipFileMapping_lnx.h" 35 | #endif 36 | 37 | #endif // !defined(ZIPARCHIVE_ZIPFILEMAPPING_DOT_H) 38 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipFileMapping_lnx.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #ifndef ZIPARCHIVE_ZIPFILEMAPPING_DOT_H 16 | #error Do not include this file directly. Include ZipFileMapping.h instead 17 | #endif 18 | 19 | 20 | #include 21 | 22 | namespace ZipArchiveLib 23 | { 24 | struct CZipFileMapping 25 | { 26 | CZipFileMapping() 27 | { 28 | m_iSize = 0; 29 | m_pFileMap = NULL; 30 | } 31 | bool CreateMapping(CZipFile* pFile) 32 | { 33 | if (!pFile) 34 | return false; 35 | m_iSize = pFile->GetLength(); 36 | m_pFileMap = mmap(0, m_iSize, PROT_READ|PROT_WRITE, MAP_SHARED, pFile->m_hFile, 0); 37 | return (m_pFileMap != NULL); 38 | } 39 | void RemoveMapping() 40 | { 41 | 42 | if (m_pFileMap) 43 | { 44 | munmap(m_pFileMap, m_iSize); 45 | m_pFileMap = NULL; 46 | } 47 | } 48 | ~CZipFileMapping() 49 | { 50 | RemoveMapping(); 51 | } 52 | char* GetMappedMemory() 53 | { 54 | return reinterpret_cast (m_pFileMap); 55 | } 56 | protected: 57 | void* m_pFileMap; 58 | size_t m_iSize; 59 | 60 | }; 61 | } 62 | 63 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipFile_mfc.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "_features.h" 16 | 17 | #if defined ZIP_ARCHIVE_MFC && !defined ZIP_FILE_USES_STL 18 | 19 | #include "stdafx.h" 20 | #include "ZipFile.h" 21 | 22 | // IMPLEMENT_DYNAMIC(CZipAbstractFile, CFile) 23 | IMPLEMENT_DYNAMIC(CZipFile, CFile) 24 | 25 | CZipFile::CZipFile() 26 | { 27 | } 28 | 29 | CZipFile::~CZipFile() 30 | { 31 | Close(); 32 | } 33 | 34 | CZipFile::operator HANDLE() 35 | { 36 | return (HANDLE)m_hFile; 37 | } 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipMutex.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipMutex.h 17 | * Includes the ZipArchiveLib::CZipMutex class. 18 | * 19 | */ 20 | 21 | #if !defined(ZIPARCHIVE_ZIPMUTEX_DOT_H) 22 | #define ZIPARCHIVE_ZIPMUTEX_DOT_H 23 | 24 | #if _MSC_VER > 1000 25 | #pragma once 26 | #endif 27 | 28 | #include "_features.h" 29 | 30 | #ifdef ZIP_ARCHIVE_LNX 31 | #include "ZipMutex_lnx.h" 32 | #else 33 | #include "ZipMutex_win.h" 34 | #endif 35 | 36 | 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipString.cpp: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #include "stdafx.h" 16 | #include "ZipString.h" 17 | 18 | ZIPSTRINGCOMPARE GetCZipStrCompFunc(bool bCaseSensitive, bool bCollate) 19 | { 20 | if (bCollate) 21 | return bCaseSensitive ? & CZipString::Collate : & CZipString::CollateNoCase; 22 | else 23 | return bCaseSensitive ? & CZipString::Compare : & CZipString::CompareNoCase; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipString.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | /** 16 | * \file ZipString.h 17 | * Includes the CZipString class. 18 | * 19 | */ 20 | 21 | 22 | #ifndef ZIPARCHIVE_ZIPSTRING_DOT_H 23 | #define ZIPARCHIVE_ZIPSTRING_DOT_H 24 | 25 | #if _MSC_VER > 1000 26 | #pragma once 27 | #endif 28 | 29 | #include "_platform.h" 30 | 31 | #ifdef ZIP_ARCHIVE_STL 32 | #include "ZipString_stl.h" 33 | #else 34 | #include "ZipString_mfc.h" 35 | #endif 36 | 37 | #endif /* ZIPARCHIVE_ZIPSTRING_DOT_H */ 38 | -------------------------------------------------------------------------------- /vendor/ZipArchive/ZipString_mfc.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #ifndef ZIPARCHIVE_ZIPSTRING_DOT_H 16 | #error Do not include this file directly. Include ZipString.h instead 17 | #endif 18 | 19 | 20 | #include "stdafx.h" 21 | #include "ZipExport.h" 22 | 23 | typedef CString CZipString; 24 | 25 | /** 26 | A pointer type to point to one of: Collate, CollateNoCase, Compare, CompareNoCase. 27 | */ 28 | typedef int (CZipString::*ZIPSTRINGCOMPARE)( LPCTSTR ) const; 29 | 30 | /** 31 | Return a pointer to a method in the CZipString structure, 32 | used to compare elements depending on the arguments. 33 | */ 34 | ZIP_API ZIPSTRINGCOMPARE GetCZipStrCompFunc(bool bCaseSensitive, bool bCollate = true); 35 | -------------------------------------------------------------------------------- /vendor/ZipArchive/_readme.txt: -------------------------------------------------------------------------------- 1 | The complete functionality of the ZipArchive Library (with Zip64, AES and BZIP2) is available in the commercial version. 2 | To evaluate the full version, please visit http://www.artpol-software.com/DownloadTrial.aspx -------------------------------------------------------------------------------- /vendor/ZipArchive/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ZipArchive.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 101 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /vendor/ZipArchive/std_mfc.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////////// 2 | // This source file is part of the ZipArchive library source distribution and 3 | // is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz 4 | // 5 | // This program is free software; you can redistribute it and/or 6 | // modify it under the terms of the GNU General Public License 7 | // as published by the Free Software Foundation; either version 2 8 | // of the License, or (at your option) any later version. 9 | // 10 | // For the licensing details refer to the License.txt file. 11 | // 12 | // Web Site: http://www.artpol-software.com 13 | //////////////////////////////////////////////////////////////////////////////// 14 | 15 | #ifndef ZIPARCHIVE_STDAFX_DOT_H 16 | #error Do not include this file directly. Include stdafx.h instead 17 | #endif 18 | 19 | #if _MSC_VER > 1000 20 | #ifndef WINVER 21 | #define WINVER 0x0400 22 | #endif 23 | #pragma once 24 | #endif 25 | 26 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 27 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 28 | 29 | #ifndef VC_EXTRALEAN 30 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 31 | #endif 32 | 33 | #include 34 | #include 35 | 36 | typedef BOOL ZBOOL; 37 | 38 | #if _MSC_VER >= 1300 || defined ZIP_FILE_USES_STL 39 | #define ZIP_FILE_USIZE ULONGLONG 40 | #define ZIP_FILE_SIZE LONGLONG 41 | #define ZIP_FILE_SIZEMAX _I64_MAX 42 | #else 43 | #define ZIP_FILE_USIZE DWORD 44 | #define ZIP_FILE_SIZE LONG 45 | #define ZIP_FILE_SIZEMAX MAXLONG 46 | #endif -------------------------------------------------------------------------------- /vendor/ZipArchive/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /vendor/ZipArchive/zlib/zlib.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | ; zlib data compression library 3 | 4 | EXPORTS 5 | ; basic functions 6 | zlibVersion 7 | deflate 8 | deflateEnd 9 | inflate 10 | inflateEnd 11 | ; advanced functions 12 | deflateSetDictionary 13 | deflateCopy 14 | deflateReset 15 | deflateParams 16 | deflateBound 17 | deflatePrime 18 | inflateSetDictionary 19 | inflateSync 20 | inflateCopy 21 | inflateReset 22 | inflateBack 23 | inflateBackEnd 24 | zlibCompileFlags 25 | ; utility functions 26 | compress 27 | compress2 28 | compressBound 29 | uncompress 30 | ; gzopen 31 | ; gzdopen 32 | ; gzsetparams 33 | ; gzread 34 | ; gzwrite 35 | ; gzprintf 36 | ; gzputs 37 | ; gzgets 38 | ; gzputc 39 | ; gzgetc 40 | ; gzungetc 41 | ; gzflush 42 | ; gzseek 43 | ; gzrewind 44 | ; gztell 45 | ; gzeof 46 | ; gzclose 47 | ; gzerror 48 | ; gzclearerr 49 | ; checksum functions 50 | adler32 51 | crc32 52 | ; various hacks, don't look :) 53 | deflateInit_ 54 | deflateInit2_ 55 | inflateInit_ 56 | inflateInit2_ 57 | inflateBackInit_ 58 | inflateSyncPoint 59 | get_crc_table 60 | zError 61 | -------------------------------------------------------------------------------- /vendor/expat/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd 2 | and Clark Cooper 3 | Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /vendor/expat/amiga/include/proto/expat.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTO_EXPAT_H 2 | #define PROTO_EXPAT_H 3 | 4 | #ifndef LIBRARIES_EXPAT_H 5 | #include 6 | #endif 7 | 8 | /****************************************************************************/ 9 | 10 | #ifndef __NOLIBBASE__ 11 | #ifndef __USE_BASETYPE__ 12 | extern struct Library * ExpatBase; 13 | #else 14 | extern struct Library * ExpatBase; 15 | #endif /* __USE_BASETYPE__ */ 16 | #endif /* __NOLIBBASE__ */ 17 | 18 | /****************************************************************************/ 19 | 20 | #ifdef __amigaos4__ 21 | #include 22 | #ifdef __USE_INLINE__ 23 | #include 24 | #endif /* __USE_INLINE__ */ 25 | #ifndef CLIB_EXPAT_PROTOS_H 26 | #define CLIB_EXPAT_PROTOS_H 1 27 | #endif /* CLIB_EXPAT_PROTOS_H */ 28 | #ifndef __NOGLOBALIFACE__ 29 | extern struct ExpatIFace *IExpat; 30 | #endif /* __NOGLOBALIFACE__ */ 31 | #else /* __amigaos4__ */ 32 | #ifndef CLIB_EXPAT_PROTOS_H 33 | #include 34 | #endif /* CLIB_EXPAT_PROTOS_H */ 35 | #if defined(__GNUC__) 36 | #ifndef __PPC__ 37 | #include 38 | #else 39 | #include 40 | #endif /* __PPC__ */ 41 | #elif defined(__VBCC__) 42 | #ifndef __PPC__ 43 | #include 44 | #endif /* __PPC__ */ 45 | #else 46 | #include 47 | #endif /* __GNUC__ */ 48 | #endif /* __amigaos4__ */ 49 | 50 | /****************************************************************************/ 51 | 52 | #endif /* PROTO_EXPAT_H */ 53 | -------------------------------------------------------------------------------- /vendor/expat/amiga/launch.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2001-2007 Expat maintainers. 3 | ** 4 | ** Permission is hereby granted, free of charge, to any person obtaining 5 | ** a copy of this software and associated documentation files (the 6 | ** "Software"), to deal in the Software without restriction, including 7 | ** without limitation the rights to use, copy, modify, merge, publish, 8 | ** distribute, sublicense, and/or sell copies of the Software, and to 9 | ** permit persons to whom the Software is furnished to do so, subject to 10 | ** the following conditions: 11 | ** 12 | ** The above copyright notice and this permission notice shall be included 13 | ** in all copies or substantial portions of the Software. 14 | ** 15 | ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 19 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 20 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | 24 | #include 25 | #include 26 | 27 | struct Library* ExpatBase = 0; 28 | struct ExpatIFace* IExpat = 0; 29 | 30 | 31 | void setup() __attribute__((constructor)); 32 | void cleanup() __attribute__((destructor)); 33 | 34 | 35 | void setup() 36 | { 37 | ExpatBase = OpenLibrary("expat.library", 4); 38 | IExpat = (struct ExpatIFace*)GetInterface(ExpatBase, "main", 1, NULL); 39 | if ( IExpat == 0 ) { 40 | DebugPrintF("Can't open expat.library\n"); 41 | } 42 | } 43 | 44 | 45 | void cleanup() 46 | { 47 | if ( IExpat != 0 ) { 48 | DropInterface((struct Interface*)IExpat); 49 | IExpat = 0; 50 | } 51 | 52 | if ( ExpatBase != 0 ) { 53 | CloseLibrary(ExpatBase); 54 | ExpatBase = 0; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/all_projects.bpg: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------------ 2 | VERSION = BWS.01 3 | #------------------------------------------------------------------------------ 4 | !ifndef ROOT 5 | ROOT = $(MAKEDIR)\.. 6 | !endif 7 | #------------------------------------------------------------------------------ 8 | MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$** 9 | DCC = $(ROOT)\bin\dcc32.exe $** 10 | BRCC = $(ROOT)\bin\brcc32.exe $** 11 | #------------------------------------------------------------------------------ 12 | PROJECTS = setup libexpat_mtd.dll libexpats_mtd.lib libexpatw_mtd.dll \ 13 | libexpatws_mtd.lib elements.exe outline.exe xmlwf.exe 14 | #------------------------------------------------------------------------------ 15 | default: $(PROJECTS) 16 | #------------------------------------------------------------------------------ 17 | 18 | libexpat_mtd.dll: expat.bpr 19 | $(ROOT)\bin\bpr2mak $** 20 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 21 | 22 | libexpats_mtd.lib: expat_static.bpr 23 | $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $** 24 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 25 | 26 | libexpatw_mtd.dll: expatw.bpr 27 | $(ROOT)\bin\bpr2mak $** 28 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 29 | 30 | libexpatws_mtd.lib: expatw_static.bpr 31 | $(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $** 32 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 33 | 34 | elements.exe: elements.bpr 35 | $(ROOT)\bin\bpr2mak $** 36 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 37 | 38 | outline.exe: outline.bpr 39 | $(ROOT)\bin\bpr2mak $** 40 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 41 | 42 | xmlwf.exe: xmlwf.bpr 43 | $(ROOT)\bin\bpr2mak $** 44 | $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak 45 | 46 | setup: setup.bat 47 | call $** 48 | 49 | 50 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/elements.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\examples\elements.c"); 2 | USELIB("Release\libexpats_mtd.lib"); 3 | //--------------------------------------------------------------------------- 4 | main 5 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/expat.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | USEDEF("libexpat_mtd.def"); 5 | //--------------------------------------------------------------------------- 6 | #define DllEntryPoint 7 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/expat_static.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | //--------------------------------------------------------------------------- 5 | #define Library 6 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/expatw.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | USEDEF("libexpatw_mtd.def"); 5 | //--------------------------------------------------------------------------- 6 | #define DllEntryPoint 7 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/expatw_static.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\lib\xmlparse.c"); 2 | USEUNIT("..\lib\xmlrole.c"); 3 | USEUNIT("..\lib\xmltok.c"); 4 | //--------------------------------------------------------------------------- 5 | #define Library 6 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/makefile.mak: -------------------------------------------------------------------------------- 1 | all: setup expat expatw expat_static expatw_static elements outline xmlwf 2 | 3 | setup: 4 | setup 5 | 6 | expat: 7 | make -l -fexpat.mak 8 | 9 | expatw: 10 | make -l -fexpatw.mak 11 | 12 | expat_static: 13 | make -l -fexpat_static.mak 14 | 15 | expatw_static: 16 | make -l -fexpatw_static.mak 17 | 18 | elements: 19 | make -l -felements.mak 20 | 21 | outline: 22 | make -l -foutline.mak 23 | 24 | xmlwf: 25 | make -l -fxmlwf.mak 26 | 27 | clean: 28 | # works on Win98/ME 29 | # deltree /y release\obj 30 | # works on WinNT/2000 31 | del /s/f/q release\obj 32 | 33 | distclean: 34 | # works on Win98/ME 35 | # deltree /y release\*.* 36 | # works on WinNT/2000 37 | del /s/f/q release\* 38 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/outline.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\examples\outline.c"); 2 | USELIB("Release\libexpat_mtd.lib"); 3 | //--------------------------------------------------------------------------- 4 | main 5 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/setup.bat: -------------------------------------------------------------------------------- 1 | REM CommandInterpreter: $(COMSPEC) 2 | if not exist .\release\nul mkdir release 3 | if not exist .\release\obj\nul mkdir release\obj 4 | if not exist .\release\obj\libexpat\nul mkdir release\obj\libexpat 5 | if not exist .\release\obj\libexpatw\nul mkdir release\obj\libexpatw 6 | if not exist .\release\obj\libexpat_static\nul mkdir release\obj\libexpat_static 7 | if not exist .\release\obj\libexpatw_static\nul mkdir release\obj\libexpatw_static 8 | if not exist .\release\obj\examples\nul mkdir release\obj\examples 9 | if not exist .\release\obj\xmlwf\nul mkdir release\obj\xmlwf 10 | -------------------------------------------------------------------------------- /vendor/expat/bcb5/xmlwf.bpf: -------------------------------------------------------------------------------- 1 | USEUNIT("..\xmlwf\codepage.c"); 2 | USEUNIT("..\xmlwf\win32filemap.c"); 3 | USEUNIT("..\xmlwf\xmlfile.c"); 4 | USEUNIT("..\xmlwf\xmlwf.c"); 5 | USELIB("Release\libexpat_mtd.lib"); 6 | //--------------------------------------------------------------------------- 7 | main 8 | -------------------------------------------------------------------------------- /vendor/expat/conftools/expat.m4: -------------------------------------------------------------------------------- 1 | dnl Check if --with-expat[=PREFIX] is specified and 2 | dnl Expat >= 1.95.0 is installed in the system. 3 | dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to 4 | dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX 5 | dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined. 6 | dnl If --with-expat has not been specified, set with_expat to 'no'. 7 | dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly. 8 | dnl This is necessary to adapt a whole lot of packages that have expat 9 | dnl bundled as a static library. 10 | AC_DEFUN(AM_WITH_EXPAT, 11 | [ AC_ARG_WITH(expat, 12 | [ --with-expat=PREFIX Use system Expat library], 13 | , with_expat=no) 14 | 15 | AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no) 16 | 17 | EXPAT_CFLAGS= 18 | EXPAT_LIBS= 19 | if test $with_expat != no; then 20 | if test $with_expat != yes; then 21 | EXPAT_CFLAGS="-I$with_expat/include" 22 | EXPAT_LIBS="-L$with_expat/lib" 23 | fi 24 | AC_CHECK_LIB(expat, XML_ParserCreate, 25 | [ EXPAT_LIBS="$EXPAT_LIBS -lexpat" 26 | expat_found=yes ], 27 | [ expat_found=no ], 28 | "$EXPAT_LIBS") 29 | if test $expat_found = no; then 30 | AC_MSG_ERROR([Could not find the Expat library]) 31 | fi 32 | expat_save_CFLAGS="$CFLAGS" 33 | CFLAGS="$CFLAGS $EXPAT_CFLAGS" 34 | AC_CHECK_HEADERS(expat.h, , expat_found=no) 35 | if test $expat_found = no; then 36 | AC_MSG_ERROR([Could not find expat.h]) 37 | fi 38 | CFLAGS="$expat_save_CFLAGS" 39 | fi 40 | 41 | AC_SUBST(EXPAT_CFLAGS) 42 | AC_SUBST(EXPAT_LIBS) 43 | ]) 44 | -------------------------------------------------------------------------------- /vendor/expat/conftools/get-version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # USAGE: get-version.sh path/to/expat.h 4 | # 5 | # This script will print Expat's version number on stdout. For example: 6 | # 7 | # $ ./conftools/get-version.sh ./lib/expat.h 8 | # 1.95.3 9 | # $ 10 | # 11 | 12 | if test $# = 0; then 13 | echo "ERROR: pathname for expat.h was not provided." 14 | echo "" 15 | echo "USAGE: $0 path/to/expat.h" 16 | exit 1 17 | fi 18 | if test $# != 1; then 19 | echo "ERROR: too many arguments were provided." 20 | echo "" 21 | echo "USAGE: $0 path/to/expat.h" 22 | exit 1 23 | fi 24 | 25 | hdr="$1" 26 | if test ! -r "$hdr"; then 27 | echo "ERROR: '$hdr' does not exist, or is not readable." 28 | exit 1 29 | fi 30 | 31 | MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`" 32 | MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`" 33 | MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`" 34 | 35 | # Determine how to tell echo not to print the trailing \n. This is 36 | # similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't 37 | # generate this file via autoconf (in fact, get-version.sh is used 38 | # to *create* ./configure), so we just do something similar inline. 39 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 40 | *c*,-n*) ECHO_N= ECHO_C=' 41 | ' ;; 42 | *c*,* ) ECHO_N=-n ECHO_C= ;; 43 | *) ECHO_N= ECHO_C='\c' ;; 44 | esac 45 | 46 | echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C" 47 | -------------------------------------------------------------------------------- /vendor/expat/conftools/mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman 4 | # Created: 1993-05-16 5 | # Public domain 6 | 7 | # $Id: mkinstalldirs,v 1.1 2000/09/18 16:26:21 coopercc Exp $ 8 | 9 | errstatus=0 10 | 11 | for file 12 | do 13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 14 | shift 15 | 16 | pathcomp= 17 | for d 18 | do 19 | pathcomp="$pathcomp$d" 20 | case "$pathcomp" in 21 | -* ) pathcomp=./$pathcomp ;; 22 | esac 23 | 24 | if test ! -d "$pathcomp"; then 25 | echo "mkdir $pathcomp" 26 | 27 | mkdir "$pathcomp" || lasterr=$? 28 | 29 | if test ! -d "$pathcomp"; then 30 | errstatus=$lasterr 31 | fi 32 | fi 33 | 34 | pathcomp="$pathcomp/" 35 | done 36 | done 37 | 38 | exit $errstatus 39 | 40 | # mkinstalldirs ends here 41 | -------------------------------------------------------------------------------- /vendor/expat/doc/expat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/expat/doc/expat.png -------------------------------------------------------------------------------- /vendor/expat/doc/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: white; 3 | border: 0px; 4 | margin: 0px; 5 | padding: 0px; 6 | } 7 | 8 | .corner { 9 | width: 200px; 10 | height: 80px; 11 | text-align: center; 12 | } 13 | 14 | .banner { 15 | background-color: rgb(110,139,61); 16 | color: rgb(255,236,176); 17 | padding-left: 2em; 18 | } 19 | 20 | .banner h1 { 21 | font-size: 200%; 22 | } 23 | 24 | .content { 25 | padding: 0em 2em 1em 2em; 26 | } 27 | 28 | .releaseno { 29 | background-color: rgb(110,139,61); 30 | color: rgb(255,236,176); 31 | padding-bottom: 0.3em; 32 | padding-top: 0.5em; 33 | text-align: center; 34 | font-weight: bold; 35 | } 36 | 37 | .noborder { 38 | border-width: 0px; 39 | } 40 | 41 | .eg { 42 | padding-left: 1em; 43 | padding-top: .5em; 44 | padding-bottom: .5em; 45 | border: solid thin; 46 | margin: 1em 0; 47 | background-color: tan; 48 | margin-left: 2em; 49 | margin-right: 10%; 50 | } 51 | 52 | .pseudocode { 53 | padding-left: 1em; 54 | padding-top: .5em; 55 | padding-bottom: .5em; 56 | border: solid thin; 57 | margin: 1em 0; 58 | background-color: rgb(250,220,180); 59 | margin-left: 2em; 60 | margin-right: 10%; 61 | } 62 | 63 | .handler { 64 | width: 100%; 65 | border-top-width: thin; 66 | margin-bottom: 1em; 67 | } 68 | 69 | .handler p { 70 | margin-left: 2em; 71 | } 72 | 73 | .setter { 74 | font-weight: bold; 75 | } 76 | 77 | .signature { 78 | color: navy; 79 | } 80 | 81 | .fcndec { 82 | width: 100%; 83 | border-top-width: thin; 84 | font-weight: bold; 85 | } 86 | 87 | .fcndef { 88 | margin-left: 2em; 89 | margin-bottom: 2em; 90 | } 91 | 92 | dd { 93 | margin-bottom: 2em; 94 | } 95 | 96 | .cpp-symbols dt { 97 | font-family: monospace; 98 | } 99 | .cpp-symbols dd { 100 | margin-bottom: 1em; 101 | } 102 | -------------------------------------------------------------------------------- /vendor/expat/doc/valid-xhtml10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/expat/doc/valid-xhtml10.png -------------------------------------------------------------------------------- /vendor/expat/examples/elements.c: -------------------------------------------------------------------------------- 1 | /* This is simple demonstration of how to use expat. This program 2 | reads an XML document from standard input and writes a line with 3 | the name of each element to standard output indenting child 4 | elements by one tab stop more than their parent element. 5 | It must be used with Expat compiled for UTF-8 output. 6 | */ 7 | 8 | #include 9 | #include "expat.h" 10 | 11 | #if defined(__amigaos__) && defined(__USE_INLINE__) 12 | #include 13 | #endif 14 | 15 | #ifdef XML_LARGE_SIZE 16 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 17 | #define XML_FMT_INT_MOD "I64" 18 | #else 19 | #define XML_FMT_INT_MOD "ll" 20 | #endif 21 | #else 22 | #define XML_FMT_INT_MOD "l" 23 | #endif 24 | 25 | static void XMLCALL 26 | startElement(void *userData, const char *name, const char **atts) 27 | { 28 | int i; 29 | int *depthPtr = (int *)userData; 30 | for (i = 0; i < *depthPtr; i++) 31 | putchar('\t'); 32 | puts(name); 33 | *depthPtr += 1; 34 | } 35 | 36 | static void XMLCALL 37 | endElement(void *userData, const char *name) 38 | { 39 | int *depthPtr = (int *)userData; 40 | *depthPtr -= 1; 41 | } 42 | 43 | int 44 | main(int argc, char *argv[]) 45 | { 46 | char buf[BUFSIZ]; 47 | XML_Parser parser = XML_ParserCreate(NULL); 48 | int done; 49 | int depth = 0; 50 | XML_SetUserData(parser, &depth); 51 | XML_SetElementHandler(parser, startElement, endElement); 52 | do { 53 | int len = (int)fread(buf, 1, sizeof(buf), stdin); 54 | done = len < sizeof(buf); 55 | if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) { 56 | fprintf(stderr, 57 | "%s at line %" XML_FMT_INT_MOD "u\n", 58 | XML_ErrorString(XML_GetErrorCode(parser)), 59 | XML_GetCurrentLineNumber(parser)); 60 | return 1; 61 | } 62 | } while (!done); 63 | XML_ParserFree(parser); 64 | return 0; 65 | } 66 | -------------------------------------------------------------------------------- /vendor/expat/lib/Makefile.MPW: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/expat/lib/Makefile.MPW -------------------------------------------------------------------------------- /vendor/expat/lib/amigaconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef AMIGACONFIG_H 2 | #define AMIGACONFIG_H 3 | 4 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ 5 | #define BYTEORDER 4321 6 | 7 | /* Define to 1 if you have the `bcopy' function. */ 8 | #define HAVE_BCOPY 1 9 | 10 | /* Define to 1 if you have the header file. */ 11 | #undef HAVE_CHECK_H 12 | 13 | /* Define to 1 if you have the `memmove' function. */ 14 | #define HAVE_MEMMOVE 1 15 | 16 | /* Define to 1 if you have the header file. */ 17 | #define HAVE_UNISTD_H 1 18 | 19 | /* whether byteorder is bigendian */ 20 | #define WORDS_BIGENDIAN 21 | 22 | /* Define to specify how much context to retain around the current parse 23 | point. */ 24 | #define XML_CONTEXT_BYTES 1024 25 | 26 | /* Define to make parameter entity parsing functionality available. */ 27 | #define XML_DTD 28 | 29 | /* Define to make XML Namespaces functionality available. */ 30 | #define XML_NS 31 | 32 | #endif /* AMIGACONFIG_H */ 33 | -------------------------------------------------------------------------------- /vendor/expat/lib/asciitab.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 6 | /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 7 | /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML, 8 | /* 0x0C */ BT_NONXML, BT_CR, BT_NONXML, BT_NONXML, 9 | /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 10 | /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 11 | /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 12 | /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 13 | /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM, 14 | /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS, 15 | /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS, 16 | /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL, 17 | /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, 18 | /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, 19 | /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI, 20 | /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST, 21 | /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, 22 | /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, 23 | /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 24 | /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 25 | /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 26 | /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 27 | /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB, 28 | /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT, 29 | /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, 30 | /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, 31 | /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 32 | /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 33 | /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 34 | /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 35 | /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, 36 | /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER, 37 | -------------------------------------------------------------------------------- /vendor/expat/lib/iasciitab.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | /* Like asciitab.h, except that 0xD has code BT_S rather than BT_CR */ 6 | /* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 7 | /* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 8 | /* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML, 9 | /* 0x0C */ BT_NONXML, BT_S, BT_NONXML, BT_NONXML, 10 | /* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 11 | /* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 12 | /* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 13 | /* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 14 | /* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM, 15 | /* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS, 16 | /* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS, 17 | /* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL, 18 | /* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, 19 | /* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT, 20 | /* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI, 21 | /* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST, 22 | /* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, 23 | /* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, 24 | /* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 25 | /* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 26 | /* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 27 | /* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 28 | /* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB, 29 | /* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT, 30 | /* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX, 31 | /* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT, 32 | /* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 33 | /* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 34 | /* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 35 | /* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 36 | /* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, 37 | /* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER, 38 | -------------------------------------------------------------------------------- /vendor/expat/lib/latin1tab.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | /* 0x80 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 6 | /* 0x84 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 7 | /* 0x88 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 8 | /* 0x8C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 9 | /* 0x90 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 10 | /* 0x94 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 11 | /* 0x98 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 12 | /* 0x9C */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 13 | /* 0xA0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 14 | /* 0xA4 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 15 | /* 0xA8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER, 16 | /* 0xAC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 17 | /* 0xB0 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 18 | /* 0xB4 */ BT_OTHER, BT_NMSTRT, BT_OTHER, BT_NAME, 19 | /* 0xB8 */ BT_OTHER, BT_OTHER, BT_NMSTRT, BT_OTHER, 20 | /* 0xBC */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER, 21 | /* 0xC0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 22 | /* 0xC4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 23 | /* 0xC8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 24 | /* 0xCC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 25 | /* 0xD0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 26 | /* 0xD4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, 27 | /* 0xD8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 28 | /* 0xDC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 29 | /* 0xE0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 30 | /* 0xE4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 31 | /* 0xE8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 32 | /* 0xEC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 33 | /* 0xF0 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 34 | /* 0xF4 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER, 35 | /* 0xF8 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 36 | /* 0xFC */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, 37 | -------------------------------------------------------------------------------- /vendor/expat/lib/macconfig.h: -------------------------------------------------------------------------------- 1 | /*================================================================ 2 | ** Copyright 2000, Clark Cooper 3 | ** All rights reserved. 4 | ** 5 | ** This is free software. You are permitted to copy, distribute, or modify 6 | ** it under the terms of the MIT/X license (contained in the COPYING file 7 | ** with this distribution.) 8 | ** 9 | */ 10 | 11 | #ifndef MACCONFIG_H 12 | #define MACCONFIG_H 13 | 14 | 15 | /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ 16 | #define BYTEORDER 4321 17 | 18 | /* Define to 1 if you have the `bcopy' function. */ 19 | #undef HAVE_BCOPY 20 | 21 | /* Define to 1 if you have the `memmove' function. */ 22 | #define HAVE_MEMMOVE 23 | 24 | /* Define to 1 if you have a working `mmap' system call. */ 25 | #undef HAVE_MMAP 26 | 27 | /* Define to 1 if you have the header file. */ 28 | #undef HAVE_UNISTD_H 29 | 30 | /* whether byteorder is bigendian */ 31 | #define WORDS_BIGENDIAN 32 | 33 | /* Define to specify how much context to retain around the current parse 34 | point. */ 35 | #undef XML_CONTEXT_BYTES 36 | 37 | /* Define to make parameter entity parsing functionality available. */ 38 | #define XML_DTD 39 | 40 | /* Define to make XML Namespaces functionality available. */ 41 | #define XML_NS 42 | 43 | /* Define to empty if `const' does not conform to ANSI C. */ 44 | #undef const 45 | 46 | /* Define to `long' if does not define. */ 47 | #define off_t long 48 | 49 | /* Define to `unsigned' if does not define. */ 50 | #undef size_t 51 | 52 | 53 | #endif /* ifndef MACCONFIG_H */ 54 | -------------------------------------------------------------------------------- /vendor/expat/lib/utf8tab.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | 6 | /* 0x80 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 7 | /* 0x84 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 8 | /* 0x88 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 9 | /* 0x8C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 10 | /* 0x90 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 11 | /* 0x94 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 12 | /* 0x98 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 13 | /* 0x9C */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 14 | /* 0xA0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 15 | /* 0xA4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 16 | /* 0xA8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 17 | /* 0xAC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 18 | /* 0xB0 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 19 | /* 0xB4 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 20 | /* 0xB8 */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 21 | /* 0xBC */ BT_TRAIL, BT_TRAIL, BT_TRAIL, BT_TRAIL, 22 | /* 0xC0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 23 | /* 0xC4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 24 | /* 0xC8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 25 | /* 0xCC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 26 | /* 0xD0 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 27 | /* 0xD4 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 28 | /* 0xD8 */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 29 | /* 0xDC */ BT_LEAD2, BT_LEAD2, BT_LEAD2, BT_LEAD2, 30 | /* 0xE0 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, 31 | /* 0xE4 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, 32 | /* 0xE8 */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, 33 | /* 0xEC */ BT_LEAD3, BT_LEAD3, BT_LEAD3, BT_LEAD3, 34 | /* 0xF0 */ BT_LEAD4, BT_LEAD4, BT_LEAD4, BT_LEAD4, 35 | /* 0xF4 */ BT_LEAD4, BT_NONXML, BT_NONXML, BT_NONXML, 36 | /* 0xF8 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML, 37 | /* 0xFC */ BT_NONXML, BT_NONXML, BT_MALFORM, BT_MALFORM, 38 | -------------------------------------------------------------------------------- /vendor/expat/lib/winconfig.h: -------------------------------------------------------------------------------- 1 | /*================================================================ 2 | ** Copyright 2000, Clark Cooper 3 | ** All rights reserved. 4 | ** 5 | ** This is free software. You are permitted to copy, distribute, or modify 6 | ** it under the terms of the MIT/X license (contained in the COPYING file 7 | ** with this distribution.) 8 | */ 9 | 10 | #ifndef WINCONFIG_H 11 | #define WINCONFIG_H 12 | 13 | #define WIN32_LEAN_AND_MEAN 14 | #include 15 | #undef WIN32_LEAN_AND_MEAN 16 | 17 | #include 18 | #include 19 | 20 | #define XML_NS 1 21 | #define XML_DTD 1 22 | #define XML_CONTEXT_BYTES 1024 23 | 24 | /* we will assume all Windows platforms are little endian */ 25 | #define BYTEORDER 1234 26 | 27 | /* Windows has memmove() available. */ 28 | #define HAVE_MEMMOVE 29 | 30 | #endif /* ndef WINCONFIG_H */ 31 | -------------------------------------------------------------------------------- /vendor/expat/lib/xmltok_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 3 | See the file COPYING for copying permission. 4 | */ 5 | 6 | enum { 7 | BT_NONXML, 8 | BT_MALFORM, 9 | BT_LT, 10 | BT_AMP, 11 | BT_RSQB, 12 | BT_LEAD2, 13 | BT_LEAD3, 14 | BT_LEAD4, 15 | BT_TRAIL, 16 | BT_CR, 17 | BT_LF, 18 | BT_GT, 19 | BT_QUOT, 20 | BT_APOS, 21 | BT_EQUALS, 22 | BT_QUEST, 23 | BT_EXCL, 24 | BT_SOL, 25 | BT_SEMI, 26 | BT_NUM, 27 | BT_LSQB, 28 | BT_S, 29 | BT_NMSTRT, 30 | BT_COLON, 31 | BT_HEX, 32 | BT_DIGIT, 33 | BT_NAME, 34 | BT_MINUS, 35 | BT_OTHER, /* known not to be a name or name start character */ 36 | BT_NONASCII, /* might be a name or name start character */ 37 | BT_PERCNT, 38 | BT_LPAR, 39 | BT_RPAR, 40 | BT_AST, 41 | BT_PLUS, 42 | BT_COMMA, 43 | BT_VERBAR 44 | }; 45 | 46 | #include 47 | -------------------------------------------------------------------------------- /vendor/expat/tests/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains the (fledgling) test suite for Expat. The 2 | tests provide general unit testing and regression coverage. The tests 3 | are not expected to be useful examples of Expat usage; see the 4 | examples/ directory for that. 5 | 6 | The Expat tests use a partial internal implementation of the "Check" 7 | unit testing framework for C. More information on Check can be found at: 8 | 9 | http://check.sourceforge.net/ 10 | 11 | Expat must be built and installed before "make check" can be executed. 12 | 13 | Since both Check and this test suite are young, it can all change in a 14 | later version. 15 | -------------------------------------------------------------------------------- /vendor/expat/tests/benchmark/README.txt: -------------------------------------------------------------------------------- 1 | Use this benchmark command line utility as follows: 2 | 3 | benchmark [-n] <# iterations> 4 | 5 | The command line arguments are: 6 | 7 | -n ... optional; if supplied, namespace processing is turned on 8 | ... name/path of test xml file 9 | ... size of processing buffer; 10 | the file is parsed in chunks of this size 11 | <# iterations> ... how often will the file be parsed 12 | 13 | Returns: 14 | 15 | The time (in seconds) it takes to parse the test file, 16 | averaged over the number of iterations. -------------------------------------------------------------------------------- /vendor/expat/tests/benchmark/benchmark.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "benchmark"=.\benchmark.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | Begin Project Dependency 15 | Project_Dep_Name expat 16 | End Project Dependency 17 | }}} 18 | 19 | ############################################################################### 20 | 21 | Project: "expat"=..\..\lib\expat.dsp - Package Owner=<4> 22 | 23 | Package=<5> 24 | {{{ 25 | }}} 26 | 27 | Package=<4> 28 | {{{ 29 | }}} 30 | 31 | ############################################################################### 32 | 33 | Global: 34 | 35 | Package=<5> 36 | {{{ 37 | }}} 38 | 39 | Package=<3> 40 | {{{ 41 | }}} 42 | 43 | ############################################################################### 44 | 45 | -------------------------------------------------------------------------------- /vendor/expat/tests/chardata.h: -------------------------------------------------------------------------------- 1 | /* chardata.h 2 | 3 | Interface to some helper routines used to accumulate and check text 4 | and attribute content. 5 | */ 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | #ifndef XML_CHARDATA_H 12 | #define XML_CHARDATA_H 1 13 | 14 | #ifndef XML_VERSION 15 | #include "expat.h" /* need XML_Char */ 16 | #endif 17 | 18 | 19 | typedef struct { 20 | int count; /* # of chars, < 0 if not set */ 21 | XML_Char data[1024]; 22 | } CharData; 23 | 24 | 25 | void CharData_Init(CharData *storage); 26 | 27 | void CharData_AppendString(CharData *storage, const char *s); 28 | 29 | void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len); 30 | 31 | int CharData_CheckString(CharData *storage, const char *s); 32 | 33 | int CharData_CheckXMLChars(CharData *storage, const XML_Char *s); 34 | 35 | 36 | #endif /* XML_CHARDATA_H */ 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | -------------------------------------------------------------------------------- /vendor/expat/tests/runtestspp.cpp: -------------------------------------------------------------------------------- 1 | // C++ compilation harness for the test suite. 2 | // 3 | // This is used to ensure the Expat headers can be included from C++ 4 | // and have everything work as expected. 5 | // 6 | #include "runtests.c" 7 | -------------------------------------------------------------------------------- /vendor/expat/vms/README.vms: -------------------------------------------------------------------------------- 1 | 4-jun-2002 Craig A. Berry 2 | Added rudimentary build procedures for 3 | OpenVMS based on work by Martin Vorlaender. 4 | 5 | 6 | You'll need MMS or its freeware equivalent MMK. Just go to the 7 | top-level directory and type 8 | 9 | $ MMS/DESCRIPTION=[.vms] 10 | 11 | or 12 | 13 | $ MMK/DESCRIPTION=[.vms] 14 | 15 | You'll end up with the object library expat.olb. For now, installation 16 | consists merely of copying the object library, include files, and 17 | documentation to a suitable location. 18 | 19 | To-do list: 20 | 21 | -- create a shareable image 22 | -- build and run the tests and build the xmlwf utility 23 | -- create an install target 24 | -------------------------------------------------------------------------------- /vendor/expat/vms/expat_config.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2000, Clark Cooper 2 | All rights reserved. 3 | 4 | This is free software. You are permitted to copy, distribute, or modify 5 | it under the terms of the MIT/X license (contained in the COPYING file 6 | with this distribution.) 7 | */ 8 | 9 | /* Define to empty if the keyword does not work. */ 10 | #undef const 11 | 12 | /* Define if you have a working `mmap' system call. */ 13 | #undef HAVE_MMAP 14 | 15 | /* Define to `long' if doesn't define. */ 16 | #undef off_t 17 | 18 | /* Define to `unsigned' if doesn't define. */ 19 | #undef size_t 20 | 21 | /* Define if your processor stores words with the most significant 22 | byte first (like Motorola and SPARC, unlike Intel and VAX). */ 23 | #undef WORDS_BIGENDIAN 24 | 25 | /* Define if you have the bcopy function. */ 26 | #undef HAVE_BCOPY 27 | 28 | /* Define if you have the memmove function. */ 29 | #define HAVE_MEMMOVE 1 30 | 31 | /* Define if you have the header file. */ 32 | #define HAVE_UNISTD_H 1 33 | 34 | #define XML_NS 35 | #define XML_DTD 36 | 37 | #ifdef WORDS_BIGENDIAN 38 | #define XML_BYTE_ORDER 21 39 | #else 40 | #define XML_BYTE_ORDER 12 41 | #endif 42 | 43 | #define XML_CONTEXT_BYTES 1024 44 | 45 | #ifndef HAVE_MEMMOVE 46 | #ifdef HAVE_BCOPY 47 | #define memmove(d,s,l) bcopy((s),(d),(l)) 48 | #else 49 | #define memmove(d,s,l) ;punting on memmove; 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /vendor/expat/win32/MANIFEST.txt: -------------------------------------------------------------------------------- 1 | Overview of the Expat distribution 2 | 3 | The Expat distribution creates several subdirectories on your system. 4 | Some of these directories contain components of interest to all Expat 5 | users, and some contain material of interest to developers who wish to 6 | use Expat in their applications. In the list below, is the 7 | directory you specified to the installer. 8 | 9 | Directory Contents 10 | --------------------------------------------------------------------- 11 | \ Some general information files. 12 | 13 | \Doc\ API documentation for developers. 14 | 15 | \Bin\ Pre-compiled dynamic libraries for developers. 16 | Pre-compiled static libraries for developers (*MT.lib). 17 | The XML well-formedness checker xmlwf. 18 | 19 | \Source\ Source code, which may interest some developers, 20 | including a workspace for Microsft Visual C++. 21 | The source code includes the parser, the well- 22 | formedness checker, and a couple of small sample 23 | applications. 24 | 25 | \Source\bcb5\ Project files for Borland C++ Builder 5 and BCC 5.5. 26 | 27 | 28 | -------------------------------------------------------------------------------- /vendor/expat/win32/expat.iss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/expat/win32/expat.iss -------------------------------------------------------------------------------- /vendor/expat/xmlwf/codepage.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include "codepage.h" 6 | 7 | #if (defined(WIN32) || (defined(__WATCOMC__) && defined(__NT__))) 8 | #define STRICT 1 9 | #define WIN32_LEAN_AND_MEAN 1 10 | 11 | #include 12 | 13 | int 14 | codepageMap(int cp, int *map) 15 | { 16 | int i; 17 | CPINFO info; 18 | if (!GetCPInfo(cp, &info) || info.MaxCharSize > 2) 19 | return 0; 20 | for (i = 0; i < 256; i++) 21 | map[i] = -1; 22 | if (info.MaxCharSize > 1) { 23 | for (i = 0; i < MAX_LEADBYTES; i+=2) { 24 | int j, lim; 25 | if (info.LeadByte[i] == 0 && info.LeadByte[i + 1] == 0) 26 | break; 27 | lim = info.LeadByte[i + 1]; 28 | for (j = info.LeadByte[i]; j <= lim; j++) 29 | map[j] = -2; 30 | } 31 | } 32 | for (i = 0; i < 256; i++) { 33 | if (map[i] == -1) { 34 | char c = (char)i; 35 | unsigned short n; 36 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, 37 | &c, 1, &n, 1) == 1) 38 | map[i] = n; 39 | } 40 | } 41 | return 1; 42 | } 43 | 44 | int 45 | codepageConvert(int cp, const char *p) 46 | { 47 | unsigned short c; 48 | if (MultiByteToWideChar(cp, MB_PRECOMPOSED|MB_ERR_INVALID_CHARS, 49 | p, 2, &c, 1) == 1) 50 | return c; 51 | return -1; 52 | } 53 | 54 | #else /* not WIN32 */ 55 | 56 | int 57 | codepageMap(int cp, int *map) 58 | { 59 | return 0; 60 | } 61 | 62 | int 63 | codepageConvert(int cp, const char *p) 64 | { 65 | return -1; 66 | } 67 | 68 | #endif /* not WIN32 */ 69 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/codepage.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | int codepageMap(int cp, int *map); 6 | int codepageConvert(int cp, const char *p); 7 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/filemap.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include 6 | 7 | #ifdef XML_UNICODE 8 | int filemap(const wchar_t *name, 9 | void (*processor)(const void *, size_t, 10 | const wchar_t *, void *arg), 11 | void *arg); 12 | #else 13 | int filemap(const char *name, 14 | void (*processor)(const void *, size_t, 15 | const char *, void *arg), 16 | void *arg); 17 | #endif 18 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/unixfilemap.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #ifndef MAP_FILE 15 | #define MAP_FILE 0 16 | #endif 17 | 18 | #include "filemap.h" 19 | 20 | int 21 | filemap(const char *name, 22 | void (*processor)(const void *, size_t, const char *, void *arg), 23 | void *arg) 24 | { 25 | int fd; 26 | size_t nbytes; 27 | struct stat sb; 28 | void *p; 29 | 30 | fd = open(name, O_RDONLY); 31 | if (fd < 0) { 32 | perror(name); 33 | return 0; 34 | } 35 | if (fstat(fd, &sb) < 0) { 36 | perror(name); 37 | close(fd); 38 | return 0; 39 | } 40 | if (!S_ISREG(sb.st_mode)) { 41 | close(fd); 42 | fprintf(stderr, "%s: not a regular file\n", name); 43 | return 0; 44 | } 45 | 46 | nbytes = sb.st_size; 47 | /* mmap fails for zero length files */ 48 | if (nbytes == 0) { 49 | static const char c = '\0'; 50 | processor(&c, 0, name, arg); 51 | close(fd); 52 | return 1; 53 | } 54 | p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ, 55 | MAP_FILE|MAP_PRIVATE, fd, (off_t)0); 56 | if (p == (void *)-1) { 57 | perror(name); 58 | close(fd); 59 | return 0; 60 | } 61 | processor(p, nbytes, name, arg); 62 | munmap((caddr_t)p, nbytes); 63 | close(fd); 64 | return 1; 65 | } 66 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/xmlfile.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd 2 | See the file COPYING for copying permission. 3 | */ 4 | 5 | #define XML_MAP_FILE 01 6 | #define XML_EXTERNAL_ENTITIES 02 7 | 8 | #ifdef XML_LARGE_SIZE 9 | #if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400 10 | #define XML_FMT_INT_MOD "I64" 11 | #else 12 | #define XML_FMT_INT_MOD "ll" 13 | #endif 14 | #else 15 | #define XML_FMT_INT_MOD "l" 16 | #endif 17 | 18 | extern int XML_ProcessFile(XML_Parser parser, 19 | const XML_Char *filename, 20 | unsigned flags); 21 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/xmlmime.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | /* Registered charset names are at most 40 characters long. */ 6 | 7 | #define CHARSET_MAX 41 8 | 9 | /* Figure out the charset to use from the ContentType. 10 | buf contains the body of the header field (the part after "Content-Type:"). 11 | charset gets the charset to use. It must be at least CHARSET_MAX chars 12 | long. charset will be empty if the default charset should be used. 13 | */ 14 | 15 | void getXMLCharset(const char *buf, char *charset); 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/xmltchar.h: -------------------------------------------------------------------------------- 1 | #ifdef XML_UNICODE 2 | #ifndef XML_UNICODE_WCHAR_T 3 | #error xmlwf requires a 16-bit Unicode-compatible wchar_t 4 | #endif 5 | #define T(x) L ## x 6 | #define ftprintf fwprintf 7 | #define tfopen _wfopen 8 | #define fputts fputws 9 | #define puttc putwc 10 | #define tcscmp wcscmp 11 | #define tcscpy wcscpy 12 | #define tcscat wcscat 13 | #define tcschr wcschr 14 | #define tcsrchr wcsrchr 15 | #define tcslen wcslen 16 | #define tperror _wperror 17 | #define topen _wopen 18 | #define tmain wmain 19 | #define tremove _wremove 20 | #else /* not XML_UNICODE */ 21 | #define T(x) x 22 | #define ftprintf fprintf 23 | #define tfopen fopen 24 | #define fputts fputs 25 | #define puttc putc 26 | #define tcscmp strcmp 27 | #define tcscpy strcpy 28 | #define tcscat strcat 29 | #define tcschr strchr 30 | #define tcsrchr strrchr 31 | #define tcslen strlen 32 | #define tperror perror 33 | #define topen open 34 | #define tmain main 35 | #define tremove remove 36 | #endif /* not XML_UNICODE */ 37 | -------------------------------------------------------------------------------- /vendor/expat/xmlwf/xmlurl.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | int XML_URLInit(); 6 | void XML_URLUninit(); 7 | int XML_ProcessURL(XML_Parser parser, 8 | const XML_Char *url, 9 | unsigned flags); 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | SUBDIRS = basic_dump basic_dump_ex iflist pcap_filter pktdump_ex readfile readfile_ex savedump sendpack UDPdump 5 | 6 | all clean install uninstall: ${SUBDIRS} 7 | for subdir in ${SUBDIRS}; do \ 8 | echo "Entering $$subdir"; \ 9 | (cd $$subdir && ${MAKE} $@) \ 10 | done; 11 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/UDPdump/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Loris Degioanni 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = udpdump.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap -lwsock32 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o udpdump.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} udpdump.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/UDPdump/UDPdump.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "UDPdump"=.\UDPdump.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/basic_dump/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = basic_dump.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o basic_dump.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} basic_dump.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/basic_dump/basic_dump.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "basic_dump"=.\basic_dump.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/basic_dump_ex/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = basic_dump_ex.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o basic_dump_ex.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} basic_dump_ex.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/basic_dump_ex/basic_dump_ex.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "basic_dump_ex"=.\basic_dump_ex.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/iflist/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = iflist.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o iflist.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} iflist.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/iflist/iflist.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "iflist"=.\iflist.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/pcap_filter/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = pcap_filter.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o pf.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} pf.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/pcap_filter/Makefile.unix: -------------------------------------------------------------------------------- 1 | 2 | CC = gcc 3 | INCLDIR = -I /usr/src/sys 4 | LIBS = -lpcap 5 | 6 | pktdump: pcap_filter.o 7 | $(CC) $(INCLDIR) pcap_filter.o $(LIBS) -o pf 8 | rm *.o 9 | 10 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/pcap_filter/pcap_filter.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "pcap_filter"=.\pcap_filter.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/pktdump_ex/GNUmakefile: -------------------------------------------------------------------------------- 1 | PCAP_PATH = ../../lib 2 | CFLAGS = -g -O -mno-cygwin -I ../../include 3 | 4 | OBJS = pktdump_ex.o 5 | LIBS = -L ${PCAP_PATH} -lwpcap 6 | 7 | all: ${OBJS} 8 | ${CC} ${CFLAGS} -o pktdump_ex.exe ${OBJS} ${LIBS} 9 | 10 | clean: 11 | rm -f ${OBJS} pktdump_ex.exe 12 | 13 | .c.o: 14 | ${CC} ${CFLAGS} -c -o $*.o $< 15 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/pktdump_ex/pktdump_ex.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "pktdump_ex"=.\pktdump_ex.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = readfile.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o readfile.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} readfile.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile/readfile.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define LINE_LEN 16 5 | 6 | void dispatcher_handler(u_char *, const struct pcap_pkthdr *, const u_char *); 7 | 8 | main(int argc, char **argv) 9 | { 10 | pcap_t *fp; 11 | char errbuf[PCAP_ERRBUF_SIZE]; 12 | 13 | if(argc != 2) 14 | { 15 | printf("usage: %s filename", argv[0]); 16 | return -1; 17 | 18 | } 19 | 20 | /* Open the capture file */ 21 | if ((fp = pcap_open_offline(argv[1], // name of the device 22 | errbuf // error buffer 23 | )) == NULL) 24 | { 25 | fprintf(stderr,"\nUnable to open the file %s.\n", argv[1]); 26 | return -1; 27 | } 28 | 29 | /* read and dispatch packets until EOF is reached */ 30 | pcap_loop(fp, 0, dispatcher_handler, NULL); 31 | 32 | pcap_close(fp); 33 | return 0; 34 | } 35 | 36 | 37 | 38 | void dispatcher_handler(u_char *temp1, 39 | const struct pcap_pkthdr *header, 40 | const u_char *pkt_data) 41 | { 42 | u_int i=0; 43 | 44 | /* print pkt timestamp and pkt len */ 45 | printf("%ld:%ld (%ld)\n", header->ts.tv_sec, header->ts.tv_usec, header->len); 46 | 47 | /* Print the packet */ 48 | for (i=1; (i < header->caplen + 1 ) ; i++) 49 | { 50 | printf("%.2x ", pkt_data[i-1]); 51 | if ( (i % LINE_LEN) == 0) printf("\n"); 52 | } 53 | 54 | printf("\n\n"); 55 | 56 | } 57 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile/readfile.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "readfile"=.\readfile.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile_ex/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = readfile_ex.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o readfile_ex.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} readfile_ex.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile_ex/readfile_ex.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define LINE_LEN 16 5 | 6 | int main(int argc, char **argv) 7 | { 8 | pcap_t *fp; 9 | char errbuf[PCAP_ERRBUF_SIZE]; 10 | struct pcap_pkthdr *header; 11 | const u_char *pkt_data; 12 | u_int i=0; 13 | int res; 14 | 15 | if(argc != 2) 16 | { 17 | printf("usage: %s filename", argv[0]); 18 | return -1; 19 | 20 | } 21 | 22 | /* Open the capture file */ 23 | if ((fp = pcap_open_offline(argv[1], // name of the device 24 | errbuf // error buffer 25 | )) == NULL) 26 | { 27 | fprintf(stderr,"\nUnable to open the file %s.\n", argv[1]); 28 | return -1; 29 | } 30 | 31 | /* Retrieve the packets from the file */ 32 | while((res = pcap_next_ex(fp, &header, &pkt_data)) >= 0) 33 | { 34 | /* print pkt timestamp and pkt len */ 35 | printf("%ld:%ld (%ld)\n", header->ts.tv_sec, header->ts.tv_usec, header->len); 36 | 37 | /* Print the packet */ 38 | for (i=1; (i < header->caplen + 1 ) ; i++) 39 | { 40 | printf("%.2x ", pkt_data[i-1]); 41 | if ( (i % LINE_LEN) == 0) printf("\n"); 42 | } 43 | 44 | printf("\n\n"); 45 | } 46 | 47 | 48 | if (res == -1) 49 | { 50 | printf("Error reading the packets: %s\n", pcap_geterr(fp)); 51 | } 52 | 53 | pcap_close(fp); 54 | return 0; 55 | } 56 | 57 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/readfile_ex/readfile_ex.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "readfile_ex"=.\readfile_ex.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/savedump/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = savedump.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o savedump.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} savedump.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/savedump/savedump.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "savedump"=.\savedump.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/sendpack/GNUmakefile: -------------------------------------------------------------------------------- 1 | # Makefile for cygwin gcc 2 | # Nate Lawson 3 | 4 | PCAP_PATH = ../../lib 5 | CFLAGS = -g -O -mno-cygwin -I ../../include 6 | 7 | OBJS = sendpack.o 8 | LIBS = -L ${PCAP_PATH} -lwpcap 9 | 10 | all: ${OBJS} 11 | ${CC} ${CFLAGS} -o sendpack.exe ${OBJS} ${LIBS} 12 | 13 | clean: 14 | rm -f ${OBJS} sendpack.exe 15 | 16 | .c.o: 17 | ${CC} ${CFLAGS} -c -o $*.o $< 18 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/sendpack/sendpack.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | 6 | 7 | int main(int argc, char **argv) 8 | { 9 | pcap_t *fp; 10 | char errbuf[PCAP_ERRBUF_SIZE]; 11 | u_char packet[100]; 12 | int i; 13 | 14 | /* Check the validity of the command line */ 15 | if (argc != 2) 16 | { 17 | printf("usage: %s interface", argv[0]); 18 | return 1; 19 | } 20 | 21 | /* Open the adapter */ 22 | if ((fp = pcap_open_live(argv[1], // name of the device 23 | 65536, // portion of the packet to capture. It doesn't matter in this case 24 | 1, // promiscuous mode (nonzero means promiscuous) 25 | 1000, // read timeout 26 | errbuf // error buffer 27 | )) == NULL) 28 | { 29 | fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", argv[1]); 30 | return 2; 31 | } 32 | 33 | /* Supposing to be on ethernet, set mac destination to 1:1:1:1:1:1 */ 34 | packet[0]=1; 35 | packet[1]=1; 36 | packet[2]=1; 37 | packet[3]=1; 38 | packet[4]=1; 39 | packet[5]=1; 40 | 41 | /* set mac source to 2:2:2:2:2:2 */ 42 | packet[6]=2; 43 | packet[7]=2; 44 | packet[8]=2; 45 | packet[9]=2; 46 | packet[10]=2; 47 | packet[11]=2; 48 | 49 | /* Fill the rest of the packet */ 50 | for(i=12;i<100;i++) 51 | { 52 | packet[i]=i%256; 53 | } 54 | 55 | /* Send down the packet */ 56 | if (pcap_sendpacket(fp, // Adapter 57 | packet, // buffer with the packet 58 | 100 // size 59 | ) != 0) 60 | { 61 | fprintf(stderr,"\nError sending the packet: \n", pcap_geterr(fp)); 62 | return 3; 63 | } 64 | 65 | pcap_close(fp); 66 | return 0; 67 | } 68 | 69 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-pcap/sendpack/sendpack.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "sendpack"=.\sendpack.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/PacketDriver/readme.txt: -------------------------------------------------------------------------------- 1 | These files use the packet.dll API instead of wpcap.dll. 2 | The use of packet.dll API is strongly discouraged. 3 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/UDPdump/UDPdump.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "UDPdump"=.\UDPdump.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/UserLevelBridge/UserBridge.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "UserBridge"=.\UserBridge.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/iflist/iflist.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "iflist"=.\iflist.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/misc/MakeaAll.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "basic_dump"=.\basic_dump.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Project: "basic_dump_ex"=.\basic_dump_ex.dsp - Package Owner=<4> 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<4> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | Project: "readfile"=.\readfile.dsp - Package Owner=<4> 31 | 32 | Package=<5> 33 | {{{ 34 | }}} 35 | 36 | Package=<4> 37 | {{{ 38 | }}} 39 | 40 | ############################################################################### 41 | 42 | Project: "readfile_ex"=.\readfile_ex.dsp - Package Owner=<4> 43 | 44 | Package=<5> 45 | {{{ 46 | }}} 47 | 48 | Package=<4> 49 | {{{ 50 | }}} 51 | 52 | ############################################################################### 53 | 54 | Project: "savedump"=.\savedump.dsp - Package Owner=<4> 55 | 56 | Package=<5> 57 | {{{ 58 | }}} 59 | 60 | Package=<4> 61 | {{{ 62 | }}} 63 | 64 | ############################################################################### 65 | 66 | Project: "sendpack"=.\sendpack.dsp - Package Owner=<4> 67 | 68 | Package=<5> 69 | {{{ 70 | }}} 71 | 72 | Package=<4> 73 | {{{ 74 | }}} 75 | 76 | ############################################################################### 77 | 78 | Global: 79 | 80 | Package=<5> 81 | {{{ 82 | }}} 83 | 84 | Package=<3> 85 | {{{ 86 | }}} 87 | 88 | ############################################################################### 89 | 90 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/misc/sendpack.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | 6 | 7 | void main(int argc, char **argv) 8 | { 9 | pcap_t *fp; 10 | char errbuf[PCAP_ERRBUF_SIZE]; 11 | u_char packet[100]; 12 | int i; 13 | 14 | /* Check the validity of the command line */ 15 | if (argc != 2) 16 | { 17 | printf("usage: %s interface (e.g. 'rpcap://eth0')", argv[0]); 18 | return; 19 | } 20 | 21 | /* Open the output device */ 22 | if ( (fp= pcap_open(argv[1], // name of the device 23 | 100, // portion of the packet to capture (only the first 100 bytes) 24 | PCAP_OPENFLAG_PROMISCUOUS, // promiscuous mode 25 | 1000, // read timeout 26 | NULL, // authentication on the remote machine 27 | errbuf // error buffer 28 | ) ) == NULL) 29 | { 30 | fprintf(stderr,"\nUnable to open the adapter. %s is not supported by WinPcap\n", argv[1]); 31 | return; 32 | } 33 | 34 | /* Supposing to be on ethernet, set mac destination to 1:1:1:1:1:1 */ 35 | packet[0]=1; 36 | packet[1]=1; 37 | packet[2]=1; 38 | packet[3]=1; 39 | packet[4]=1; 40 | packet[5]=1; 41 | 42 | /* set mac source to 2:2:2:2:2:2 */ 43 | packet[6]=2; 44 | packet[7]=2; 45 | packet[8]=2; 46 | packet[9]=2; 47 | packet[10]=2; 48 | packet[11]=2; 49 | 50 | /* Fill the rest of the packet */ 51 | for(i=12;i<100;i++) 52 | { 53 | packet[i]=i%256; 54 | } 55 | 56 | /* Send down the packet */ 57 | if (pcap_sendpacket(fp, packet, 100 /* size */) != 0) 58 | { 59 | fprintf(stderr,"\nError sending the packet: \n", pcap_geterr(fp)); 60 | return; 61 | } 62 | 63 | return; 64 | } 65 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/pcap_filter/pcap_filter.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "pcap_filter"=.\pcap_filter.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/pktdump_ex/pktdump_ex.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "pktdump_ex"=.\pktdump_ex.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/sendcap/sencap.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "sendcap"=.\sendcap.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/smp_1/smp_1.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "smp_1"=.\smp_1.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Examples-remote/tcptop/tcptop.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "tcptop"=.\tcptop.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /vendor/wpcap/Include/Gnuc.h: -------------------------------------------------------------------------------- 1 | /* @(#) $Header: /tcpdump/master/libpcap/Win32/Include/Gnuc.h,v 1.1 2002/08/01 08:33:05 risso Exp $ (LBL) */ 2 | 3 | /* Define __P() macro, if necessary */ 4 | 5 | #ifndef __P 6 | #if __STDC__ 7 | #define __P(protos) protos 8 | #else 9 | #define __P(protos) () 10 | #endif 11 | #endif 12 | 13 | /* inline foo */ 14 | #ifndef __cplusplus 15 | #ifdef __GNUC__ 16 | #define inline __inline 17 | #else 18 | #define inline 19 | #endif 20 | #endif 21 | 22 | /* 23 | * Handle new and old "dead" routine prototypes 24 | * 25 | * For example: 26 | * 27 | * __dead void foo(void) __attribute__((volatile)); 28 | * 29 | */ 30 | #ifdef __GNUC__ 31 | #ifndef __dead 32 | #define __dead volatile 33 | #endif 34 | #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) 35 | #ifndef __attribute__ 36 | #define __attribute__(args) 37 | #endif 38 | #endif 39 | #else 40 | #ifndef __dead 41 | #define __dead 42 | #endif 43 | #ifndef __attribute__ 44 | #define __attribute__(args) 45 | #endif 46 | #endif 47 | -------------------------------------------------------------------------------- /vendor/wpcap/Include/Ntddpack.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __NTDDPACKET 3 | #define __NTDDPACKET 1 4 | #include "devioctl.h" 5 | /*#include */ 6 | struct _PACKET_OID_DATA { 7 | ULONG Oid; 8 | ULONG Length; 9 | UCHAR Data[1]; 10 | }; 11 | 12 | typedef struct _PACKET_OID_DATA PACKET_OID_DATA, *PPACKET_OID_DATA; 13 | 14 | /*#include */ 15 | #define FILE_DEVICE_PROTOCOL 0x8000 16 | #define IOCTL_PROTOCOL_QUERY_OID CTL_CODE(FILE_DEVICE_PROTOCOL, 0 , METHOD_BUFFERED, FILE_ANY_ACCESS) 17 | #define IOCTL_PROTOCOL_SET_OID CTL_CODE(FILE_DEVICE_PROTOCOL, 1 , METHOD_BUFFERED, FILE_ANY_ACCESS) 18 | #define IOCTL_PROTOCOL_STATISTICS CTL_CODE(FILE_DEVICE_PROTOCOL, 2 , METHOD_BUFFERED, FILE_ANY_ACCESS) 19 | #define IOCTL_PROTOCOL_RESET CTL_CODE(FILE_DEVICE_PROTOCOL, 3 , METHOD_BUFFERED, FILE_ANY_ACCESS) 20 | #define IOCTL_PROTOCOL_READ CTL_CODE(FILE_DEVICE_PROTOCOL, 4 , METHOD_BUFFERED, FILE_ANY_ACCESS) 21 | #define IOCTL_PROTOCOL_WRITE CTL_CODE(FILE_DEVICE_PROTOCOL, 5 , METHOD_BUFFERED, FILE_ANY_ACCESS) 22 | #define IOCTL_PROTOCOL_MACNAME CTL_CODE(FILE_DEVICE_PROTOCOL, 6 , METHOD_BUFFERED, FILE_ANY_ACCESS) 23 | #define IOCTL_OPEN CTL_CODE(FILE_DEVICE_PROTOCOL, 7 , METHOD_BUFFERED, FILE_ANY_ACCESS) 24 | #define IOCTL_CLOSE CTL_CODE(FILE_DEVICE_PROTOCOL, 8 , METHOD_BUFFERED, FILE_ANY_ACCESS) 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /vendor/wpcap/Lib/Packet.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/Lib/Packet.lib -------------------------------------------------------------------------------- /vendor/wpcap/Lib/libpacket.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/Lib/libpacket.a -------------------------------------------------------------------------------- /vendor/wpcap/Lib/libwpcap.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/Lib/libwpcap.a -------------------------------------------------------------------------------- /vendor/wpcap/Lib/wpcap.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/Lib/wpcap.lib -------------------------------------------------------------------------------- /vendor/wpcap/docs/WinPcap_docs.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/doxygen.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/doxygen__groups_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: doxygen_groups.txt File Reference 4 | 5 | 6 | 7 | 8 |

9 |
16 |
17 |
21 |

doxygen_groups.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/dump.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/dump.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/encoding.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/encoding.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2blank.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2doc.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2folderclosed.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2folderopen.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2lastnode.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2link.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2mlastnode.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2mnode.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2node.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2plastnode.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2pnode.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/ftv2vertline.png -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/globals_enum.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: Data Fields 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |
22 | 31 |
32 |   33 |

34 |

    35 |
  • ADAPTER_BINDING_STATUS 36 | : Packet.h 37 |
38 | 39 |
40 |

41 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 42 | CACE Technologies. All rights reserved.

43 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/group__NPF.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/group__NPF.html -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/group__remote__pri__func.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: Internal Functions 4 | 5 | 6 | 7 | 8 |
9 |
16 |

Internal Functions
17 | 18 | [Remote Capture] 19 |

20 | 21 |
22 | 23 |
24 |

25 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 26 | CACE Technologies. All rights reserved.

27 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/group__remotefunc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: Exported Functions 4 | 5 | 6 | 7 | 8 |
9 |
16 |

Exported Functions
17 | 18 | [Remote Capture] 19 |

20 | 21 |
22 | 23 |
24 |

25 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 26 | CACE Technologies. All rights reserved.

27 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/internals-arch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/internals-arch.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/main_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: main.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

main.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/npf-dump.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/npf-dump.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/npf-ndis.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/npf-ndis.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/npf-npf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/npf-npf.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/pages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: Page Index 4 | 5 | 6 | 7 | 8 |
9 |
16 |

WinPcap Related Pages

Here is a list of all related documentation pages: 20 | 21 |
22 |

23 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 24 | CACE Technologies. All rights reserved.

25 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/stats.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/stats.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/stats_wpcap.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/stats_wpcap.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/structpcap__addr.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/structpcap__addr.html -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/tab_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/tab_b.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/tab_l.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/tab_l.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/tab_r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/tab_r.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/winpcap.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/winpcap.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/winpcap_small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honeynet/capture-hpc/50542433682d3ac2d3c81ca5c4c33a8334af5f6d/vendor/wpcap/docs/html/winpcap_small.gif -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut1_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut1.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut1.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut2_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut2.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut2.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut3_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut3.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut3.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut4_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut4.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut4.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut5_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut5.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut5.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut6_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut6.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut6.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut7_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut7.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut7.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut8_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut8.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut8.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut9_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut9.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut9.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | -------------------------------------------------------------------------------- /vendor/wpcap/docs/html/wpcap__tut_8txt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinPcap: wpcap_tut.txt File Reference 4 | 5 | 6 | 7 | 8 |
9 |
16 |
17 |
21 |

wpcap_tut.txt File Reference

22 | 23 |
24 | 25 |
26 |

27 | documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2007 28 | CACE Technologies. All rights reserved.

29 | --------------------------------------------------------------------------------