{"id":13845293,"url":"https://github.com/c-sh0/santacruz","last_synced_at":"2026-01-16T16:48:29.846Z","repository":{"id":220056855,"uuid":"480920329","full_name":"c-sh0/santacruz","owner":"c-sh0","description":"Elasticsearch and Kibana setup for Penetration testing and reconnaissance.","archived":false,"fork":false,"pushed_at":"2023-01-26T18:02:06.000Z","size":380,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-21T18:39:23.241Z","etag":null,"topics":["bash","docker","docker-compose","elasticsearch","elk","httpx","kibana","lua","nmap","nmap-scripts","nuclei","penetration-testing","projectdiscovery","python","reconnaissance","security","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-sh0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-04-12T18:02:44.000Z","updated_at":"2023-06-09T13:40:22.000Z","dependencies_parsed_at":"2024-01-31T04:28:57.921Z","dependency_job_id":"aafc5a85-f776-4b2d-9b46-c31f08d9d0a4","html_url":"https://github.com/c-sh0/santacruz","commit_stats":null,"previous_names":["c-sh0/santacruz"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-sh0/santacruz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-sh0%2Fsantacruz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-sh0%2Fsantacruz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-sh0%2Fsantacruz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-sh0%2Fsantacruz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-sh0","download_url":"https://codeload.github.com/c-sh0/santacruz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-sh0%2Fsantacruz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923075,"owners_count":23683717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","docker","docker-compose","elasticsearch","elk","httpx","kibana","lua","nmap","nmap-scripts","nuclei","penetration-testing","projectdiscovery","python","reconnaissance","security","security-tools"],"created_at":"2024-08-04T17:03:19.193Z","updated_at":"2026-01-16T16:48:29.791Z","avatar_url":"https://github.com/c-sh0.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Santacruz\n**Status**: *In Development*\n\nElasticsearch and Kibana setup for Penetration testing and reconnaissance.\n* An Original Idea? Nope.\n* My own version? Yep.\n\n## Description\nHaving to write custom shell scripts to parse and keep track of all the data from many different security tools is time consuming and often results in a mountain of text files. Other solutions to this problem often include yet more tools, often times a license, and features that are never used. I needed something simple, lightweight, customisable, portable, and easy to deploy without all the \"feature\" bloat.\n#### TL;DR\n* Normalize useful tool output\n* Team Collaboration\n\n# Getting Started\n1. Clone\u003cbr\u003e\n   ```git clone https://github.com/c-sh0/santacruz.git```\n\n2. Increase virtual memory for Elasticsearch\u003cbr\u003e\n   ```sysctl -w vm.max_map_count=262144```\u003cbr\u003e\n   ```echo 'vm.max_map_count=262144' \u003e\u003e /etc/sysctl.conf```\n\n3. Setup the persistent storage volumes. Permissions need to match the elasticsearch and kibana container users, 1000:1000)\u003cbr\u003e\n   ```mkdir -p ./data/elasticsearch ./data/kibana```\u003cbr\u003e\n   ```chown 1000:1000 ./data/elasticsearch ./data/kibana```\n\n## Start Elasticsearch and Kibana containers\nThe easiest approach when setting passwords is by following the steps below otherwise, your going to end up mucking with the containers and/or composer files later.\n1. Start Elasticsearch container (\u0026\u0026 watch logs to make sure it starts)\u003cbr\u003e\n   ```docker-compose up -d elasticsearch \u0026\u0026 docker logs elasticsearch --follow```\n\n2. Change the default passwords for all built-in users, make note of the output.\u003cbr\u003e\n   ```docker exec elasticsearch /bin/bash -c \"bin/elasticsearch-setup-passwords auto --batch\"```\n\n3. Since this is a `single-node` cluster, for all newly created indexes, create an index template that will set `number_of_replicas` to `0`\n      ```sh\n      curl -X PUT 'http://localhost:9200/_template/template_1' \\\n      -H 'Content-Type: application/json' \\\n      -d '{\"index_patterns\":[\"*\"],\"order\":0,\"settings\":{\"number_of_shards\":1,\"number_of_replicas\": 0}}' \\\n      -u elastic:\u003cpassword from #2\u003e\n      ```\n      Refer to the documentation for more information and settings.\u003cbr\u003e\n      https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html\n\n4. Update the Kibana and Santacruz configuration files with generated password from #2\u003cbr\u003e\n   ```conf/kibana.yml```\u003cbr\u003e\n   ```conf/cli.yml```\n\n5. Start Kibana container. It will take a min or two to fully start (\u0026\u0026 watch logs to make sure it starts)\u003cbr\u003e\n   ```docker-compose up -d kibana \u0026\u0026 docker logs kibana --follow```\n\n6. Login into the Kibana dashboard (user: elastic, password from #2)\u003cbr\u003e\n   ```http://your.ip:5601/```\n\n7. (Optional) Add additional users: **Stack Management** -\u003e **Users**\n\n### Optional\nBy default, containers will not automaticaly start on system boot. The following commands will start the containers when docker starts\n   ```sh\n      docker update --restart=always elasticsearch\n      docker update --restart=always kibana\n   ```\nSee: https://docs.docker.com/config/containers/start-containers-automatically/\n\n## Documentation\n\u003ca href=\"doc/README.md\" target=\"_blank\"\u003edoc/README.md\u003c/a\u003e\n\n## Todo\n   * Documentation\n   * Rename this project\n   * Single CLI tool\n   * Logstash/Filebeat? (Doubtful, no need for it here)\n   * Other\n\n## References\nMarco Lancini's writeup: \u003ca href=\"https://www.marcolancini.it/2018/blog-elk-for-nmap/\" target=\"_blank\"\u003eOffensive ELK: Elasticsearch for Offensive Security\u003c/a\u003e\u003cbr\u003e\nElasticsearch: \u003ca href=\"https://github.com/elastic/elasticsearch\" target=\"_blank\"\u003ehttps://github.com/elastic/elasticsearch\u003c/a\u003e\u003cbr\u003e\nKibana: \u003ca href=\"https://github.com/elastic/kibana\" target=\"_blank\"\u003ehttps://github.com/elastic/kibana\u003c/a\u003e\u003cbr\u003e\nNmap: \u003ca href=\"https://nmap.org/\" target=\"_blank\"\u003ehttps://nmap.org/\u003c/a\u003e\u003cbr\u003e\nProject Discovery: \u003ca href=\"https://github.com/projectdiscovery\" target=\"_blank\"\u003ehttps://github.com/projectdiscovery\u003c/a\u003e\u003cbr\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-sh0%2Fsantacruz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-sh0%2Fsantacruz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-sh0%2Fsantacruz/lists"}