possible base64 encoding of credentials

This commit is contained in:
Edouard Hinard 2017-10-25 08:23:00 +02:00
commit e72b408e54
2 changed files with 15 additions and 7 deletions

View file

@ -3037,8 +3037,8 @@ int main(int argc, char *argv[]) {
variables = strtok(NULL, ":");
cond = strtok(NULL, ":");
optional1 = strtok(NULL, "\n");
if ((variables == NULL) || (strstr(variables, "^USER^") == NULL && strstr(variables, "^PASS^") == NULL)) {
fprintf(stderr, "[ERROR] the variables argument needs at least the strings ^USER^ or ^PASS^: %s\n", STR_NULL(variables));
if ((variables == NULL) || (strstr(variables, "^USER^") == NULL && strstr(variables, "^PASS^") == NULL && strstr(variables, "^USER64^") == NULL && strstr(variables, "^PASS64^") == NULL)) {
fprintf(stderr, "[ERROR] the variables argument needs at least the strings ^USER^, ^PASS^, ^USER64^ or ^PASS64^: %s\n", STR_NULL(variables));
exit(-1);
}
if ((url == NULL) || (cond == NULL)) {