Skip to content

Commit

Permalink
modify build & usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
leohearts committed Jun 28, 2021
1 parent f81ce7b commit 261c80a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@

## 使用

1. 下载最新 [release](https://github.com/leohearts/awd-watchbird/releases)
2. 编译waf.c生成.so文件,参考命令:gcc waf.c -shared -o waf.so
3. 将waf.so,watchbird.php文件存放在/var/www/html或其他目录中
5. 将watchbird.php放在www-data可读的目录, 确保当前用户对目标目录可写, 然后执行```php watchbird.php --install [Web目录]```, 安装器将输出安装了watchbird的文件路径
4. 访问任意启用了waf的文件, 参数```?watchbird=ui```打开watchbird控制台, 创建一个初始密码
6. 如需卸载, 请在相同的位置输入```php watchbird.php --uninstall [Web目录]```, 如果您多次运行了安装, 请多次运行卸载直到卸载器无输出
- 下载最新 [release](https://github.com/leohearts/awd-watchbird/releases)
- 将waf.so,watchbird.php文件存放在/var/www/html或其他目录中
- 将watchbird.php放在www-data可读的目录, 确保当前用户对目标目录可写, 然后执行```php watchbird.php --install [Web目录]```, 安装器将输出安装了watchbird的文件路径
- 访问任意启用了waf的文件, 参数```?watchbird=ui```打开watchbird控制台, 创建一个初始密码
- 如需卸载, 请在相同的位置输入```php watchbird.php --uninstall [Web目录]```, 如果您多次运行了安装, 请多次运行卸载直到卸载器无输出

## 构建

- `git clone https://github.com/leohearts/awd-watchbird.git`
- 使用 `pyhton3 pack.py` 将源码打包为单文件

- 编译waf.c生成.so文件,参考命令:gcc waf.c -shared -o waf.so

## 截图

![Screenshot_2021-03-08 Watchbird控制台.png](https://i.loli.net/2021/03/08/DELBdIMxyCgtluf.png)
Expand Down

0 comments on commit 261c80a

Please sign in to comment.