-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from hadriansecurity/olivier/docker
Add Docker
- Loading branch information
Showing
8 changed files
with
30 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# usage: | ||
# change example_input.txt to your input file on line 14 | ||
# docker build -t subwiz . | ||
# docker run subwiz (optionally add any subwiz arguments) | ||
|
||
FROM python:3.12-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY subwiz subwiz | ||
COPY example_input.txt input_domains.txt | ||
|
||
ENTRYPOINT ["python", "-m", "subwiz.cli", "-i", "/app/input_domains.txt"] | ||
CMD [] |
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,10 +4,10 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "subwiz" | ||
version = "0.1.4" | ||
version = "0.1.5" | ||
description = "A recon tool that uses AI to predict subdomains. Then returns those that resolve." | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.9, <3.13" | ||
authors = [{name = "Klaas Meinke", email = "[email protected]"}] | ||
keywords = ["machine learning", "recon", "subdomains", "transformers"] | ||
license = {text = "MIT License"} | ||
|
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,6 @@ | ||
import subwiz | ||
|
||
known_subdomains = ['test1.example.com', 'test2.example.com'] | ||
new_subdomains = subwiz.run(input_domains=known_subdomains, no_resolve=True) | ||
|
||
print(new_subdomains) |
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
File renamed without changes.
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