Giter Club home page Giter Club logo

opscanner's Introduction

Open Port Scanner

This script is a simple Open Port Scanner written in Python. It allows you to scan a range of ports on a target IP address or hostname and determine if they are open or closed.

Prerequisites

Python 3.x socket module (should be available in the standard library)

Usage

Clone or download the script to your local machine. Open a terminal or command prompt and navigate to the directory containing the script. Run the script using the command python open_port_scanner.py. Enter the target IP address or hostname when prompted. Specify the range of ports you want to scan by providing the starting and ending port numbers. The script will iterate over the specified port range and display the open ports, if any. Please note that this script requires proper authorization and should be used for legal and ethical purposes only.

Example

$ python open_port_scanner.py
Open Port Scanner version 1.0
IP address or hostname: example.com
Enter range of ports:
Start: 1
End: 100

Port 22 is open
Port 80 is open
Port 443 is open

Notes

The script utilizes the socket module to create a socket object and attempt connections to the specified ports. A timeout of 1 second is set for each connection attempt. If a connection is successful (result code 0), the script will print that the port is open. The script is designed to be a basic implementation and may not account for all scenarios or handle errors extensively. Please use this script responsibly and ensure you have the necessary permissions before scanning any target network or system.

opscanner's People

Contributors

philiparolfe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.