LLM: Ollama Pentest
Jump to navigation
Jump to search
Ollama
ollama pull nitrogetrepo/pentest_ai
Prompt example
create a script file for kali linux 2024.4 to pentest ubuntu 24.04 server at 192.168.0.100
Hasilnya:
To create a script file for Kali Linux 2024.4 to perform penetration testing on an Ubuntu 24.04 server at IP address 192.168.0.100, follow these steps: 1. Open the terminal on your Kali Linux machine. 2. Create a new file for the script by typing the following command and pressing Enter:
nano ubuntu_pentest.sh
3. Copy and paste the following code into the nano text editor:
#!/bin/bash echo "Welcome to Ubuntu 24.04 Penetration Testing!" echo "Performing the following tests:" echo "1. Port Scanning" echo "2. Vulnerability Scanning" echo "3. Exploitation" echo "4. Report Generation" read -p "Enter your choice (1-4): " choice case $choice in 1) echo "Starting port scanning..." nmap -sS -O 192.168.0.100 ;; 2) echo "Starting vulnerability scanning..." nmap -sC -sV 192.168.0.100 ;; 3) echo "Starting exploitation..." msfconsole -q -r ubuntu_exploit.rc ;; 4) echo "Generating report..." python3 report_generator.py ;; *) echo "Invalid choice! Exiting..." exit ;; esac 4. Press `Ctrl + X`, then press `Y` to save the changes, and finally press Enter to confirm the filename (ubuntu_pentest.sh). 5. Make the script executable by typing the following command and pressing Enter:
chmod +x ubuntu_pentest.sh
6. Run the script by typing the following command and pressing Enter:
./ubuntu_pentest.sh
7. Follow the prompts to select the type of penetration testing you want to perform. Note: This script assumes that you have the necessary tools installed, such as nmap for port scanning and vulnerability scanning, and Metasploit for exploitation. You may need to
install these tools separately before running the script. Additionally, the report generation script (report_generator.py) should be created or obtained separately, as it is not included in this example.
Model huggingface
https://huggingface.co/ArmurAI/Pentest_AI https://huggingface.co/Kuro0911/pentest_ai_LLM