Update port_vuln.ps1 #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This script is for finding vulnerabilities on a target system. It does this by scanning for open ports and then searching a database of known exploits for ones that can be used on those ports. It has options for giving more output and for only looking at the 1000 most common ports. It also has options for getting information about the services running on the open ports and for finding out what operating system the target is using.
First, the script sets the options it wants to use for the Nmap and ExploitDB functions. Then it sets the target IP address and uses the Nmap function to scan the target for open ports and service info. Next, it looks at each open port and searches the ExploitDB database for known exploits that can be used on that port. If it finds any, it lists the vulnerabilities. Finally, it tells the user what operating system it thinks the target is using, if it was able to figure it out. I ran into some errors when running it but it worked a few times (mostly because I have to update my debugger json file lol on VS).