Giter Club home page Giter Club logo

g_ai-connman-script's Introduction

G_AI-connman-script

Purpose of this script

This Bash script performs a TCP connection test to a specified IP address and port using various utilities such as netcat, telnet, and nmap. It also checks for required dependencies and logs the results to files for later analysis.

Script Overview

  • Target IP: 192.168.1.10
  • Target Port: 44818
  • Log Files:
    • YYYY-MM-DD_HH:MM:SS-tcp_connection_test.log (General log)
    • YYYY-MM-DD_HH:MM:SS-tcp_connection_test_error.log (Error log)

Dependencies

The script checks for the following dependencies:

  • nc (netcat)
  • telnet
  • nmap

If any of these dependencies are missing, the script attempts to install them using apt.

Usage

  1. Make sure you have bash installed.
  2. Ensure you have sudo privileges if dependencies need to be installed.
  3. Execute the script using ./tcp_connection_test.sh.

Logging

  • General Log: Contains all script execution details, including successful connections and any errors encountered.
  • Error Log: Captures errors encountered during dependency checks, installation attempts, and connection tests.

Output

After execution, the script provides:

  • Connection status (success or failure) for netcat, telnet, and nmap tests.
  • Detailed logs for each test and overall script execution.
  • Timestamped log files for easy tracking and debugging.

Troubleshooting

If the script fails:

  • Check the error logs (YYYY-MM-DD_HH:MM:SS-tcp_connection_test_error.log) for specific error messages.
  • Verify network connectivity and target device availability.
  • Ensure dependencies are installed correctly and accessible.

g_ai-connman-script's People

Contributors

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