Skip to content

Update Scanner.py #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jnzonzidi
Copy link

No description provided.

@jnzonzidi
Copy link
Author

f scanner.scaninfo() == 'up' corrected:
Properly check the state using scanner[ip_addr].state() to avoid errors.
Input Validation:
Ensured resp is one of the expected options before proceeding.
Protocols Check:
Ensured the script checks whether the protocol (tcp or udp) exists in the scan result before trying to access its keys.

@jnzonzidi jnzonzidi closed this Nov 18, 2024
@jnzonzidi jnzonzidi reopened this Nov 18, 2024
Copy link
Author

@jnzonzidi jnzonzidi left a comment

Choose a reason for hiding this comment

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

f scanner.scaninfo() == 'up' corrected:
Properly check the state using scanner[ip_addr].state() to avoid errors.
Input Validation:
Ensured resp is one of the expected options before proceeding.
Protocols Check:
Ensured the script checks whether the protocol (tcp or udp) exists in the scan result before trying to access its keys.

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.

1 participant