mirror of
https://github.com/a0rtega/pafish
synced 2024-11-22 06:11:18 +03:00
Minor cosmetic changes in console output
This commit is contained in:
parent
91cced1842
commit
ad1de9896a
@ -31,11 +31,9 @@ void print_header() {
|
||||
HANDLE handler = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
printf("* Pafish (");
|
||||
SetConsoleTextAttribute(handler, 11);
|
||||
printf("Paranoid fish");
|
||||
printf("Paranoid Fish");
|
||||
SetConsoleTextAttribute(handler, FOREGROUND_INTENSITY);
|
||||
printf(") *\n\n");
|
||||
printf("Some anti(debugger/VM/sandbox) tricks\n");
|
||||
printf("used by malware for the general public.\n\n");
|
||||
}
|
||||
|
||||
void print_traced() {
|
||||
@ -105,13 +103,14 @@ void exec_check(char * text, int (*callback)(), char * text_log, char * text_tra
|
||||
int check_result;
|
||||
int (*callback_writeslog)(int) = callback;
|
||||
|
||||
printf("[*] %s ... ", text);
|
||||
|
||||
/* Handle functions that write logs */
|
||||
if (text_log)
|
||||
check_result = callback();
|
||||
else
|
||||
check_result = callback_writeslog(TRUE);
|
||||
|
||||
printf("[*] %s ... ", text);
|
||||
if (check_result == TRUE) {
|
||||
/* Some checks write their own logs */
|
||||
if (text_log)
|
||||
|
@ -66,8 +66,8 @@ int main(void)
|
||||
cpu_write_hv_vendor(cpu_hv_vendor);
|
||||
cpu_write_brand(cpu_brand);
|
||||
|
||||
printf("[*] Windows version: %s\n", winverstr);
|
||||
printf("[*] CPU: %s\n", cpu_vendor);
|
||||
printf("[-] Windows version: %s\n", winverstr);
|
||||
printf("[-] CPU: %s\n", cpu_vendor);
|
||||
if (strlen(cpu_hv_vendor))
|
||||
printf(" Hypervisor: %s\n", cpu_hv_vendor);
|
||||
printf(" CPU brand: %s\n", cpu_brand);
|
||||
@ -344,8 +344,10 @@ int main(void)
|
||||
"Cuckoo hooks information structure traced in the TLS",
|
||||
"hi_cuckoo");
|
||||
|
||||
printf("\n\n");
|
||||
printf("[-] Feel free to RE me, check log file for more information.");
|
||||
printf("\n");
|
||||
printf("[-] Pafish has finished analyzing the system, check the log file for more information\n");
|
||||
printf(" and visit the project's site:\n\n");
|
||||
printf(" https://github.com/a0rtega/pafish\n");
|
||||
|
||||
write_log("End");
|
||||
#if ENABLE_DNS_TRACE
|
||||
|
Loading…
Reference in New Issue
Block a user