Code Monkey home page Code Monkey logo

packet_buddy's Introduction

packet_buddy

pcap analysis provided by Ollama and the open source model of your choice!

Getting started

Clone the repo

Bring up the server

docker-compose up

Visit Ollama and download your model(s)

http://localhost:3002

Gear / settings button

Models

Download phi, llama2, gemma, etc

Start Packet Buddy

http://localhost:8505

Usage

This has been tested with a variety of small .pcap files and works best with smaller data sets. If possible use wireshark filters or other methods to limit the size of the .pcap and number of packets you wish to 'chat' with. For larget .pcaps I would recommend Packet RAPTOR instead.

Upload your PCAP Pick Your Model Ask questions about the PCAP

The tool will download the Instructor-XL model dynamically, be patient, the first time you launch it, in order to provide free open source embeddings

packet_buddy's People

Contributors

automateyournetwork avatar r-ling avatar

Stargazers

 avatar  avatar  avatar Verlaine_Devnet avatar Tom Parrish avatar  avatar  avatar  avatar Ahmed avatar  avatar Christopher Massey avatar renothing avatar Stephane REYTAN avatar rev avatar Hamza Haroon avatar Doug Sillars avatar Akash L avatar  avatar Sergio Erazo avatar Zakaria Ismail avatar  avatar Rusy avatar James Williams avatar Susan Hooks avatar  avatar Peter Morgan avatar  avatar Mauro Risonho de Paula Assumpção avatar Joshuaodm avatar hexclover avatar Lou DeVictoria avatar Gutem avatar  avatar Alex Escobar | rabocsE avatar Seif Allaoua avatar Vivek Dhami avatar  avatar Dave Chapp avatar Matt Elliott avatar  avatar  avatar Soroush avatar Carsten Pettersson avatar Ed Henry avatar  avatar  avatar Nerijus Razvodovskis avatar MohammadBajelan avatar Do Minh Quan avatar Saikrishna Edupuganti avatar Stefan de Kooter avatar Sunny Chakraborty avatar Hashem Alsaket avatar Henrique Prado de Sousa avatar Sergey Sergeev avatar net_zero avatar  avatar Luke Richardson avatar  avatar Ryan Merolle avatar  avatar  avatar Wai Yan Min Aung avatar Edward avatar Pat avatar

Watchers

Swadhin Pradhan avatar  avatar Dave Chapp avatar  avatar Stephane REYTAN avatar Michael Hubbard avatar  avatar  avatar  avatar  avatar Pragmatic Fermat avatar Joshuaodm avatar

packet_buddy's Issues

RateLimitError: Error code: 429

Anyone else seeing this error? The pcap is small or 40KB. I am using the paid version and generated a new key for this app. Mac, Sonoma, 14.2.1, Python 3.10. Docker 4.27.2

RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

"/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/packet_buddy/packet_buddy.py", line 164, in
chat_interface()
File "/packet_buddy/packet_buddy.py", line 140, in chat_interface
st.session_state['chat_instance'] = ChatWithPCAP(json_path=json_path)
File "/packet_buddy/packet_buddy.py", line 66, in init
self.store_in_chroma()
File "/packet_buddy/packet_buddy.py", line 89, in store_in_chroma
self.vectordb = Chroma.from_documents(self.docs, embedding=embeddings)
File "/usr/local/lib/python3.10/dist-packages/langchain_community/vectorstores/chroma.py", line 778, in from_documents
return cls.from_texts(
File "/usr/local/lib/python3.10/dist-packages/langchain_community/vectorstores/chroma.py", line 736, in from_texts
chroma_collection.add_texts(
File "/usr/local/lib/python3.10/dist-packages/langchain_community/vectorstores/chroma.py", line 275, in add_texts
embeddings = self._embedding_function.embed_documents(texts)
File "/usr/local/lib/python3.10/dist-packages/langchain_openai/embeddings/base.py", line 508, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
File "/usr/local/lib/python3.10/dist-packages/langchain_openai/embeddings/base.py", line 324, in _get_len_safe_embeddings
response = self.client.create(
File "/usr/local/lib/python3.10/dist-packages/openai/resources/embeddings.py", line 113, in create
return self._post(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1200, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 889, in request
return self._request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 965, in _request
return self._retry_request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1013, in _retry_request
return self._request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 965, in _request
return self._retry_request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1013, in _retry_request
return self._request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 980, in _request
raise self._make_status_error_from_response(err.response) from None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.