Closed TsMask closed 5 days ago
One more question, here's how the linkage effect on the graph is done
The ProtoTree
object has all the values needed to compute this:
struct ProtoTree
{
string label;
string filter;
string severity;
string type;
string url;
unsigned int fnum;
int start; // start index
int length; // length of the obj
int data_source_idx;
vector<ProtoTree> tree;
};
I'm enabling the source maps again on the good.tools
website, so you should be able to see the sources for https://good.tools/packet-dissector to get an idea of how it's done there.
I would also suggest to use a web worker for all Wiregasm operations as using it on the main browser thread can block the UI.
The
ProtoTree
object has all the values needed to compute this:struct ProtoTree { string label; string filter; string severity; string type; string url; unsigned int fnum; int start; // start index int length; // length of the obj int data_source_idx; vector<ProtoTree> tree; };
I'm enabling the source maps again on the
good.tools
website, so you should be able to see the sources for https://good.tools/packet-dissector to get an idea of how it's done there.I would also suggest to use a web worker for all Wiregasm operations as using it on the main browser thread can block the UI.
Thanks, I'll look into how to implement it with vue. The display and click to link effect on your site
I plan to use gopacket for gopacket repo by Google capture sent to the page via websocket for parsing.
Is there a function available to parse packet data? It would be cool to be able to pass constructed packets into a function that parses the message!
Thanks, I successfully called and loaded the pcap file through the example and site source view.
The file dist/wiregasm.js
provides the function loadWiregasm that initializes wasm
The new Wiregasm()
function requires a separate function in the package dist/main.js
, but I encountered an error and re-converted the de through ts to get a working
const wg = new Wiregasm();
wg.init(loadWiregasm, {
wasmBinary: wasmBuffer,
getPreloadedPackage() {
return dataBuffer;
},
handleStatus: (type, status) => {
postMessage({ type: 'status', code: type, status: status });
},
printErr: error => {
postMessage({ type: 'error', error: error });
},
});
Thanks
I am using vue to parse pcap,how do I do it like your https://good.tools/packet-dissector