Skip to content

Python tools, to check if some port are open, if not, try to active their service

Notifications You must be signed in to change notification settings

fellipeh/check_services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a complete Vagrant configuration, to create, start and configure a Ubuntu V.M. to test this script.

#Attention This repo, is pre-configured to use these V.M to test: https://github.com/fellipeh/vagrant_lampwebserver

#Requirements:

#How to install:

  • Clone this repository.
  • Run: vagrant up
  • Access your VM using: vagrant ssh

#How to use:

  • python check_services.py

#How to configure the Port Files (port.json)

  • This file is a normal JSON file, and you need to create one record per port, that you want to test with the service name, like this:
[
  {
    "port": 80,
    "service": "apache"
  },
  {
    "port": 22,
    "service": "sshd"
  },
  {
    "port": 3306,
    "service": "mysql"
  }
]

About

Python tools, to check if some port are open, if not, try to active their service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages