It is a python based side project for scanning open ports in a server that works with windows only if 'tnc' command is enabled. Other OS and commands will be added based on requests and after completion of the windows part.
The base branch is 'master -> origin/master'. The branch where we develop and review the code and changes is 'develop -> origin/develop' Contributors should first create there own branches with the following naming conventions:
- Contributor Tag + _ + Task name phrase + _ + date today in the format (dd_mm_yyyy)
- Contributor Tag is the name by which contributor commit the code (eg, Dhruv, thisisdg etc.)
- Task name is the phrase of the task subject that you are going to work with in that branch.
- And the date on which you have created that branch.
- So according to the above conventions, the name of the branch would be like the following: thisisdg_cascadedInputs_5_11_2019
- Every conflict will be resolved in the same branch that you are working with. The PR will be raised pointing to develop branch and then the code will be review in develop branch.
- Clone this repository to your local drive.
- Navigate to the path where python-port-scanner folder is located in your local directory.
- On the root of this repository, check if there is a file name 'portscanner.py'.
- Open this same path in cmd or your local terminal.
- Write the following in the cmd: python portscanner.py
- Then python script will start running and then enter inputs according to the flow and requirement.
- Accepts a remote IP.
- Scans all 65536 ports
- Custom range of ports can be added
- Status is displayed whether the port is busy or at 'LISTENING' state that is clearly displayed by 'TcpTestSucceeded'.
- Inputs are not taken by sys.argv[].
- Python 3.x
- Python package: re, subprocess, time
- Other python tools that might be required: pip, pyinstaller
- Editors: Pycharm, notepad++, VS Code or any upto your liking.
- Result should be displayed in a more user friendly manner.
- Cascaded input of range.
- There is no fallback condition if the start value is greated than end value in the custom range inputs.