tasks.release_domainsfunction checks if the currently checked out domain names are due to be released. If Slack is enabled, it sends a Slack message when the domain's release date is either tomorrow or today. If the release date is today the domain is also released back into the pool.
reset_dnsargument that defaults to
False. If this argument is set to
True, the task will use the Namecheap API to reset the domain's DNS records upon release. This feature requires:
ghostwriter.shepherd.tasks.release_serversfunction checks if the currently checked out servers are due to be released. It sends a Slack message if Slack is enabled and the server's release date is either tomorrow or today. If the release date is today the server is also released back into the pool.
ghostwriter.shepherd.tasks.check_domainsfunction checks each domain name to update categorization. The function uses the VirusTotal API to pull domain categorization data and related malware alerts.
ghostwriter.shepherd.tasks.update_dnsfunction updates Ghostwriter's records of each domain's current DNS records using
dnspythonand constructed DNS queries.
ghostwriter.reporting.tasks.archive_projectsfunction collects a list of projects marked as complete and checks if the project's end date is 90 days (default) in the past. Completed projects older than the specified number of days are archived. This process mostly affects reports attached to the project. Each report is marked as complete (if not already marked as such) and marked as archived. All report types are generated and rolled into a zip file with copies of all of the evidence files. Finally, the evidence files are deleted. The archive files can be browsed and downloaded as needed.
ghostwriter.shepherd.tasks.scan_serversfunction collects a list of static servers catalogued in Ghostwriter, scans them for open ports using
python-nmap, and records the results (the open port number and protocol). Then the results are compared to previous results. If Slack is enabled, Ghostwriter will send a Slack notification if a new port is found to be open.
tasks.fetch_namecheap_domainsuses the Namecheap API to fetch all domains from the registrar for the configured account and synchronizes that information with the domain library. If a domain name is found in the library already, the task will update that record.
review_cloud_infrastructuretask uses the Amazon Web Services and Digital Ocean APIs to check all running server instances and then compare those to cloud servers attached to projects. If a project is marked as complete, the task will flag any running cloud servers attached to that project for review.
check_expirationtask checks the expiration dates of all domains in the domain library and compare it to the current date. If the domain is set to auto-renew, the task will increment the expiration date by one year. Otherwise, the task will mark the domain as expired.