
TInjA 是一个用于测试网页模板注入漏洞的 CLI 工具,支持八种不同编程语言的 44 个最相关的模板引擎。
TInjA 是一款用于测试网页是否存在模板注入漏洞的 CLI 工具。
它支持八种不同编程语言中的 44 个最相关的模板引擎(截至 2023 年 9 月)。
TInjA 由 Hackmanit 和 Maximilian Hildebrand 开发。
TInjA 的预编译二进制文件可在发布页面获取。
要求:go1.21 或更高版本
go install -v github.com/Hackmanit/TInjA@latest
tinja url -u "http://example.com/"tinja url -u "http://example.com/" -u "http://example.com/path2"tinja url -u "file:/path/to/file"tinja raw -R "/path/to/file"tinja jsonl -j "/path/to/file"
{
"request":{
"method":"POST",
"endpoint":"http://example.com/path",
"body":"name=Kirlia",
"headers":{
"Content-Type":"application/x-www-form-urlencoded"
}
}
--header/-H 指定要添加到请求中的标头。
tinja url -u "http://example.com/" -H "Authentication: Bearer ey..."--cookie/-c 指定要添加到请求中的 Cookie。
tinja url -u "http://example.com/" -c "PHPSESSID=ABC123..."--data/-d 指定要添加到请求中的 POST 体。
tinja url -u "http://example.com/" -d "username=Kirlia&password=notguessable"--csti 启用 CSTI 扫描。
tinja url -u "http://example.com/" --csti默认情况下,TInjA 仅扫描 SSTI。扫描 CSTI 时会使用无头浏览器,这可能会增加 RAM 和 CPU 使用率。
--reportpath 启用以 JSONL 格式生成报告。每次扫描 URL 后都会更新报告,并存储在提供的路径下。
tinja url -u "http://example.com/" --reportpath "/home/user/Documents"--proxyurl 指定要用于扫描的代理的 URL 和端口。
tinja url -u "http://example.com/" --proxyurl "http://127.0.0.1:8080"--proxycertpath 指定代理的 CA 证书(PEM 格式),扫描 HTTPS URL 时需要。
tinja url -u "http://example.com/" --proxyurl "http://127.0.0.1:8080" --proxycertpath "/home/user/Documents/cacert.pem"使用代理扫描 HTTPS URL 时需要代理的 PEM 格式 CA 证书。例如,Burp Suite 的 CA 证书默认是 DER 格式。可使用以下命令进行转换:
openssl x509 -inform DER -outform PEM -text -in cacert.der -out cacert.pem
--ratelimit/-r 指定每秒允许的最大请求数。默认情况下,此数字不受限制。
tinja url -u "http://example.com/" --ratelimit 10[ERR] Couldn't connect to URL: remote error: tls: user canceled
--proxycertpath 指定代理的 CA 证书(.pem)(见使用代理)。[ERR] Error reading response from target server via proxy: malformed HTTP response "HTTP/1.1"
Default to HTTP/2 if the server supports it(Network > HTTP)。TINJA 标记,用于指定多语言有效载荷的放置位置。关于模板注入和 TInjA – 模板注入分析器 的更多信息,可查看以下博文:
TInjA 是 Maximilian Hildebrand 硕士论文的一部分。论文的研究成果可在此公开获取:
TInjA – 模板注入分析器由 Hackmanit 和 Maximilian Hildebrand 作为其硕士论文的一部分开发。TInjA – 模板注入分析器遵循 Apache 许可证 2.0 版。