Go代码审计
免责声明
本文档仅供学习和研究使用,请勿使用文中的技术源码用于非法用途,任何人造成的任何负面影响,与本人无关.
环境搭建
推荐 goland 配置远程 debug 调试,参考笔记 goland 远程调试
相关工具
- A static analysis tool for securing Go code
go install github.com/praetorian-inc/gokart@latest
gokart scan <directory>
# 扫描远程项目
gokart scan -r https://github.com/ShiftLeftSecurity/shiftleft-go-demo -v
# 指定分支
gokart scan -r https://github.com/ShiftLeftSecurity/shiftleft-go-demo -b actions_fix
相关文章
相关靶场
https://xz.aliyun.com/t/7243
https://www.freebuf.com/articles/web/224363.html
硬编码
通用关键词
命令执行
审计函数