diff --git a/README.md b/README.md index 2454161..f805d09 100644 --- a/README.md +++ b/README.md @@ -50,19 +50,19 @@ Ensure the following dependencies are installed: Install `pipenv` if it's not already installed: ```bash - pip install pipenv + sudo pip install pipenv ``` Then, use `pipenv` to create the virtual environment and install the required dependencies: ```bash - pipenv install + sudo pipenv install ``` To activate the virtual environment: ```bash - pipenv shell + sudo pipenv shell ``` 3. **Run the application**: diff --git a/core/sniffer.py b/core/sniffer.py index 651d537..f9bf00f 100644 --- a/core/sniffer.py +++ b/core/sniffer.py @@ -1,9 +1,5 @@ from PyQt6.QtCore import QObject, pyqtSignal as Signal import scapy.all as scapy -from openai import OpenAI - -client = OpenAI(api_key='') # Import OpenAI - class PacketCollector(QObject): @@ -34,17 +30,3 @@ def process_packet(self, packet): def stop_capture(self): self.running = False - - @staticmethod - def analyze_packet_with_openai(packet_info): - try: - response = client.chat.completions.create( - model="gpt-4-turbo", - messages=[ - {"role": "system", "content": "You are a helpful assistant."}, - {"role": "user", "content": f"Analyze the following packet information: {packet_info}"} - ] - ) - print(response.choices[0].message.content.strip()) - except Exception as e: - return f"Error during OpenAI API call: {str(e)}" \ No newline at end of file