This commit is contained in:
iceman1001 2019-08-29 10:46:57 +02:00
commit 74f96be6be
2 changed files with 13 additions and 13 deletions

View file

@ -678,7 +678,7 @@ void pm3_version(bool verbose, bool oneliner) {
if (oneliner) {
PrintAndLogEx(NORMAL, "Client: RRG/Iceman compiled with " _YELLOW_(PM3CLIENTCOMPILER __VERSION__) " %s", _YELLOW_(PM3HOSTOS));
PrintAndLogEx(NORMAL, "Client: RRG/Iceman compiled with " _YELLOW_(PM3CLIENTCOMPILER __VERSION__ PM3HOSTOS));
return;
}

View file

@ -231,16 +231,16 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) {
timenow = gmtime(&now);
strftime(filename, sizeof(filename), PROXLOG, timenow);
if (searchHomeFilePath(&my_logfile_path, filename, true) != PM3_SUCCESS) {
fprintf(stderr, "Logging disabled!\n\n");
fprintf(stderr, "[-] Logging disabled!\n\n");
my_logfile_path = NULL;
logging = 0;
} else {
logfile = fopen(my_logfile_path, "a");
if (logfile == NULL) {
fprintf(stderr, "Can't open logfile %s, logging disabled!\n", my_logfile_path);
fprintf(stderr, "[-] Can't open logfile %s, logging disabled!\n", my_logfile_path);
logging = 0;
} else {
printf("Session is logged into %s\n", my_logfile_path);
printf("[=] Session log %s\n", my_logfile_path);
}
free(my_logfile_path);
}