加入fcgi协议未授权命令执行扫描,优化poc模块

This commit is contained in:
shadow1ng
2021-05-29 12:13:10 +08:00
parent 61e814119d
commit 9d385eb26a
28 changed files with 533 additions and 40670 deletions
+5 -1
View File
@@ -5,6 +5,8 @@ import (
"flag"
"fmt"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
)
@@ -155,7 +157,9 @@ func CheckErr(text string, err error) {
}
func getpath() string {
filename := os.Args[0]
file, _ := exec.LookPath(os.Args[0])
path1, _ := filepath.Abs(file)
filename := filepath.Dir(path1)
var path string
if strings.Contains(filename, "/") {
tmp := strings.Split(filename, `/`)