Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when parse uploaded pcap file #5

Closed
mcxiaoke opened this issue May 5, 2022 · 2 comments
Closed

error when parse uploaded pcap file #5

mcxiaoke opened this issue May 5, 2022 · 2 comments

Comments

@mcxiaoke
Copy link

mcxiaoke commented May 5, 2022

when using http://localhost:1984/index.html upload WireShark save pcap file.

stacktrace:

> iridium@1.2.1 main
> node . main

[  ▶  ]  <Excel> Loading Excels...
         <Excel> 549/620 excels are loaded into memory.
         <Excel> ID lookup is now enabled. Select text and press Enter or use q(id) in console.
(node:16804) [DEP0128] DeprecationWarning: Invalid 'main' field in 'E:\github\Iridium\node_modules\node-kcp\package.json' of 'node-kcp.node'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
[  ▶  ]  <Dispatch> HTTP: localhost:80
[  ▶  ]  <Dispatch> HTTPS: localhost:443
[  ▶  ]  <Frontend> Frontend running on http://localhost:1984/index.html
         <Frontend> [ConnectReq]
         <Frontend> [ProcessFileReq] [object Object]
Exiting cleanly...
node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: unknown magic number: 4d3cb2a1
    at Parser.parseGlobalHeader [as state] (E:\github\Iridium\node_modules\pcap-parser\lib\pcap-parser.js:55:26)
    at Parser.onData (E:\github\Iridium\node_modules\pcap-parser\lib\pcap-parser.js:22:21)
    at Readable.emit (node:events:527:28)
    at Readable.read (node:internal/streams/readable:527:10)
    at flow (node:internal/streams/readable:1011:34)
    at resume_ (node:internal/streams/readable:992:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on Parser instance at:
    at Parser.parseGlobalHeader [as state] (E:\github\Iridium\node_modules\pcap-parser\lib\pcap-parser.js:55:12)
    at Parser.onData (E:\github\Iridium\node_modules\pcap-parser\lib\pcap-parser.js:22:21)
    [... lines matching original stack trace ...]
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

version:
commit be3b68a (HEAD -> main, origin/main, origin/HEAD)
Author: TheLostTree 65834918+TheLostTree@users.noreply.github.com
Date: Sun Apr 24 21:26:46 2022 -0700

newer cur + option to dump some packets to jsons (in config.js)
@mcxiaoke mcxiaoke changed the title error when parse uploaded pacap error when parse uploaded pcap file May 5, 2022
@memetrollsXD
Copy link
Member

Is there a possibility that the pcap may be damaged? Have you tried with different pcaps?

@mcxiaoke
Copy link
Author

mcxiaoke commented May 6, 2022

sorry, because i choosed wrong export pcap format.

@mcxiaoke mcxiaoke closed this as completed May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants