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

return array of dicts for result #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BeardedTek
Copy link

Modified portscan.py to return an array of dicts for each ip/port combination scanned.

  • Added stdout=True to __init__()
  • If stdout=False behavior is modified to output a list of dicts
  • If show_refused is set to False (default) it only lists open ports
  • If show_refused is set to True it lists all ports scanned to both stdout and list of dicts output.

## Modified portscan.py to return an array of dicts for each ip/port combination scanned.
- Added stdout=True to \_\_init\_\_()
- If stdout=False behavior is modified to output a list of dicts
- If show_refused is set to False (default) it only lists open ports
- If show_refused is set to True it lists all ports scanned to both stdout and list of dicts output.
@Aperocky
Copy link
Owner

Aperocky commented Nov 23, 2022

Merged another PR that returned it in array instead. Upon inspection, this is superior. will pull in and update in pip if conflict resolves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants