{ "info": { "author": "Rocky", "author_email": "274935730@qq.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only" ], "description": "\n# ECHECK\n\n[](https://www.apache.org/licenses/LICENSE-2.0.txt)\n[](https://travis-ci.org/rockyCheung/easy_echeck)\n[](https://coveralls.io/github/rockyCheung/easy_echeck)\n[](https://pypi.org/project/echeck/)\n\n## What can ECHECK do?\n\n* Echeck is a scripting tool developed based on the Python language. It mainly includes four core commands: eping, escan, ecurl, and eshell.\n* [ecurl](#2) is the same as curl instructions, it can try to access multiple addresses at the same time and output results\n* [eping](#3) can ping multiple service addresses at the same time and output results\n* [escan](#4) is a port sniffing tool, and ultimately returns the result of port sniffing\n* [eshell](#5) instructions can be executed remotely\n\n## Use of ECHECK\n\n### Installation\n\n> ECHECK is based on Python 3.7. You need to install python3 before installing the tool.\n\n#### 1. Install Python3\n\n> The development of the tool is based on Python version 3.7. It has not been tested for compatibility. Try to install version 3.7 when using it.\n* Python3 download\n\n> [Python download address](https://www.python.org)\n\n* Select the corresponding version to install\n```\n$ curl -Ok https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz\n$ tar -xzvf Python-3.7.3.tgz\n$ cd Python-3.7.3\n$ ./configure\n$ make && make install\n```\n\n#### 2. Install pip\n\n* Download the installation script\n```\n$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\n```\n* Execute the installation instructions\n\n```\n$ python get-pip.py\n```\n\n#### 3. Install virtualenv\n\n> It is recommended to use virtualenv to simplify the impact of the external environment on the tool installation. If it is linux or mac, you can use the following command to install it.\n```\n$ pip install virtualenv\n```\n> Executable help to view the virtualenv use instructions\n#### 4. Create a virtual environment\n```\n$ virtualenv -p 'specify python installation path' venv\n```\n#### 5. Activate the virtual environment\n```\n$ source venv/bin/activate\n```\n\n#### 6. Install ECHECK\n\n> Before installing ECHECK, you need to install pycurl>=7.43.0.2\n\n* Install pycurl\n\n__Make sure that openssl is installed before installing pycurl. For how to install openssl, it will be explained in the \"Frequently Asked Questions\" section.__\n```\n$ export PYCURL_SSL_LIBRARY=openssl\n$ pip install pycurl\n\n```\n\n* Source code installation\n\n> Download source code\n```\n$ git clone https://github.com/rockyCheung/easy_echeck.git\n```\n> Execute the installation instructions\n```\n$ cd easy_echeck\n$ python setup.py install\n\n```\n* Installed with pip\n\n```\n$ pip install echeck\n```\n\n### How to use\n#### 1. Profile conf.yml\n> Conf.yml is the core configuration file, below is a simple example\n```\n#yaml config\n#\u670d\u52a1\u5668\u7684\u57fa\u7840\u914d\u7f6e\nserver:\n log:\n log_file: echeck.log\n logger_name: main\n logger_level: DEBUG\n#http\u534f\u8bae\u68c0\u67e5\necurl:\n url:\n - https://www.baidu.com\n - https://cn.bing.com\n - https://www.google.com\n - http://www.pathcurve.cn\n - http://www.easy.com\n\n index_file: echeck.htm\n#\u7f51\u7edc\u8054\u901a\u6027\u68c0\u67e5\neping:\n ip:\n - 127.0.0.1\n - 172.20.78.115\n - 172.20.79.255\n - google.cn\n - test.com\nescan:\n - host:\n label: host_name1\n ip: 127.0.0.1\n port:\n - 80\n - 8080\n - host:\n label: host_name2\n ip: 172.20.78.115\n port:\n - 80\n - 8080\n\n```\n