Follow these steps to set up the IotSploit project on your local machine.
git fetch
git checkout -b dev origin/dev
Ensure you have Docker installed, then run the following commands:
docker pull redis
docker run --name sat-redis -p 6379:6379 -d redis:latest
Poetry is used for dependency management. Install and configure it with:
pip install poetry
pip install poetry-plugin-shell
poetry lock # This may take 10-20 minutes
poetry install # This may take 10-20 minutes
poetry shell
Run the following commands to set up the database:
python manage.py makemigrations
python manage.py makemigrations sat_toolkit
python manage.py migrate
Launch the application with:
python console.py
Once the application is running, you can interact with it using the IoTSploit Shell. Below are some of the key commands available:
- exploit: Execute all plugins in the IotSploit System.
- exit: Exit the IoTSploit Shell.
- device_info: Show Device Info.
- list_devices: List all devices stored in the database.
- list_device_drivers: List all available device plugins.
- connect_lab_wifi: Connect to Lab WiFi.
- runserver: Start Django development server, Daphne WebSocket server, and Celery worker in the background.
- stop_server: Stop Django development server, Daphne WebSocket server, and Celery worker.
- list_plugins: List all available plugins.
- execute_plugin: Execute a specific plugin.
- flash_plugins: Refresh and reload all plugins from the plugins directory.
- create_group: Create a plugin group and add selected plugins to it.
- execute_group: Execute plugins in a selected group.
- list_groups: List all available plugin groups.
- list_targets: List all targets stored in the database.
- target_select: Select a target from available targets.
- edit_target: Edit an existing target in the database.
- test_select: Select Test Project.
- run_test: Start Test Project.
- quick_test: Run Test Project quickly.
- help: List available commands or get detailed help for a specific command.
- set_log_level: Set the logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL).
- ls: List directory contents.
- lsusb: List USB devices.
For more detailed information on each command, you can type help <command>
within the IoTSploit Shell.