Skip to content

Commit

Permalink
add mysql screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ntestoc3 committed Sep 30, 2021
1 parent 75772e7 commit d433653
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

<h5 align="center">免费、跨平台、单文件部署的网络协议服务端模拟器</h5>

[![latest release version](https://img.shields.io/github/v/release/fofapro/fapro)](https://github.com/fofapro/fapro/releases)
![platform](https://img.shields.io/badge/platform-cross-important?color=%23189000)
[![discord](https://img.shields.io/discord/891889408524038155?label=discord&logo=Discord&color=blue)](https://discord.gg/Eaz9dzV4AP)

## [README of English](README.md)

Expand Down Expand Up @@ -66,6 +68,11 @@ FaPro是一个服务端协议模拟工具,可以轻松启停多个网络服务

![IMAP & SMTP demo](docs/imap_smtp.gif)

### Mysql
支持sql语句查询交互。

![Mysql demo](docs/mysql.gif)

### HTTP
支持网站克隆。
需要安装chrome浏览器和[chrome driver](https://chromedriver.chromium.org/downloads)才能使用。
Expand Down Expand Up @@ -114,6 +121,7 @@ fapro run -v -l :8080
"use_logq": true,
"cert_name": "unknown",
"syn_dev": "any",
"exclusions": [],
"hosts": [
{
"ip": "127.0.0.1",
Expand Down Expand Up @@ -149,6 +157,7 @@ fapro run -v -l :8080
- use_logq: 使用基于本地磁盘的消息队列保存日志,然后发送到远程mysql或Elasticsearch,防止日志丢失。
- cert_name: 指定生成证书的公共名。
- syn_dev: 指定捕获tcp syn包使用的网卡,如果为空则不记录tcp syn包。在windows上,网卡名称类似于 "\Device\NPF_{xxxx-xxxx}"。
- exclusions: 从日志记录中排除指定的remote ip。
- hosts: 主机列表,每一项为一个主机配置
- handlers: 服务列表,每一项为一个服务配置
- handler: 服务名(协议名)
Expand All @@ -162,7 +171,7 @@ fapro run -v -l :8080

172.16.0.5 运行rpc、rdp服务

协议访问支持保存到elasticsearch
协议访问日志保存到elasticsearch,排除远程ip为127.0.0.1的日志
```json
{
"version": "0.38",
Expand All @@ -173,6 +182,7 @@ fapro run -v -l :8080
"cert_name": "unknown",
"syn_dev": "any",
"geo_db": "",
"exclusions": ["127.0.0.1"],
"hosts": [
{
"ip": "172.16.0.3",
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

<h5 align="center">Free,Cross-platform,Single-file mass network protocol server simulator</h5>

[![latest release version](https://img.shields.io/github/v/release/fofapro/fapro)](https://github.com/fofapro/fapro/releases)
![platform](https://img.shields.io/badge/platform-cross-important?color=%23189000)
[![discord](https://img.shields.io/discord/891889408524038155?label=discord&logo=Discord&color=blue)](https://discord.gg/Eaz9dzV4AP)

## [中文Readme](README-CN.md)

Expand Down Expand Up @@ -67,6 +69,11 @@ Support user login and interaction.

![IMAP & SMTP demo](docs/imap_smtp.gif)

### Mysql
Support sql statement query interaction

![Mysql demo](docs/mysql.gif)

### HTTP
Support website clone, You need to install the chrome browser and [chrome driver](https://chromedriver.chromium.org/downloads) to work.

Expand Down Expand Up @@ -112,6 +119,7 @@ This section contains the sample configuration used by FaPro.
"use_logq": true,
"cert_name": "unknown",
"syn_dev": "any",
"exclusions": [],
"hosts": [
{
"ip": "127.0.0.1",
Expand Down Expand Up @@ -148,6 +156,7 @@ This section contains the sample configuration used by FaPro.
- use_logq: Use local disk message queue to save logs, and then send it to remote mysql or Elasticsearch to prevent remote log loss.
- cert_name: Common name of the generated certificate.
- syn_dev: Specify the network interface used to capture tcp syn packets. If it is empty, the tcp syn packet will not be recorded. On windows, the device name is like "\Device\NPF_{xxxx-xxxx}".
- exclusions: Exclude remote ips from logs.
- hosts: Each item is a host configuration.
- handlers: Service configuration, the service configured on the host, each item is a service configuration.
- handler: Service name (i.e., protocol name)
Expand All @@ -161,7 +170,7 @@ Create a virtual network, The subnet is 172.16.0.0/24, include 2 hosts,

and 172.16.0.5 run rpc, rdp service,

protocol access logs are saved to elasticsearch.
protocol access logs are saved to elasticsearch, exclude the access log of 127.0.0.1.
```json
{
"version": "0.38",
Expand All @@ -172,6 +181,7 @@ protocol access logs are saved to elasticsearch.
"cert_name": "unknown",
"syn_dev": "any",
"geo_db": "",
"exclusions": ["127.0.0.1"],
"hosts": [
{
"ip": "172.16.0.3",
Expand Down
Binary file added docs/mysql.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d433653

Please sign in to comment.