language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
wireshark/test/captures/dhcp.pcapng
M<+яяяяяяяя яя  \ѓк Љ35::яяяяяя ‚ьBE,Ё6ъ‹яяяяDCY= ‚ьB...
wireshark/test/captures/dtn_udpcl_bpv7_bpsec_bcb_admin.cbordiag
[_ [7, 11094, 1, [2, [26622, 12070]], [2, [5279, 7390]], [2, [4785, 1111]], [81089243, 993], 52532350140, 1646, 2047, h'55E4'], [7, 7, 175, 0, 24(h'1B000000013075CD37')], [10, 5, 89, 0, 24(h'820007')], [12, 25, 162, 0, 63(h'8101 02 01 82028219149f191cde 84 8201426869 820205 8203426869 820407 8181 82014574686572...
wireshark/test/captures/dtn_udpcl_bpv7_bpsec_bib_admin.cbordiag
[_ [7, 11094, 1, [2, [26622, 12070]], [2, [5279, 7390]], [2, [4785, 1111]], [81089243, 993], 52532350140, 1646, 2047, h'55E4'], [7, 7, 175, 0, 24(h'1B000000013075CD37')], [10, 5, 89, 0, 24(h'820007')], [11, 25, 162, 0, 63(h'8101 01 01 82028219149f191cde 83 820105 8202426869 820307 8181 8201457468657265')], [1...
wireshark/test/captures/mongo-zstd.pcapng
°M<+ÿÿÿÿÿÿÿÿ1AMD Ryzen 5 1600 Six-Core Processor (with SSE4.2)Linux 5.15.0-53-generic7Dumpcap (Wireshark) 4.1.0 (v4.1.0rc0-891-gade32a12f2bc)°Xenp0s3  port 27017 Linux 5.15.0-53-genericXÄÊ+ãD’¡¡RT5'@ͼE“³Í@@Ãü hƒ...
wireshark/test/captures/protobuf_test_leading_dot.pcapng
ÌM<+ÿÿÿÿÿÿÿÿ6Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (with SSE4.2)+64-bit Windows 7 Service Pack 1, build 7601;Dumpcap (Wireshark) 3.1.1-hqx (v3.1.1rc0-470-gfb3e4ffe2bd3)Ì ÿÿ2\Device\NPF_{F034326D-3D1D-4756-B3D8-7B5413C71351}无线网络连接  +64-bit Windo...
wireshark/test/captures/sipmsg.log
File opened. Mar 6 13:34:22.599 UDP[3:0]10.102.131.194:5060 OPENED Mar 6 13:34:22.616 UDP[6:0]10.102.130.185:5060 OPENED Mar 6 13:34:49.416 On [6:0]10.102.130.185:5060 received from 10.102.130.150:5060 REGISTER sip:csp.noklab.net SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK26b7a48d From: sip:34903@csp....
Text
wireshark/test/captures/text2pcap_hash_eol.txt
2015-10-01 21:16:24.317453 127.0.0.1 -> 127.0.0.1 UDP 96 Source port: 36887 Destination port: 36888 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 3e 3b f2 40 00 40 11 00 bb 7f 00 00 01 7f 00 .>;.@.@......... 0020 00 01 90 17 90 18 00 2a 00 00 00 00 01 00 00 01 .......*.....
wireshark/test/config/80211_keys.tmpl
# Keys needed for the decryption test suite "wep","1234567890" "wpa-pwd","Induction" "wpa-pwd","test0815" "wpa-pwd","12345678" "wpa-psk","a5001e18e0b3f792278825bc3abff72d7021d7c157b600470ef730e2490835d4" "wpa-psk","79258f6ceeecedd3482b92deaabdb675f09bcb4003ef5074f5ddb10a94ebe00a" "wpa-psk","23a9ee58c7810546ae3e7509fda9...
wireshark/test/config/80211_keys.user_tk_tmpl
# Keys needed for the 80211 user TK test cases in decryption test suite "tk","d0e57d224c1bb8806089d8c23154074c" "tk","6eaf63f4ad7997ced353723de3029f4d" "tk","fb42811bcb59b7845376246454fbdab7" "tk","4e30e8c019bea43ea5262b10853b818d" "tk","70cdbf2e5bc0ca22e53930818a5d80e4" "tk","4e6abbcf9dc0943936700b6825952218f58a47dfdf...
wireshark/test/config/esp_sa.tmpl
"IPv4","192.168.0.1","192.168.0.100","0x070883c2","AES-CBC [RFC3602]","0x5de1a4c2c72662c9fda7a7c78cd25623","HMAC-SHA-1-96 [RFC2404]","0x51c9213c18232f8f26c70c4dee6e0e6d56e31e8a" "IPv4","192.168.0.100","192.168.0.1","0xc254fe64","AES-CBC [RFC3602]","0x88e1dad7140af03b8d4f3d734d21be4b","HMAC-SHA-1-96 [RFC2404]","0x3e00d5...
wireshark/test/config/ikev1_decryption_table.tmpl
# This file is automatically generated, DO NOT MODIFY. fafaeb49382a763c,735be0cb62f82675c4f7bf8fbab9b56834ba76d6ab4fa240 ab3e0f1f8bc3be8e,928392441e00ece5e8af3bc545416e86afa1291e7c013271514738b70ef25d22 29f6006212625def,c26a81baec6070d289f0b4f13c2fb182e3d5406d11c29ebc2fc179502541325b
wireshark/test/config/ikev2_decryption_table.tmpl
# This file is automatically generated, DO NOT MODIFY. 1234567890123456,0987654321098765,,,"NULL [RFC2410]",,,"NONE [RFC4306]" 19ab98963486359f,78f13157ccd3b3d8,2e0e194070fc658c2bfbfdbf8b956be4b2eaa33d02a43cca,219f3080e631774b8d5836d3a675b099b1e271c9bdcf6e15,"3DES [RFC2451]",c96f5bad08aebbff60509c7495f11c183818b916,e74...
wireshark/test/config/ssl_keys.tmpl
"127.0.0.1","443","http","TEST_KEYS_DIRrsasnakeoil2.key","" "127.0.0.1","9131","http","TEST_KEYS_DIRkey.p12","WebAS"
wireshark/test/keys/dhe1_keylog.dat
# the client's random number and the master secret for test/captures/dhe1.pcapng.gz CLIENT_RANDOM 531f88d114fcf9ce9729b5458f73e1807324459029ee4bea43f8ee4ce06c77c0 3CC9E5068E674393C10E540430F60AB794C028B277CAD9C708758400B803AD4FC81D6796AFD14D8952F7CD9E4268B4DB
wireshark/test/keys/http2-data-reassembly.keys
CLIENT_RANDOM 59b4b71f50e71bff50f88388679c0156714d158bf10edd29f1d45fb4fffb3010 750fc27332a9cc17802defc48bd5693c9278d68680ae64d9dffa1e638ebd17a7902ad69501c413571b7c63dc23a0918b
wireshark/test/keys/rsa-p-lt-q.key
-----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQDhP+fIyQK5qfcXejONrbSZPrW8xuVOO6R34/cBVTKDz1D+f/TH 5fTxgZuxnZxsVv//cEK6YRI66q8MmrLejgTucm9Q6LSwJfBXnDenicUkzDz0tdPA Ng+dpF3WaIRYJ/Dow4Yt8EdPS+NrwtcO4TyThyCLsz28sC2roagex/zmswIDAQAB AoGBAIBJ82tKAQFZql92vBH/UxLMwpln9oXeNkgKUE40BfdIhmrM2c9YS2+ZT+GT UNnrmxYTDA425zkjHNvi5+kVnfxW...
wireshark/test/keys/rsa-p-lt-q.p8
-----BEGIN PRIVATE KEY----- MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAOE/58jJArmp9xd6 M42ttJk+tbzG5U47pHfj9wFVMoPPUP5/9Mfl9PGBm7GdnGxW//9wQrphEjrqrwya st6OBO5yb1DotLAl8FecN6eJxSTMPPS108A2D52kXdZohFgn8OjDhi3wR09L42vC 1w7hPJOHIIuzPbywLauhqB7H/OazAgMBAAECgYEAgEnza0oBAVmqX3a8Ef9TEszC mWf2hd42SApQTjQF90iGaszZz1hLb5lP...
wireshark/test/keys/rsasnakeoil2.key
-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCkblMUCt4s42BVmvJCpq9HEi8Xzvq63E5jVjS5unNLeEQ9xmxp pCWzYQKdCQQ/cj3YJ9OwWkV3tzbkJiPMEriu3qe2OoI8fCRZCviWQ4ujKTY/kX9d xyOUKX8Kzgq9jZsvGReq1Y7sZqI36z9XUzzyqrt5GUuQfqejmf6ETInwPQIDAQAB AoGAedqEWKsBIPTTtDziYYBTDnEsUxGA/685rCX7ZtQEkx4qPDlqqBMMGVW/8Q34 hugrap+BIgSTzHcLB6I4DwiksUpR...
wireshark/test/keys/snakeoil-rsa.key
-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCkblMUCt4s42BVmvJCpq9HEi8Xzvq63E5jVjS5unNLeEQ9xmxp pCWzYQKdCQQ/cj3YJ9OwWkV3tzbkJiPMEriu3qe2OoI8fCRZCviWQ4ujKTY/kX9d xyOUKX8Kzgq9jZsvGReq1Y7sZqI36z9XUzzyqrt5GUuQfqejmf6ETInwPQIDAQAB AoGAedqEWKsBIPTTtDziYYBTDnEsUxGA/685rCX7ZtQEkx4qPDlqqBMMGVW/8Q34 hugrap+BIgSTzHcLB6I4DwiksUpR...
wireshark/test/keys/tls-over-tls.key
-----BEGIN RSA PRIVATE KEY----- MIIEogIBAAKCAQEAuIpwxT/BdUhlQNwpm11Wrz6oEV5glXDeFBSp3CUd7SX+2O1z iXxe6cW0p2ljPQjnvVFe/NTkDcGhgaXVH+8/sk1N1s101L98ZxjLaMaMKhj+yf6Q IOvN1weaMt9qnl8JRrk5f6aNGWTr+dqLU2veE6zX1oT/lFtDTafopyAFGpEJnDRz NudARQpt1CnakRu2zkKsQ/ApMjRa9Zm4w2Kf+M23IeU+j/gi5wAU9/D39ke67tKO GDNXYfMfFcgsmDrH+a2xrU3Zf9Kt...
wireshark/test/keys/tls12-chacha20poly1305.keys
# SSL/TLS secrets log file, generated by OpenSSL CLIENT_RANDOM ab85fc5f6db67c9cf825cd8a1f34cf6c5e89ec09656a4944ec5536a36aed5728 aee53fb112659bc2b3801db7d230c25100dfb79ffb00f086256885dfc1f8fc545e526fc92fe884348a84964bb7b4bbc0 CLIENT_RANDOM 59ee68728af906f3fb825bf306f7f40ae1fb68fc13d769a00843d3f2ba5dac45 7b126413d8876316...
wireshark/test/keys/tls12-dsb-1.keys
# first CLIENT_RANDOM f67a28b386b31c620d76c0026fdd9888edbe6bf0f5b715b2caca158f84ae9d66 cc38e78182b9dfd74ef3103d79bbc99cfc9b4dad209ed209062b5481e63353128da7571b13cfd4d3a5ae7d0520fb346d
wireshark/test/keys/tls12-dsb-2.keys
CLIENT_RANDOM 1e0d63b41d7c7bb639559cfc9f06ffd5c65fe4a9df31abc5af833b0d834436f4 c7f5dda54fb417181cb26e52112afaf9e1756addd77d3c479d96a609c0d3c9bb9929c8475cafb4dbad8f72e868a43e02
wireshark/test/keys/tls13-20-chacha20poly1305.keys
# SSL/TLS secrets log file, generated by OpenSSL SERVER_HANDSHAKE_TRAFFIC_SECRET 3d89529eeebe176375ef29bd146a49e02c375771628244948f6e9408457fdbc1 4e1fbe0594634161e1af3f8b6e940561ba3fc2174b6cefb5b0da3e040cfb23e4 SERVER_TRAFFIC_SECRET_0 3d89529eeebe176375ef29bd146a49e02c375771628244948f6e9408457fdbc1 1e519f7e8d3e8d45d7cf...
wireshark/test/keys/tls13-rfc8446-noearly.keys
CLIENT_HANDSHAKE_TRAFFIC_SECRET 2635fafc16c49a3e997ef714c303806dc8dbf634a2005b0e0186521c4ad6f9df 3a497c91f6e130fbc18fc9f773b92bb0d538dfedc30e964cde0676396f24d0df SERVER_HANDSHAKE_TRAFFIC_SECRET 2635fafc16c49a3e997ef714c303806dc8dbf634a2005b0e0186521c4ad6f9df 1a63b313c605f90e0b3c5717ebbbc62e1da3fe8e2aa66e499409a06b89040...
wireshark/test/keys/tls13-rfc8446.keys
CLIENT_HANDSHAKE_TRAFFIC_SECRET 2635fafc16c49a3e997ef714c303806dc8dbf634a2005b0e0186521c4ad6f9df 3a497c91f6e130fbc18fc9f773b92bb0d538dfedc30e964cde0676396f24d0df SERVER_HANDSHAKE_TRAFFIC_SECRET 2635fafc16c49a3e997ef714c303806dc8dbf634a2005b0e0186521c4ad6f9df 1a63b313c605f90e0b3c5717ebbbc62e1da3fe8e2aa66e499409a06b89040...
wireshark/test/keys/udt-dtls.key
-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDg/jR4vVFNpBta s1uv4IXhqpePHIIuOoOnb2sK6G8gXdCxKm406JLecNuIqq0eUydH6oawar96vYGM lLKTfvMnN3RgL3wNG6G+x+zYPjMaS6G+X8SPAG/XtlIxzDFdzliJT4WpKw1nNa7V sryYTYLZ4aX0hbbETuvXhdZTqCUYX8t2TYyTjeTBybWLyXcWZReGShHPlThn55b0 rtUXkUQoTl3iv330jvJX8MN8haRLwr4+...
Lua
wireshark/test/lua/acme_file.lua
------------------------------------------ -- acme_file_reader.lua -- Author: Hadriel Kaplan (hadrielk at yahoo dot com) -- version = 1.0 -- date = 3/3/2014 ------------------------------------------ --[[ This is a Wireshark Lua-based capture file reader. This "capture file" reader reads message logs from Acme ...
Lua
wireshark/test/lua/add_packet_field.lua
--[[ The tree:add_packet_field() method returns a value and offset in addition to a tree item. This file tests whether the value and offset are correct. As for the value, its correctness is tested in several ways for a given input. 1. The returned value should match a precomputed value 2. The retu...
Lua
wireshark/test/lua/dir.lua
-- test script for wslua Dir functions local testlib = require("testlib") local OTHER = "other" testlib.init( { [OTHER] = 0 } ) ------------- helper funcs ------------ -- the following are so we can use pcall (which needs a function to call) local function callDirFuncBase(name, t) t.result = Dir[name]() retu...
Lua
wireshark/test/lua/dissectFPM.lua
---------------------------------------- -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- Copyright (c) 2015, Hadriel Kaplan -- This code is in the Public Domain, or the BSD (3 clause) license -- if Public Domain does not apply in your country. -- -- Version: 1.0 -- ------------------------------------------...
Lua
wireshark/test/lua/dissector.lua
---------------------------------------- -- script-name: dns_dissector.lua -- -- author: Hadriel Kaplan <hadrielk at yahoo dot com> -- Copyright (c) 2014, Hadriel Kaplan -- This code is in the Public Domain, or the BSD (3 clause) license if Public Domain does not apply -- in your country. -- -- Version: 2.1 -- -- Chang...
Lua
wireshark/test/lua/field.lua
-- test script for wslua Field/FieldInfo functions -- use with dhcp.pcap in test/captures directory local testlib = require("testlib") local FRAME = "frame" local PER_FRAME = "per-frame" local OTHER = "other" local n_frames = 1 testlib.init({ [FRAME] = n_frames, [PER_FRAME] = n_frames*43, [OTHER] = 16, })...
Lua
wireshark/test/lua/field_setup.lua
function field_setup(proto, prefix) local pf_boolean = ProtoField.new("Boolean", prefix..".boolean", ftypes.BOOLEAN) local pf_char = ProtoField.new("Char", prefix..".char", ftypes.CHAR) local pf_uint8 = ProtoField.new("Uint8", prefix..".uint8", ...
Text
wireshark/test/lua/globals_2.2.txt
-- Wireshark version: 1.12.6 { ["Address"] = { ["__typeof"] = "Address", ["ip"] = '<function 1>', ["ipv4"] = '<function 1>', ['<metatable>'] = { ["__eq"] = '<function 2>', ["__index"] = '<filtered>', ["__le"] = '<function 4>', ["__lt"] ...
Lua
wireshark/test/lua/inspect.lua
------------------------------------------------------------------- -- This was changed for Wireshark's use by Hadriel Kaplan. -- -- Changes made: -- * provided 'serialize' option to output serialized info (ie, can be marshaled), -- though note that serializing functions/metatables/userdata/threads will not -- magi...
Lua
wireshark/test/lua/int64.lua
-- This is a test script for tshark/wireshark. -- This script runs inside tshark/wireshark, so to run it do: -- wireshark -X lua_script:<path_to_testdir>/lua/int64.lua -- tshark -r bogus.cap -X lua_script:<path_to_testdir>/lua/int64.lua -- Tests Int64/UInt64 functions local testlib = require("testlib") local OTHER = ...
Lua
wireshark/test/lua/listener.lua
-- test script for various Lua functions -- use with dhcp.pcap in test/captures directory local testlib = require("testlib") ------------- general test helper funcs ------------ local FRAME = "frame" local ETH = "eth" local IP = "ip" local DHCP = "dhcp" local OTHER = "other" local PDISS = "postdissector" -- expected...
Lua
wireshark/test/lua/nstime.lua
-- test script for various Lua functions -- use with dhcp.pcap in test/captures directory local testlib = require("testlib") local FRAME = "frame" local PER_FRAME = "per-frame" local OTHER = "other" -- expected number of runs per type local n_frames = 4 local taptests = { [FRAME]=n_frames, [PER_FRAME]=n_fram...
Lua
wireshark/test/lua/pcap_file.lua
-- pcap_file_reader.lua -------------------------------------------------------------------------------- --[[ This is a Wireshark Lua-based pcap capture file reader. Author: Hadriel Kaplan This "capture file" reader reads pcap files - the old style ones. Don't expect this to be as good as the real thin...
Lua
wireshark/test/lua/pinfo.lua
-- test script for Pinfo and Address functions -- use with dhcp.pcap in test/captures directory ------------- general test helper funcs ------------ local testlib = require("testlib") local FRAME = "frame" local DENIED = "denied" local GETTER = "getter" local SETTER = "setter" local ADDR = "address" local OTHER = "oth...
Lua
wireshark/test/lua/proto.lua
---------------------------------------- -- script-name: proto.lua -- Test the Proto/ProtoField API ---------------------------------------- ------------- general test helper funcs ------------ local testlib = require("testlib") local OTHER = "other" -- expected number of runs per type local taptests = { [OTHER]...
Lua
wireshark/test/lua/protobuf_test_called_by_custom_dissector.lua
do local protobuf_dissector = Dissector.get("protobuf") -- Create protobuf dissector based on UDP or TCP. -- The UDP dissector will take the whole tvb as a message. -- The TCP dissector will parse tvb as format: -- [4bytes length][a message][4bytes length][a message]... -- @param name ...
Lua
wireshark/test/lua/protobuf_test_field_subdissector_table.lua
-- Test protobuf_field dissector table do local protobuf_field_table = DissectorTable.get("protobuf_field") local png_dissector = Dissector.get("png") protobuf_field_table:add("tutorial.Person.portrait_image", png_dissector) end
Lua
wireshark/test/lua/protofield.lua
---------------------------------------- -- script-name: protofield.lua -- test the ProtoField API ---------------------------------------- local testlib = require("testlib") local FRAME = "frame" local PER_FRAME = "per-frame" local OTHER = "other" -- expected number of runs local n_frames = 4 local taptests = { ...
Lua
wireshark/test/lua/script_args.lua
---------------------------------------- -- This just verifies the number of args it got is what it expected. -- The first arg should be a number, for how many total args to expect, -- including itself. local testlib = require("testlib") local ARGS = "args" testlib.init({ [ARGS]=3 }) ----------------------------- t...
Lua
wireshark/test/lua/struct.lua
-- This is a test script for tshark/wireshark. -- This script runs inside tshark/wireshark, so to run it do: -- wireshark -X lua_script:<path_to_testdir>/lua/struct.lua -- tshark -r bogus.cap -X lua_script:<path_to_testdir>/lua/struct.lua -- Tests Struct functions local testlib = require("testlib") local OTHER = "oth...
Lua
wireshark/test/lua/testlib.lua
---------------------------------------- -- library name: testlib.lua -- -- Provides common functions for other lua test scripts to use. ---------------------------------------- --[[ This library aims to codify the most common practices used in testing Wireshark's lua features. The intent is to reduce boilerpla...
Lua
wireshark/test/lua/try_heuristics.lua
-- Define a new protocol that runs TCP heuristics and on failure runs UDP heuristics -- -- This expects to be run against dns_port.pcap, so it should end up resolving all packets to DNS with the UDP heuristic local test_proto = Proto("test", "Test Protocol") -- Have all tests passed so far? -- Anything that fails shou...
Lua
wireshark/test/lua/tvb.lua
---------------------------------------- -- script-name: tvb.lua -- This tests the Tvb/TvbRange and proto_add_XXX_item API. ---------------------------------------- local testlib = require("testlib") local FRAME = "frame" local OTHER = "other" -- expected number of runs per type -- -- CHANGE THIS TO MATCH HOW MANY TE...
Lua
wireshark/test/lua/unicode.lua
-- -- Unicode tests -- local errors = 0 function assertEqual(what, a, b) if a == b then return true end print('ERROR:', what) print('Expected:', tostring(a)) print(' Actual:', tostring(b)) errors = errors + 1 end -- script name check local scriptname = (debug.getinfo(1, 'S').source o...
Lua
wireshark/test/lua/util.lua
-- test script for wslua utility functions local testlib = require("testlib") local GET_PREF = "get" local SET_PREF = "set" local RESET_PREF = "reset" local OTHER = "other" testlib.init( { [GET_PREF] = 14, [SET_PREF] = 37, [RESET_PREF] = 11, [OTHER] = 0 } ) local console_open -----------------------...
Lua
wireshark/test/lua/verify_dissector.lua
-- This is a test script for tshark. -- This script runs inside tshark. -- FIRST run tshark with the "dns_dissector.lua" plugin, with the dns_port.pcap file, -- and with full tree output (-V switch). Pipe that to a file named testin.txt. -- This verify script then reads in that testin.txt. The filename can be specifie...
Lua
wireshark/test/lua/verify_globals.lua
-- verify_globals.lua -- ignore things that change on different machines or every release -- the following items still have to exist, but their values don't have to match local filter = { -- differences by machine "DATA_DIR", "USER_DIR", "package.cpath", "package.path", "package.loaded", "r...
Protocol Buffers
wireshark/test/protobuf_lang_files/complex_proto_files/complex_syntax.proto
// Test more complex syntax of *.proto files. syntax = "proto3"; package wireshark.protobuf.test.complex.syntax; import "google/protobuf/descriptor.proto"; // equal to "testing.multiline.strings" option java_package = "testing." 'multiline.' "strings"; // user defined options for messages extend...
Protocol Buffers
wireshark/test/protobuf_lang_files/complex_proto_files/unittest_custom_options.proto
// This file is from https://github.com/protocolbuffers/protobuf/blob/3.14.x/src/google/protobuf/unittest_custom_options.proto // To reduce the file size, some comments have been removed. // Message 'TestFileParsed' is added at the end of file for testing whether this file was successfully parsed. syntax = "proto2"; ...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/addressbook.proto
// This file comes from the official Protobuf example with a little modification. syntax = "proto3"; package tutorial; import "google/protobuf/timestamp.proto"; message Person { string name = 1; int32 id = 2; // Unique ID number for this person. string email = 3; enum PhoneType { MOBILE = 0; HOME = 1...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/greet.proto
// This file is from https://github.com/grpc/grpc-dotnet/blob/v2.42.x/examples/Browser/Proto/greet.proto syntax = "proto3"; package greet; // The greeting service definition. service Greeter { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply); rpc SayHellos (HelloRequest) returns (stream Hel...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/person_search_service.proto
// A gRPC service that searches for persons based on certain attributes. syntax = "proto3"; package tutorial; import "addressbook.proto"; message PersonSearchRequest { repeated string name = 1; repeated int32 id = 2; repeated string phoneNumber = 3; } service PersonSearchService { rpc Search (PersonSearchRequ...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/test_default_value.proto
// Test default values of Protobuf fields syntax = "proto2"; package wireshark.protobuf.test; message TestDefaultValueMessage { enum EnumFoo { ENUM_FOO_V_FIRST = 1; ENUM_FOO_V_SECOND = 0x2; ENUM_FOO_V_THIRD = 3; ENUM_FOO_V_FOURTH = - 4; } // The format of field name is: // <type> "With" ( "...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/test_leading_dot.proto
syntax="proto3"; package a.b; message a { string param1 = 1; message b { string param2 = 2; message c { string param3 = 3; } } } message msg { a.b.c param4 = 4; /* the full name of the type is a.b.a.b.c */ .a.b.c param5 = 5; /* the full name of the type is a.b.c */ } message c { stri...
Protocol Buffers
wireshark/test/protobuf_lang_files/user_defined_types/test_map.proto
syntax="proto3"; package test.map; message Foo { int32 param1 = 1; } message MapMaster { oneof Abc { string param2 = 2; string param3 = 3; } map<string, int64> param4 = 4; map<sint32, Foo> param5 = 5; }
Protocol Buffers
wireshark/test/protobuf_lang_files/well_know_types/google/protobuf/any.proto
// This file is from https://github.com/protocolbuffers/protobuf/blob/3.14.x/src/google/protobuf/any.proto // To reduce the file size, some comments have been removed. syntax = "proto3"; package google.protobuf; option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protob...
Protocol Buffers
wireshark/test/protobuf_lang_files/well_know_types/google/protobuf/descriptor.proto
// This file is from https://github.com/protocolbuffers/protobuf/blob/3.14.x/src/google/protobuf/descriptor.proto // To reduce the file size, some comments have been removed. syntax = "proto2"; package google.protobuf; option go_package = "google.golang.org/protobuf/types/descriptorpb"; option java_package = "com.go...
Protocol Buffers
wireshark/test/protobuf_lang_files/well_know_types/google/protobuf/timestamp.proto
// This file is from https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto // To reduce the file size, some comments have been removed. syntax = "proto3"; package google.protobuf; message Timestamp { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z...
Python
wireshark/test/suite_dfilter/dfiltertest.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import subprocess import pytest @pytest.fixture def dfilter_cmd(cmd_tshark, capture_file, request): def wrapped(dfilter, frame_number=None, prefs=None, read_filter=False): cmd = [ cmd_...
Python
wireshark/test/suite_dfilter/group_bytes.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterBytes: trace_file = "arp.pcap" def test_bytes_1(self, checkDFilterCount): dfilter = "arp.dst.hw == 00:64" checkD...
Python
wireshark/test/suite_dfilter/group_columns.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterColumns: trace_file = "http.pcap" def test_exists_1(self, checkDFilterCount): dfilter = "_ws.col.info" checkDFilt...
Python
wireshark/test/suite_dfilter/group_double.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterDouble: trace_file = "icmp.pcapng.gz" def test_eq_1(self, checkDFilterCount): dfilter = "icmp.resptime == 492.204" ...
Python
wireshark/test/suite_dfilter/group_ether.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterEther: trace_file = "ipx_rip.pcap" ### Note: Bytes test does not yet test FT_INT64. def test_eq_1(self, checkDFilterCount):...
Python
wireshark/test/suite_dfilter/group_function.py
# Copyright (c) 2019 by Dario Lombardo <lomato@gmail.com> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestFunctionString: trace_file = "dhcp.pcap" def test_matches_1(self, checkDFilterCount): dfilter = "string(frame.number) matches \"[1357...
Python
wireshark/test/suite_dfilter/group_integer.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterInteger: trace_file = "ntp.pcap" def test_eq_1(self, checkDFilterCount): dfilter = "ip.version == 4" checkDFilte...
Python
wireshark/test/suite_dfilter/group_ipv4.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterIpv4: trace_file = "nfs.pcap" def test_eq_1(self, checkDFilterCount): dfilter = "ip.src == 172.25.100.14" checkD...
Python
wireshark/test/suite_dfilter/group_ipv6.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterIpv6: trace_file = "ipv6.pcap" def test_eq_1(self, checkDFilterCount): dfilter = "ipv6.dst == ff05::9999" checkD...
Python
wireshark/test/suite_dfilter/group_membership.py
# Copyright (c) 2018 Peter Wu <peter@lekensteyn.nl> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterMembership: trace_file = "http.pcap" def test_membership_match_1(self, checkDFilterCount): dfilter = 'tcp.port in {80, 3267}' ...
Python
wireshark/test/suite_dfilter/group_scanner.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterScanner: trace_file = "http.pcap" def test_dquote_1(self, checkDFilterCount): dfilter = 'http.request.method == "HEAD"' ...
Python
wireshark/test/suite_dfilter/group_slice.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterRange: trace_file = "ipx_rip.pcap" def test_slice_1_pos(self, checkDFilterCount): dfilter = "ipx.src.node[1] == aa" ...
Python
wireshark/test/suite_dfilter/group_string.py
# # Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterString: trace_file = "http.pcap" def test_eq_1(self, checkDFilterCount): dfilter = 'http.request.method == "HEAD"' ...
Python
wireshark/test/suite_dfilter/group_syntax.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterSyntax: trace_file = "http.pcap" def test_exists_1(self, checkDFilterCount): dfilter = "frame" checkDFilterCount...
Python
wireshark/test/suite_dfilter/group_time.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterTime: trace_file = "http.pcap" def test_eq_1(self, checkDFilterCount): dfilter = 'frame.time == "Dec 31, 2002 13:55:31.3...
Python
wireshark/test/suite_dfilter/group_tvb.py
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # SPDX-License-Identifier: GPL-2.0-or-later import pytest from suite_dfilter.dfiltertest import * class TestDfilterProtocol: trace_file = "http.pcap" def test_slice_1(self, checkDFilterCount): dfilter = "ip[0:2] == 45:00" check...
Python
wireshark/test/suite_dissectors/dissectorstest.py
# # Wireshark dissector tests # By Atli Guðmundsson <atli@tern.is> # # SPDX-License-Identifier: GPL-2.0-or-later import inspect import json import subprocess import pytest class _dissection_validator_real: ''' Collects a set of byte bundles, matching json objects and a protocol name and verifies that a ...
Python
wireshark/test/suite_dissectors/group_asterix.py
# # Wireshark ASTERIX dissector tests # By Atli Guðmundsson <atli@tern.is> # # SPDX-License-Identifier: GPL-2.0-or-later # '''ASTERIX dissector tests''' import inspect import pytest # Wireshark modules from suite_dissectors.dissectorstest import * class TestAsterix: def test_for_asterix(self, dissection_valid...
Python
wireshark/test/suite_dissectors/group_netperfmeter.py
# # Wireshark tests # # Copyright 2021 by Thomas Dreibholz <dreibh [AT] simula.no> # # SPDX-License-Identifier: GPL-2.0-or-later # '''NetPerfMeter tests''' import subprocess import pytest class TestNetperfmeter: def test_netperfmeter_test_control(self, cmd_tshark, capture_file, test_env): '''Checks whet...
Shell Script
wireshark/tools/alpine-setup.sh
#!/bin/bash # Setup development environment on alpine systems # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # # We drag in tools that might not be needed by all users; it's easier # that way. # set -e -u -o ...
Shell Script
wireshark/tools/arch-setup.sh
#!/bin/bash # Setup development environment on Arch Linux # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # # We drag in tools that might not be needed by all users; it's easier # that way. # set -e -u -o pipe...
wireshark/tools/asn2deb
#!/usr/bin/env python3 # asn2deb - quick hack by W. Borgert <debacle@debian.org> to create # Debian GNU/Linux packages from ASN.1 files for Wireshark. # Copyright 2004, W. Borgert # ASN.1 module for Wireshark, use of snacc type table: # Copyright 2003, Matthijs Melchior <matthijs.melchior@xs4all.nl> # # Wireshark - N...
Python
wireshark/tools/asn2wrs.py
#!/usr/bin/env python3 # # asn2wrs.py # ASN.1 to Wireshark dissector compiler # Copyright 2004 Tomas Kukosa # # SPDX-License-Identifier: MIT # """ASN.1 to Wireshark dissector compiler""" # # Compiler from ASN.1 specification to the Wireshark dissector # # Based on ASN.1 to Python compiler from Aaron S. Lav's PyZ3950...
Shell Script
wireshark/tools/bsd-setup.sh
#!/usr/bin/env sh # Setup development environment on BSD-like platforms. # # Tested on: FreeBSD, OpenBSD, NetBSD. # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # # We drag in tools that might not be needed by...
Perl
wireshark/tools/checkAPIs.pl
#!/usr/bin/env perl # # Copyright 2006, Jeff Morriss <jeff.morriss.ws[AT]gmail.com> # # A simple tool to check source code for function calls that should not # be called by Wireshark code and to perform certain other checks. # # Usage: # checkAPIs.pl [-M] [-g group1] [-g group2] ... # [-s summary-group1] ...
Perl
wireshark/tools/checkfiltername.pl
#!/usr/bin/perl my $debug = 0; # 0: off # 1: specific debug # 2: full debug # # verify that display filter names correspond with the PROTABBREV of # of the dissector. Enforces the dissector to have a source # filename of format packet-PROTABBREV.c # # Usage: checkfiltername.pl <file or files> # # Copyright 2011 Mic...
Perl
wireshark/tools/checkhf.pl
#!/usr/bin/env perl # # Copyright 2013, William Meier (See AUTHORS file) # # Validate hf_... and ei_... usage for a dissector file; # # Usage: checkhf.pl [--debug=?] <file or files> # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifie...
Python
wireshark/tools/checklicenses.py
#!/usr/bin/env python3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # """Makes sure that all files contain proper licensing information.""" import optparse import os.path import subprocess import sys def PrintUsage(): print("""Usage: python checklicense...
Python
wireshark/tools/check_dissector.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import sys import os import signal import argparse # Run battery of tests on one or more dissectors. # For text colouring/highlighting. cl...
Python
wireshark/tools/check_dissector_urls.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import argparse import aiohttp import asyncio import os import re import shutil import signal import subprocess # This utility scans the di...
Python
wireshark/tools/check_help_urls.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later ''' Go through all user guide help URLs listed in the program and confirm these are present in the User's Guide source files. ''' from re i...
Python
wireshark/tools/check_spelling.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import os import sys import re import subprocess import argparse import signal from collections import Counter # Looks for spelling errors ...
Python
wireshark/tools/check_static.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import os import re import subprocess import argparse import signal # Look for dissector symbols that could/should be static. # This will n...
Python
wireshark/tools/check_tfs.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import os import re import subprocess import argparse import signal # This utility scans for tfs items, and works out if standard ones # co...
Python
wireshark/tools/check_typed_item_calls.py
#!/usr/bin/env python3 # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later import os import re import argparse import signal import subprocess # This utility scans the dissector code for proto_tree_add_...() calls ...