Git Product home page Git Product logo

smtp-beacon's Introduction

SMTP-Beacon

This Python script checks if the SMTP port 25 is open on a list of IP addresses. It reads IP addresses from a text file and reports whether each IP can be connected to on port 25.

Requirements

  • Python 3.x
  • smtplib and socket libraries (both are included in the Python standard library)

Installation

  1. Clone the repository or download the script file.

  2. Ensure you have Python 3.x installed on your system.

Usage

  1. Create a text file containing the list of IP addresses you want to check, with one IP address per line. For example:

    192.168.1.1
    10.0.0.1
    172.16.0.1
    
  2. Run the script from the command line, passing the path to your text file as an argument:

    python smtpbeacon.py path/to/ip_list.txt

    Replace path/to/ip_list.txt with the actual path to your text file.

Example

Given a text file ips.txt with the following content:

192.168.1.1
10.0.0.1
172.16.0.1

Run the script:

python smtpbeacon.py ips.txt

Output:

192.168.1.1: Open
10.0.0.1: Closed
172.16.0.1: Open

smtp-beacon's People

Contributors

somchandra17 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.