In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
STEP ONE would be to clone this repository, and open it in VSCode or the IDE of your choosing. From there, you will need multiple terminals open to run this project. 5 to be exact. I always do so on VSCode, once installing the project here is a step by step on how to run:
-
in the first terminal, type 'cd 480PenTesting' - you will have to do this for every terminal, then 'npm install', then 'npm start' - this downloads every node package we need and starts the frontend code or 'UI'. go back to VSCode
-
next, open another terminal and type 'cd 480PenTesting' then 'node server.js', you should get a log saying 'server running on http://localhost:5011', if this fails a potential reason is that port being used by something else, in which case, pick a different port in the server.js file and retry.
-
next, open another terminal type 'ping 127.0.0.1', this will make sense later
!!!To run packet sniffing functionality!!! 4. next, open another terminal and type 'cd 480PenTesting', then 'python3 -m venv venv' and then 'source venv/bin/activate' this creates a virtual environment and then type 'pip install -r requirements.txt'. this downloads every dependency we need for our python files, the equivalent of running npm install earlier. and type 'python3 port.py lo0', go on the UI, and click packet sniffer button, and you can see the connection you were sending, being intercepted! After this, you can get the advanced metrics on these packets by clicking on the pen testing data from packes button. When you're ready, KILL this terminal/process.
!!!To run port sniffing/AI functionality!!! 4. open another terminal and repeat step 4, except instead of 'python3 port.py lo0' type this instead 'python3 port-api.py', now you have access to the port scan, and AI prediction features!
- have fun!
STEP ONE would be to clone this repository and open it in VSCode or the IDE of your choosing. From there, you will need multiple terminals open to run this project — 5 in total. I always do so in VSCode. Once installed, here is a step-by-step on how to run it:
in the first terminal, type 'cd 480PenTesting' — you will have to do this for every terminal — then 'npm install', then 'npm start'. This downloads the necessary Node packages and starts the frontend code or 'UI'. Go back to VSCode.
next, open another terminal and type 'cd 480PenTesting' then 'node server.js', you should get a log saying 'server running on http://localhost:5011'. If this fails, a potential reason is that port is being used by something else. In that case, pick a different port in the server.js file and retry.
next, open another terminal and type 'ping 127.0.0.1', this will make sense later.
!!!To run packet sniffing functionality!!! 4. next, open another terminal and type 'cd 480PenTesting', then 'python3 -m venv venv' and then '.\venv\Scripts\activate'. This creates a virtual environment. Then type 'pip install -r requirements.txt'. This downloads every dependency we need for our Python files, the equivalent of running npm install earlier. Finally, type 'python port.py "Software Loopback Interface 1"', go on the UI, click the packet sniffer button, and you should see the connection you were sending being intercepted! When you're ready, KILL this terminal/process.
!!!To run port sniffing/AI functionality!!! 4. open another terminal and type 'cd 480PenTesting' then '.\venv\Scripts\activate' and then 'python port-api.py' Now you have access to the port scan and AI prediction features!