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

Doc request: Simple example of browser usage #9

Closed
lucastho opened this issue Jul 18, 2024 · 5 comments
Closed

Doc request: Simple example of browser usage #9

lucastho opened this issue Jul 18, 2024 · 5 comments

Comments

@lucastho
Copy link

This seems like a fantastic project that could help network troubleshooters a lot. The good.tools site has a nice featureful demo, but the js is obfuscated.

A simple example of how to use this tool in a browser would be helpful: Fetching a pcap file from a server and displaying the wireshark GUI in the browser for a user to interact with.

@dehydr8
Copy link
Member

dehydr8 commented Jul 18, 2024

Hi @lucastho

wiregasm is meant to be a library that provides similar functionality to sharkd or tfshark, it doesn't use any UI components from Wireshark. It's meant to be used on both browsers and node environments.

The demo on good.tools uses the wiregasm lib with custom React components for the UI. A separate UI project would make sense, something that uses https://github.com/BuilderIO/mitosis (or anything similar) for providing a Wireshark-like Web UI.

@TsMask
Copy link

TsMask commented Aug 23, 2024

I want to use it in my website system, but I don't know how to load it.

@dehydr8
Copy link
Member

dehydr8 commented Aug 26, 2024

I have enabled the source maps again on the website, the source should be visible now. I'll try to create an example using vanilla JS/html this week.

@dehydr8
Copy link
Member

dehydr8 commented Aug 26, 2024

A basic example of using Wiregasm with vanilla JS can be found here: examples/vanilla

@TsMask
Copy link

TsMask commented Sep 9, 2024

Thanks

@dehydr8 dehydr8 closed this as completed Sep 11, 2024
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

3 participants