Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sangfor committed Oct 30, 2022
1 parent 687f1a7 commit a17fb51
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EvilMySQL

用 golang 实现的 mysql 蜜罐

## 工作原理

`EvilMySQL` 充当中间人的角色,转发来自 mysql client/server 的流量,对 client 所有的 select 查询语句的返回报文进行修改达到文件读取。

![](./docs/img/FakeMysql.jpg)

## 使用

编译
```bash
go build -o server main.go
```

在 3306 端口启动一个 fake mysql,用户名为 `admin`, 密码为 `admin@123`,流量将转发到 `root:admin@tcp(127.0.0.1:6033)/mysql`
```bash
./server -u admin -P admin@123 -p 3306 -d root:admin@tcp(127.0.0.1:6033)/mysql
```

**目前仅支持 mysql_native_password 认证**
Binary file added docs/img/FakeMysql.jpg
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 a17fb51

Please sign in to comment.