An asynchronous enumeration & vulnerability scanner. Run all the tools on all the hosts.
An asynchronous enumeration & vulnerability scanner. Run all the tools on all the hosts.
celerystalk helps you automate your network scanning/enumeration process with asynchronous jobs (aka tasks) while retaining full control of which tools you want to run.
Interactive Demo: Bug Bounty Mode (HackerOne)
Interactive Demo: Vulnerability Assessment / PenTest Mode (Retired HackTheBox.eu machines)
| Phase | Command | Examples of tools used |
|---|---|---|
| DNS Recon/Enumeration | ./celerystalk subdomains -d domain1,domain2 | Amass, sublist3r |
| Define Scope, Import nmap/nessus | ./celerystalk import [scan_data,scope_files,etc.] | celerystalk |
| Port Scanning | ./celerystalk nmap | nmap |
| Directory and File Enumeration, Vulnerability Identification | ./celerystalk scan | Gobuster, Nikto, Photon, sqlmap, wpscan, hydra, medusa, wappalyzer, whatweb, etc. |
| Screenshots | ./celerystalk sceenshots | Aquatone |
| Analysis | ./celerystalk report | celerystalk |
celerystalk is:
You must install and run celerystalk as root
git clone https://github.com/sethsec/celerystalk.git
cd celerystalk/setup
./install.sh
cd ..
./celerystalk -hdocker pull sethsec/celerystalk:latest
docker run -p 27007:27007 -ti celerystalkdocker build -t celerystalk https://github.com/sethsec/celerystalk.git
docker run -p 27007:27007 -ti celerystalk # ./celerystalk scan -u url or filename # Run all enabled commands against specified url(s)
# ./celerystalk query watch (then Ctrl+c) # Wait for scans to finish
# ./celerystalk screenshots # Take screenshots
# ./celerystalk report # Generate report# nmap 10.10.10.10 -Pn -p- -sV -oX tenten.xml # Run nmap
# ./celerystalk import -f tenten.xml # Import nmap scan # ./celerystalk import -S scope.txt # Import IP/CIDR/Ranges and mark as in scope
# ./celerystalk nmap # Nmap all in-scope hosts (reads options from config.ini)# ./celerystalk db services # If you want to see what services were loaded
# ./celerystalk scan # Run all enabled commands
# ./celerystalk query watch (then Ctrl+c) # Watch scans as move from pending > running > complete
# ./celerystalk screenshots # Take screenshots
# ./celerystalk report # Generate reportYou define the mode at workspace instantiation. The default workspace is VAPT mode, but you have two options for manually created workspaces.
…Note: You can run the subdomains command first and then define scope, or you can define scope and import subdomains.
…Note: You can run the subdomains command first and then define scope, or you can define scope and import subdomains.
…Note: You can run the subdomains command first and then define scope, or you can define scope and import subdomains.
For more detail, check out the Configuration page in the Wiki
You need to create a workspace before you can do anything else.
| Option | Description |
|---|---|
| no options | Prints current workspace |
| create | Creates new workspace |
| -w | Define new workspace name |
| -o | Define output directory assigned to workspace |
| -m | Mode [vapt \ bb] |
Create default workspace ./celerystalk workspace create -o /assessments/client -m bb
Create named workspace ./celerystalk workspace create -o /assessments/client -w client -m vapt
Switch to another workspace ./celerystalk workspace clientThis command allows you to import port and host data into celerystalk, and allows you to define what is in scope and what is out of scope.
| Option | Description |
|---|---|
| -f scan.xml | Nmap/Nessus xml |
Adds all IP addresses from this file to hosts table and marks them all in scope to be scanned.
Adds all ports and service types to services table.
| | -S scope.txt | Scope file
Show file differences that haven't been staged
| | -D subdomains.txt | (sub)Domains file
celerystalk determines whether each subdomain is in scope by resolving the IP and looking for IP in the DB. If there is a match, the domain is marked as in scope and will be scanned.
|
Import Nmap XML file: ./celerystalk import -f /assessments/nmap.xml
Import Nessus file: ./celerystalk import -f /assessments/scan.nessus
Import list of Domains: ./celerystalk import -D
Import list of IPs/Ranges: ./celerystalk import -S
Specify workspace: ./celerystalk import -f
Import multiple files: ./celerystalk import -f nmap.xml -S scope.txt -D domains.txtThis command executes uses all of the subdomain search tools in your config file. If you prefer, you can do this outside of celerystalk and import the subdomains with the import command
| Option | Description |
|---|---|
| -d domain1,domain2,etc | Run Amass, Sublist3r, etc. and store domains in DB |
After running your subdomain recon tools celerystalk determines whether each subdomain is in scope by resolving the IP and looking for IP in the DB. If there is a match, the domain is marked as in scope and will be scanned.
|
Find subdomains: celerystalk subdomains -d domain1.com,domain2.comThis command will run nmap for you, using the options you specified in the config.ini file. You can alternatively import port scan data from an nmap xml file or from a .nessus file
| Option | Description |
|---|---|
| no options | Read nmap command from config and scan all services for in-scope hosts |
| -c [filename] | Specify a celerystalk configuration file [Default: ./config.ini] |
This command will submit tasks to celery, which asynchronously executes them and logs output to your output directory.
| Option | Description |
|---|---|
| no options | Scan all in scope hosts |
Reads DB and scans every in scope IP and subdomain.
Launches all enabled tools for IPs, but only http/http specific tools against virtualhosts
| | --noIP | Don't scan hosts by IP (only scan vhosts) | -t ip,vhost,cidr | Scan specific target(s) from DB or scan file
Scan a subset of the in scope IPs and/or subdomains
|
| -s | Simulation
Sends all of the tasks to celery, but all commands are executed with a # before them rendering them inert
| | -c [filename] | Specify a celerystalk configuration file [Default: ./config.ini] | | -u [URL] | Scan a specific URL, even if it is not in the DB yet |
Scan all in scope hosts: ./celerystalk scan
Scan subset of DB hosts: ./celerystalk scan -t 10.0.0.1,10.0.0.3
./celerystalk scan -t 10.0.0.100-200
./celerystalk scan -t 10.0.0.0/24
./celerystalk scan -t sub.domain.com
Simulation mode: ./celerystalk scan -sThis command will rescan an already scanned host.
| Option | Description |
|---|---|
| no option | For each in scope host in the DB, celerystalk will ask if if you want to rescan it |
| -t ip,vhost,cidr | Scan a subset of the in scope IPs and/or subdomains. |
| -s | Sends all of the tasks to celery, but all commands are executed with a # before them rendering them inert. |
| -c [filename] | Specify a celerystalk configuration file [Default: ./config.ini] |
Rescan all hosts: ./celerystalk rescan
./celerystalk rescan -c myconfig.ini
Rescan some hosts ./celerystalk rescan -t 1.2.3.4,sub.domain.com
Simulation mode: ./celerystalk rescan -s Asynchronously check the status of the tasks queue as frequently as you like. The watch mode actually executes the linux watch command so you don't fill up your entire terminal buffer.
| Option | Description |
|---|---|
| no options | Shows all tasks in the current workspace |
| watch | Sends command to the unix watch command which will let you get an updated status every 2 seconds |
| brief | Limit of 5 results per status (pending/running/completed/cancelled/paused) |
| summary | Shows only a banner with numbers and not the tasks themselves |
Query Tasks: ./celerystalk query
./celerystalk query watch
./celerystalk query brief
./celerystalk query summary
./celerystalk query summary watchCancel/Pause/Resume any task(s) that are currently running or in the queue.
| Option | Description |
|---|---|
| cancel |
Canceling a running task will send a kill -TERM
Canceling a queued task* will make celery ignore it (uses celery's revoke).
Canceling all tasks* will kill running tasks and revoke all queued tasks.
| pause |
Pausing a single task uses kill -STOP to suspend the process.
Pausing all tasks* attempts to kill -STOP all running tasks, but it is a little wonky and you mind need to run it a few times. It is possible a job completed before it was able to be paused, which means you will have a worker
No open issues yet, or sync has not completed.