NETRAVE/lib/utils
VetheonGames f8ea01ed1b Implement Initial System Setup and Packet Capture
1. Initial System Setup:
   - Implemented a first run initialization process that guides the user through setting up the necessary environment variables.
   - Created a method to securely ask for the user's sudo password, test it, and store it in an encrypted form in an environment variable for use during the first run setup process.
   - Added a method to clear the sudo password from memory and the environment variables at the end of the first run setup process.

2. Packet Capture:
   - Created a PacketCapture class that uses the PCAPRUB library to capture packets from a specified network interface.
   - Refactored the packet capture process to add each captured packet to a Redis queue for further processing, instead of processing the packets directly.
   - Removed the manual packet dissection from the packet capture process, as this will be handled by the workers.

3. Networking Setup:
   - Created a NetworkingGenie class to handle the setup of the necessary networking components.
   - Added methods to identify the main network interface, create a dummy network interface, and set up traffic mirroring from the main interface to the dummy interface.

4. Logging:
   - Implemented logging for all major actions and errors throughout the system.

5. General Refactoring and Code Cleanup:
   - Refactored and cleaned up various parts of the code to improve readability and maintainability.
   - Fixed various minor bugs and issues.

This commit lays the groundwork for the packet processing workers and the orchestrator that will manage them. The next steps will be to implement these components and integrate them with the existing system.
2023-06-29 22:36:18 -06:00
..
database_manager.rb Refactor and enhance database connection and data validation 2023-06-29 18:27:08 -06:00
first_run_init.rb Refactor and enhance database connection and data validation 2023-06-29 18:27:08 -06:00
gui_launcher.rb Major Refactoring and Feature Addition for Improved User Experience and Code Quality 2023-06-12 15:31:34 -06:00
logg_man.rb Implement Encryption for Sensitive Data and Switch to .env for Configuration Storage 2023-06-11 15:46:53 -06:00
networking_genie.rb Implement Initial System Setup and Packet Capture 2023-06-29 22:36:18 -06:00
packet_capture.rb Implement Initial System Setup and Packet Capture 2023-06-29 22:36:18 -06:00
redis_queue.rb Implement Initial System Setup and Packet Capture 2023-06-29 22:36:18 -06:00
system_information_gather.rb Implement Initial System Setup and Packet Capture 2023-06-29 22:36:18 -06:00
utilities.rb Implement Initial System Setup and Packet Capture 2023-06-29 22:36:18 -06:00