Prerequisites:
- Linux
- Git
- Node.js and npm
- Python 3 and pip
- sudo privileges
- Clone the repository:
git clone https://github.com/cansolele/info-sec-analyzer- Navigate to the server directory:
cd info-sec-analyzer/server- Create and activate a virtual environment:
python3 -m venv venv # You can replace "venv" with your preferred environment name
source venv/bin/activate # For bash/zsh shells- Install server dependencies:
pip install -r requirements.txt- Install required system packages:
sudo apt install libxml-xpath-perl pdfgrep- Install and configure exploitdb:
sudo git clone https://gitlab.com/exploit-database/exploitdb.git /opt/exploitdb
sudo ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit- Update the searchsploit database:
searchsploit -u- Run the server:
python3 server.py- Navigate to the client directory:
cd info-sec-analyzer/client- Install client dependencies:
npm install- Edit the configuration file ::
Open info-sec-analyzer/client/src/config.js and modify the apiURL value to match the address of your server. For example:
const config = Object.freeze({
apiURL: "http://192.168.1.1:5000", // Replace with your server address
});
export default config;- Build the client application:
npm run buildThis will create a production-ready build of your application in the dist folder.
- Serve the client application:
You can use any static file server to serve the content of the dist folder. Here are two options:
- Simple HTTP server (Python 3):
python3 -m http.server 8080 --directory dist- Serve package (Node.js):
npx serve -s dist