Skip to content

midhunsankar23/HIDS

Repository files navigation

# HIDS (Host-based Intrusion Detection System)

## Prerequisites  
Ensure that you have the following installed on your local machine:  
- Python 3.x  
- pip  
- virtualenv  
- Root access on your machine  

## Setting Up  
Follow these steps to get a local copy of the code:  
1. Clone the repository:  
```bash  
git clone https://github.com/hima-23-bit/HIDS.git  
  1. Navigate to the project directory:
cd HIDS  
  1. Create a virtual environment:
python3 -m venv venv  
  1. Activate the virtual environment:
source venv/bin/activate  
  1. Install the required dependencies:
pip install -r requirements.txt  

Running the Application

Follow these steps to run the application:

  1. Open two terminals with root access:
sudo su  
  1. In both terminals, navigate to the project directory and activate the virtual environment:
source venv/bin/activate  
  1. In the first terminal, run the main application:
python3 app.py  
  1. In the second terminal, set up the iptables rules to redirect packets to a Netfilter queue (NFQUEUE):
iptables -I INPUT -j NFQUEUE --queue-num 0  
iptables -I OUTPUT -j NFQUEUE --queue-num 0  
  1. Still in the second terminal, run the packet capture script:
python3 packet_capture.py  
  1. After running the application, clear the iptables rules to restore normal network activity:
iptables --flush  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors