From d4b16af3504a8ded532aaf263492501a6bb91ac4 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 26 Aug 2023 19:57:32 +0200 Subject: [PATCH] resync --- example.js | 1 + package-lock.json | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 package-lock.json diff --git a/example.js b/example.js index 4317dc9..fae352d 100644 --- a/example.js +++ b/example.js @@ -5,3 +5,4 @@ var pcapFile = log2pcap.encodePcap([ {srcIp:"127.0.0.2", srcPort: 5080, dstIp: "127.0.0.1", dstPort: 5060, proto: 17, data: Buffer.from("WORLD")} ]) fs.writeFileSync('helloworld.pcap', pcapFile) +console.log('done! analyize with: tshark -r helloworld.pcap'); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6557a2b --- /dev/null +++ b/package-lock.json @@ -0,0 +1,61 @@ +{ + "name": "log2pcap", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "log2pcap", + "version": "1.0.0", + "license": "AGPLv3", + "dependencies": { + "ip-packet": "^1.1.0", + "pcap-generator": "^0.2.3", + "tcp-packet": "^0.1.1", + "udp-packet": "^2.0.0" + } + }, + "node_modules/ip-packet": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ip-packet/-/ip-packet-1.1.0.tgz", + "integrity": "sha512-mwvJL0breZieWYgXS7Q3K26MCQgz4qGTyDIC1SbmG4EpfsUi7R5FUOHA7gdAtiELxtm+1aOJBahSGUNkGGBHyg==" + }, + "node_modules/pcap-generator": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/pcap-generator/-/pcap-generator-0.2.3.tgz", + "integrity": "sha512-0n8wwRm1IQm+RaRj/zoDYSkff44CCx21ZVgKmR9VsnIVBGVwdkj82LlLUrXMpRhXhWEmdkfZkImM81E5cYKWuQ==" + }, + "node_modules/tcp-packet": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/tcp-packet/-/tcp-packet-0.1.1.tgz", + "integrity": "sha512-c3AD3FVHRyt9j+1hp6CP5RrG+hOWVV4WC1WcgRGbgs6i4IbnE9xuVZN7EtN486H/UR331Id+u2Pw4R2ijkHjPA==" + }, + "node_modules/udp-packet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/udp-packet/-/udp-packet-2.0.0.tgz", + "integrity": "sha512-bq+eF4hncTwaiuM2ihvuTQWG+EXOKpzKu6JY4o09331q3295xnd3vlc+SwPiOUm+OylggWATdLmjwY2qOOnOBg==" + } + }, + "dependencies": { + "ip-packet": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ip-packet/-/ip-packet-1.1.0.tgz", + "integrity": "sha512-mwvJL0breZieWYgXS7Q3K26MCQgz4qGTyDIC1SbmG4EpfsUi7R5FUOHA7gdAtiELxtm+1aOJBahSGUNkGGBHyg==" + }, + "pcap-generator": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/pcap-generator/-/pcap-generator-0.2.3.tgz", + "integrity": "sha512-0n8wwRm1IQm+RaRj/zoDYSkff44CCx21ZVgKmR9VsnIVBGVwdkj82LlLUrXMpRhXhWEmdkfZkImM81E5cYKWuQ==" + }, + "tcp-packet": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/tcp-packet/-/tcp-packet-0.1.1.tgz", + "integrity": "sha512-c3AD3FVHRyt9j+1hp6CP5RrG+hOWVV4WC1WcgRGbgs6i4IbnE9xuVZN7EtN486H/UR331Id+u2Pw4R2ijkHjPA==" + }, + "udp-packet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/udp-packet/-/udp-packet-2.0.0.tgz", + "integrity": "sha512-bq+eF4hncTwaiuM2ihvuTQWG+EXOKpzKu6JY4o09331q3295xnd3vlc+SwPiOUm+OylggWATdLmjwY2qOOnOBg==" + } + } +}