dummy.c
上传用户:nilegod
上传日期:2007-01-08
资源大小:220k
文件大小:2k
- /*
- dummy -- ettercap plugin -- it does nothig !
- only demostrates how to write a plugin !
- Copyright (C) 2001 ALoR <alor@users.sourceforge.net>, NaGA <crwm@freemail.it>
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- #include "../../src/include/ec_main.h" // required for global variables
- #include "../../src/include/ec_plugins.h" // required for input/output
- char Ettercap_Version[] = VERSION; // required -- for compatibility
- char PlugIn_Info[] = "Dummy plugin. It does nothing !"; // required -- a little description (max 50 char)
- short PlugIn_Version = 10; // required -- the version ( 10 will be displayed as 1.0 )
- void PlugIn_Start(char**argv) // required -- the Entry point
- {
- Plugin_Output("n%snn", PlugIn_Info);
- /*
- * Host_Source and Host_Dest are global and declared as HOST.
- *
- * typedef struct host_arp
- * {
- * char name[128];
- * char ip[16];
- * char mac[20];
- * } HOST;
- *
- * see ec_main.h for other global variables.
- */
- Plugin_Output("Source Host: [%s] [%s]n", Host_Source.ip, Host_Source.mac);
- Plugin_Output("Dest Host: [%s] [%s]n", Host_Dest.ip, Host_Dest.mac);
- }
- /* EOF */