{"record":{"id":"e192ee38af427cc9","repo":"kgretzky/evilginx2","slug":"get-url-expected-export-s","errorCode":null,"errorMessage":"get-url: expected 'export': %s","messagePattern":"get-url: expected 'export': (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/terminal.go","lineNumber":803,"sourceCode":"\t\t\t\t\t\t\tif args[4] == \"export\" {\n\t\t\t\t\t\t\t\tif pn == 5 {\n\t\t\t\t\t\t\t\t\treturn fmt.Errorf(\"get-url: no export path specified\")\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\texport_path := args[5]\n\n\t\t\t\t\t\t\t\tformat := \"text\"\n\t\t\t\t\t\t\t\tif pn == 7 {\n\t\t\t\t\t\t\t\t\tformat = args[6]\n\t\t\t\t\t\t\t\t}\n\n\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)","sourceCodeStart":785,"sourceCodeEnd":821,"githubUrl":"https://github.com/kgretzky/evilginx2/blob/4c0988a1d9db4d172a185e979a38bfd0efdb5830/core/terminal.go#L785-L821","documentation":"In 'lures get-url <id> import <file> export <path> [format]', the 5th argument was not the literal keyword 'export', so the command chain is invalid. A keyword-validation guard in handleLures that echoes the offending token via %s.","triggerScenarios":"Thrown at core/terminal.go:803 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the exact keyword 'export' as the 5th argument after the import file.","Check for typos or swapped argument order in the command.","Consult 'help lures' for the accepted get-url argument sequence."],"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-12T22:17:10.623Z"}