{"record":{"id":"683f8910f43e43b3","repo":"kgretzky/evilginx2","slug":"to-set-custom-parameters-for-the-phishing-url-use","errorCode":null,"errorMessage":"to set custom parameters for the phishing url, use format 'param1=value1 param2=value2'","messagePattern":"to set custom parameters for the phishing url, use format 'param1=value1 param2=value2'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/terminal.go","lineNumber":814,"sourceCode":"\t\t\t\t\t\t\t\terr = t.exportPhishUrls(export_path, phish_urls, phish_params, format)\n\t\t\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\t\t\treturn fmt.Errorf(\"get-url: %v\", err)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tout = hiblue.Sprintf(\"exported %d phishing urls to file: %s\\n\", len(phish_urls), export_path)\n\t\t\t\t\t\t\t\tphish_urls = []string{}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn fmt.Errorf(\"get-url: expected 'export': %s\", args[4])\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// params present\n\t\t\t\t\t\tfor n := 2; n < pn; n++ {\n\t\t\t\t\t\t\tval := args[n]\n\n\t\t\t\t\t\t\tsp := strings.Index(val, \"=\")\n\t\t\t\t\t\t\tif sp == -1 {\n\t\t\t\t\t\t\t\treturn fmt.Errorf(\"to set custom parameters for the phishing url, use format 'param1=value1 param2=value2'\")\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tk := val[:sp]\n\t\t\t\t\t\t\tv := val[sp+1:]\n\n\t\t\t\t\t\t\tparams.Add(k, v)\n\n\t\t\t\t\t\t\tlog.Info(\"adding parameter: %s='%s'\", k, v)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tphish_urls = append(phish_urls, t.createPhishUrl(base_url, &params))\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tphish_urls = append(phish_urls, t.createPhishUrl(base_url, &params))\n\t\t\t\t}\n\n\t\t\t\tfor n, phish_url := range phish_urls {\n\t\t\t\t\tout += hiblue.Sprint(phish_url)\n\n\t\t\t\t\tvar params_row string","sourceCodeStart":796,"sourceCodeEnd":832,"githubUrl":"https://github.com/kgretzky/evilginx2/blob/4c0988a1d9db4d172a185e979a38bfd0efdb5830/core/terminal.go#L796-L832","documentation":"In 'lures get-url <id> <param1=value1 ...>', every trailing argument must contain an '=' to separate parameter name from value; one of the tokens did not, so custom phishing-URL parameters cannot be parsed. Validation guard on each argument token in handleLures.","triggerScenarios":"Thrown at core/terminal.go:814 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass parameters as key=value pairs, e.g. lures get-url 0 user=john id=42.","Quote arguments containing spaces or special shell characters.","Remove or fix any bare token that lacks '='."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c0988a1d9db4d172a185e979a38bfd0efdb5830","analyzedAt":"2026-09-05T19:23:07.238Z","contentChangedAt":"2026-09-05T19:23:07.238Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}