-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bbot-integration
- Loading branch information
Showing
50 changed files
with
821 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v2 | ||
name: Secator | ||
description: A Secator Helm chart for Kubernetes | ||
|
||
type: application | ||
version: 0.1.0 | ||
appVersion: "0.5.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.redis.name }} | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: {{ .Values.redis.port }} | ||
name: client | ||
selector: | ||
app: redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: {{ .Values.redis.name }} | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: redis | ||
serviceName: {{ .Values.redis.name }} | ||
replicas: {{ .Values.redis.replicas }} | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
spec: | ||
containers: | ||
- name: {{ .Values.redis.name }} | ||
image: {{ .Values.redis.image }} | ||
ports: | ||
- containerPort: {{ .Values.redis.port }} | ||
name: client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{ .Values.secatorManager.name }} | ||
namespace: {{ .Values.namespace }} | ||
labels: | ||
name: secator-manager | ||
spec: | ||
containers: | ||
- name: secator-manager | ||
image: {{ .Values.secatorManager.image }} | ||
command: ["tail"] | ||
args: ["-F", "anything"] | ||
env: | ||
- name: SECATOR_CELERY_BROKER_URL | ||
value: "redis://{{ .Values.redis.name }}:6379/0" | ||
- name: SECATOR_CELERY_RESULT_BACKEND | ||
value: "redis://{{ .Values.redis.name }}:6379/0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.secatorWorker.name }} | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: secator-worker | ||
template: | ||
metadata: | ||
labels: | ||
app: secator-worker | ||
spec: | ||
containers: | ||
- name: {{ .Values.secatorWorker.name }} | ||
image: {{ .Values.secatorWorker.image }} | ||
command: ["secator"] | ||
args: ["worker"] | ||
env: | ||
- name: SECATOR_CELERY_BROKER_URL | ||
value: "redis://{{ .Values.redis.name }}:6379/0" | ||
- name: SECATOR_CELERY_RESULT_BACKEND | ||
value: "redis://{{ .Values.redis.name }}:6379/0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Default values for Secator | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
namespace: secator | ||
|
||
secatorManager: | ||
name: secator-manager | ||
image: "freelabz/secator" | ||
|
||
# Empty if using default repository | ||
repository: | ||
# Empty if using tag "latest" | ||
tag: | ||
|
||
secatorWorker: | ||
name: secator-worker | ||
image: "freelabz/secator" | ||
|
||
# Empty if using default repository | ||
repository: | ||
# Empty if using tag "latest" | ||
tag: | ||
|
||
redis: | ||
name: redis | ||
image: "redis" | ||
|
||
# Empty if using default repository | ||
repository: | ||
# Empty if using tag "latest" | ||
tag: | ||
replicas: 1 | ||
port: 6379 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "secator-worker", | ||
"version": "0.0.1", | ||
"description": "Secator worker", | ||
"main": "", | ||
"scripts": { | ||
"solo": "npm run venv && venv/bin/secator worker -r", | ||
"dev": "npm run venv && SECATOR_CELERY_BROKER_URL=redis://localhost:6379 SECATOR_CELERY_RESULT_BACKEND=redis://localhost:6379 venv/bin/secator worker -r", | ||
"venv": "pip install virtualenv --break-system-packages && virtualenv venv && chmod +x venv/bin/activate && . venv/bin/activate && venv/bin/pip install -e .[dev,worker,redis,mongodb,trace]", | ||
"generate": "rm -r venv && npm run venv && venv/bin/pip install fastapi uvicorn && venv/bin/pip freeze > requirements.txt", | ||
"docker:build": "docker build -t secator .", | ||
"docker:push": "gcloud builds submit .", | ||
"docker:logs": "docker logs -f secator", | ||
"docker:start": "docker run --name=secator-worker --network=host -e SECATOR_CELERY_BROKER_URL=redis://localhost:6379 -e SECATOR_CELERY_RESULT_BACKEND=redis://localhost:6379 -d secator worker", | ||
"docker:stop": "docker stop secator-worker; docker rm secator-worker", | ||
"docker:start-redis": "docker run --name redis -p 6379:6379 -d redis", | ||
"docker:stop-redis": "docker stop redis; docker rm redis", | ||
"docker:start-mongodb": "docker run --name mongodb -p 27017:27017 -d mongo:latest", | ||
"docker:stop-mongodb": "docker stop mongodb; docker rm mongodb", | ||
"docker:start-deps": "npm run docker:start-mongodb; npm run docker:start-redis", | ||
"docker:stop-deps": "npm run docker:stop-mongodb; npm run docker:stop-redis", | ||
"docker:start-all": "npm run docker:start-deps; npm run docker:start", | ||
"docker:stop-all": "npm run docker:stop-deps; npm run docker:stop" | ||
}, | ||
"keywords": [], | ||
"author": "[email protected]", | ||
"license": "", | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "secator" | ||
version = "0.4.1" | ||
version = "0.6.0" | ||
authors = [{ name = "FreeLabz", email = "[email protected]" }] | ||
readme = "README.md" | ||
description = "The pentester's swiss knife." | ||
|
@@ -30,7 +30,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.11", | ||
] | ||
dependencies = [ | ||
"bs4 < 1", | ||
"beautifulsoup4 <= 5", | ||
'celery < 6', | ||
"cpe < 2", | ||
"dotmap < 2", | ||
|
@@ -46,6 +46,7 @@ dependencies = [ | |
"requests < 3", | ||
"rich < 14", | ||
"rich-click < 1.7", | ||
"tldextract < 6", | ||
"typing_extensions < 5", | ||
"validators < 1", | ||
"xmltodict < 1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.