
Exploiter di massa automatizzato
Usando docker-compose:
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
docker-compose run --rm autosploit
Usando solo Docker:
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
# If you wish to edit default postgres service details, edit database.yml. Should work out of the box
# nano database.yml
docker network create -d bridge haknet
docker run --network haknet --name msfdb -e POSTGRES_PASSWORD=s3cr3t -d postgres
docker build -t autosploit .
docker run -it --network haknet -p 80:80 -p 443:443 -p 4444:4444 autosploit
Autosploit come contenitore Docker rende molto facile usare lo strumento in un ambiente cloud ospitato (AWS, Azure, ...)postgres in un servizio individuale per la persistenza dei dati e il potenziale aggiornamento asincrono del databasehaknet per la scoperta automatica dei servizipostgres e Autosploit, entrambi collegati tramite haknetmsfconsole preconfigurato verso il contenitore postgres esterno attraverso la rete trasparente haknetQuesto permetterà al Metasploit Framework di comunicare con il database postgres usando il suo hostname, rendendolo astratto.
Un proxy Tor Socks può anche essere aggiunto per eseguire un proxy trasparente quando si lanciano exploit (non per reverse shell, ovviamente).
docker network create -d bridge haknet
Tutto collegato automaticamente
Avvia un servizio postgres standard, collegato a haknet
docker run --network haknet --name msfdb -e POSTGRES_PASSWORD=s3cr3t -d postgres
Avvia Autosploit.
Questo Dockerfile copierà la configurazione predefinita del database in ~/.msf4/database.yml. Puoi modificare il file di configurazione database.yml a tuo piacimento prima della build.
Tieni presente che la prima build richiederà del tempo (~10 minuti)
La build sarà più veloce se eseguita su un server in hosting, poiché beneficia della larghezza di banda -grade.
git clone https://github.com/NullArray/AutoSploit.git
cd Autosploit/Docker
nano database.yml # Exemple configuration should work fine
docker build -t autosploit .
docker run -it --network haknet -p 80:80 -p 443:443 -p 4444:4444 autosploit