mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 04:31:52 +08:00
加入fcgi协议未授权命令执行扫描,优化poc模块
This commit is contained in:
+5
-1
@@ -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, `/`)
|
||||
|
||||
Reference in New Issue
Block a user