Ejemplo n.º 1
0
static int gre_relay_fini(void *dummy) 
{
   USER_MSG("gre_relay: plugin terminated...\n");

   hook_del(HOOK_PACKET_GRE, &parse_gre);
   hook_del(HOOK_PACKET_ARP_RQ, &parse_arp);

   return PLUGIN_FINISHED;
}
Ejemplo n.º 2
0
static int find_ettercap_fini(void *dummy) 
{
   /* remove the hook */
   hook_del(HOOK_PACKET_IP, &parse_ip);
   hook_del(HOOK_PACKET_ICMP, &parse_icmp);
   hook_del(HOOK_PACKET_TCP, &parse_tcp);

   return PLUGIN_FINISHED;
}
Ejemplo n.º 3
0
/*
 * shut down the redirect process
 */
static void icmp_redirect_stop(void)
{
   
   DEBUG_MSG("icmp_redirect_stop");
   
   USER_MSG("ICMP redirect stopped.\n");

   /* delete the hook points */
   hook_del(HOOK_PACKET_TCP, &icmp_redirect);
   hook_del(HOOK_PACKET_UDP, &icmp_redirect);
}
Ejemplo n.º 4
0
/*
 * shut down the redirect process
 */
static void dhcp_spoofing_stop(void)
{
   
   DEBUG_MSG("dhcp_spoofing_stop");
   
   USER_MSG("DHCP spoofing stopped.\n");
   
   /* remove the hookpoint */
   hook_del(HOOK_PROTO_DHCP_REQUEST, dhcp_spoofing_req);
   hook_del(HOOK_PROTO_DHCP_DISCOVER, dhcp_spoofing_disc);

}
Ejemplo n.º 5
0
static int repoison_arp_fini(void *dummy) 
{
   /* variable not used */
   (void) dummy;

   USER_MSG("repoison_arp: plugin terminated...\n");

   hook_del(HOOK_PACKET_ARP_RQ, &repoison_func);
   hook_del(HOOK_PACKET_ARP_RP, &repoison_func);

   return PLUGIN_FINISHED;
}
Ejemplo n.º 6
0
/*
 * removes the hook points and closes the log files
 */
void log_stop(void)
{
   DEBUG_MSG("log_stop");
   
   /* remove all the hooks */
   hook_del(HOOK_DISPATCHER, &log_packet);
   hook_del(HOOK_DISPATCHER, &log_info);
   hook_del(HOOK_PACKET_ARP, &log_info);
   hook_del(HOOK_PACKET_ICMP, &log_info);
   hook_del(HOOK_PROTO_DHCP_PROFILE, &log_info);

   log_close(&fdp);
   log_close(&fdi);
}
Ejemplo n.º 7
0
static int smb_clear_fini(void *dummy) 
{
   USER_MSG("smb_clear: plugin terminated...\n");

   hook_del(HOOK_PROTO_SMB, &parse_smb);
   return PLUGIN_FINISHED;
}
Ejemplo n.º 8
0
static int remote_browser_fini(void *dummy) 
{
   /* remove the hook */
   hook_del(HOOK_PROTO_HTTP, &remote_browser);

   return PLUGIN_FINISHED;
}
Ejemplo n.º 9
0
static int find_conn_fini(void *dummy) 
{
   USER_MSG("find_conn: plugin terminated...\n");

   hook_del(HOOK_PACKET_ARP_RQ, &parse_arp);
   return PLUGIN_FINISHED;
}
Ejemplo n.º 10
0
static int autoadd_fini(void *dummy) 
{
   /* variable not used */
   (void) dummy;

   hook_del(HOOK_PACKET_ARP_RQ, &parse_arp);
   return PLUGIN_FINISHED;
}
Ejemplo n.º 11
0
static int dos_attack_fini(void *dummy) 
{
   pthread_t pid;

   /* Remove the hooks */
   hook_del(HOOK_PACKET_ARP_RQ, &parse_arp);
   hook_del(HOOK_PACKET_TCP, &parse_tcp);
   
   pid = ec_thread_getpid("golem");
   
   /* the thread is active or not ? */
   if (!pthread_equal(pid, EC_PTHREAD_NULL))
      ec_thread_destroy(pid);

   INSTANT_USER_MSG("dos_attack: plugin terminated...\n");

   return PLUGIN_FINISHED;   
}
Ejemplo n.º 12
0
UNICORN_EXPORT
uc_err uc_hook_del(uc_engine *uc, uc_hook hh)
{
    return hook_del(uc, hh);
}