-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organization code and update Testing
- Loading branch information
Showing
6 changed files
with
162 additions
and
120 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 |
---|---|---|
|
@@ -17,8 +17,14 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: false | ||
virtualenvs-in-project: false | ||
|
||
- name: Install dependencies | ||
run: pip install --upgrade -r requirements.txt | ||
run: make setup | ||
|
||
- name: Build | ||
run: python -c "import dirMagic" | ||
- name: Run build | ||
run: make build |
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 |
---|---|---|
@@ -1,2 +1,13 @@ | ||
directories_found.txt | ||
.DS_Store | ||
*.py[cod] | ||
*$py.class | ||
.pytest_cache | ||
*egg-info | ||
dist | ||
.DS_STORE | ||
__pycache__ | ||
|
||
.coverage | ||
coverage.xml | ||
.vscode/ | ||
.idea |
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 @@ | ||
setup: ## Dependencies | ||
poetry update | ||
poetry install | ||
poetry shell | ||
|
||
inspect: ## Run code analysis | ||
poetry run flake8 dir_magic tests | ||
|
||
test: ## Run tests | ||
poetry run pytest -vv --cov-report=xml --cov=dir_magic tests/ | ||
|
||
build: ## Run build | ||
poetry build | ||
|
||
deploy: ## Deploy package | ||
poetry config pypi-token.pypi $(token) | ||
poetry build | ||
poetry publish |
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 @@ | ||
import sys | ||
from dir_magic.header import Header | ||
from dir_magic.dirMagic import DirMagic | ||
|
||
if __name__ == "__main__": | ||
Header().setup() | ||
dir_magic = DirMagic() | ||
|
||
print("1 - Find Directories") | ||
print("2 - Find Subdomains \n") | ||
|
||
try: | ||
item = input("Choose some of the options: ") | ||
|
||
if item == "1": | ||
dir_magic.find_dir() | ||
elif item == "2": | ||
dir_magic.find_subdomains() | ||
else: | ||
print("This option does not exist") | ||
except KeyboardInterrupt: | ||
print("\n Bye!!!") | ||
sys.exit() |
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,16 @@ | ||
class Header(object): | ||
|
||
def setup(self): | ||
print(r""" | ||
_______ __ .______ .___ ___. ___ _______ __ ______ | ||
| \ | | | _ \ | \/ | / \ / _____|| | / | | ||
| .--. || | | |_) | | \ / | / ^ \ | | __ | | | ,----' | ||
| | | || | | / | |\/| | / /_\ \ | | |_ | | | | | | ||
| '--' || | | |\ \----. | | | | / _____ \ | |__| | | | | `----. | ||
|_______/ |__| | _| `._____| |__| |__| /__/ \__\ \______| |__| \______| (1.1.1) | ||
About: DirMagic is a library written in Python to brute force directories and subdomains | ||
Author: João Lucas | ||
Language: Python | ||
GitHub: https://github.com/heroesofcode/DirMagic | ||
""") |