Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added More Command Examples for New Users in nettacker.py #849

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion nettacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@

# if dependencies and OS requirements are match then load the program
from core.parse import load
import sys

load() # load and parse the ARGV
# Example commands to demonstrate OWASP Nettacker functionalities
example_commands = [
"-i target.com",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI target.com is a real company web-site that may not appreciate to be a default example even in a pretty small audience penetration testing tool.

Copy link
Collaborator

@securestep9 securestep9 Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arkid15r I will take care of this and add more info to --help and the new documentation. The examples in this PR are not 100% correct as they are using non-existing modules and switches, but I get the idea

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arkid15r I will take care of this and add more info to --help and the new documentation. The examples in this PR are not 1005 correct as they are using non-existing modules and switches, but I get the idea

Sounds good, thanks Sam!

"-i target.com -v --start-api --api-host 0.0.0.0 --api-port 5000",
"-i target.com -m ftp_brute,ssh_brute",
"-i target.com -o results.txt -L en",
"-i target.com -u admin -P passwords.txt",
"-i target.com -g 21,22 -p tcp,udp",
"-i target.com --start-api --api-host 192.168.1.100 --api-port 8080 --api-ssl",
"-i target.com -m http_crawl -f --crawl-depth 3",
"-i target.com --db-save --db-name nettacker_results"
]

# Print example commands
print("Example commands:")
for command in example_commands:
print(f"nettacker {command}")

# Load and parse the ARGV
load()
# sys.exit(main())