"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "utils/etterfilter/ef_encode.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ef_encode.c  (ettercap-0.8.3):ef_encode.c  (ettercap-0.8.3.1)
skipping to change at line 305 skipping to change at line 305
} else if (!strcmp(name, "execinject")) { } else if (!strcmp(name, "execinject")) {
if (nargs == 1) { if (nargs == 1) {
fop->op.func.op = FFUNC_EXECINJECT; fop->op.func.op = FFUNC_EXECINJECT;
/* execinject always operate at DATA level */ /* execinject always operate at DATA level */
fop->op.func.level = 5; fop->op.func.level = 5;
fop->op.func.string = (u_char*)strdup(dec_args[0]); fop->op.func.string = (u_char*)strdup(dec_args[0]);
fop->op.func.slen = strlen((const char*)fop->op.func.string); fop->op.func.slen = strlen((const char*)fop->op.func.string);
ret = E_SUCCESS; ret = E_SUCCESS;
} else } else
SCRIPT_ERROR("Wrong number of arguments for function \"%s\" ", name); SCRIPT_ERROR("Wrong number of arguments for function \"%s\" ", name);
} else if (!strcmp(name, "execreplace")) {
if (nargs == 1) {
fop->op.func.op = FFUNC_EXECREPLACE;
/* execreplace always operate at DATA level */
fop->op.func.level = 5;
fop->op.func.string = (u_char*)strdup(dec_args[0]);
fop->op.func.slen = strlen((const char*)fop->op.func.string);
ret = E_SUCCESS;
} else
SCRIPT_ERROR("Wrong number of arguments for function \"%s\" ", name);
} else if (!strcmp(name, "log")) { } else if (!strcmp(name, "log")) {
if (nargs == 2) { if (nargs == 2) {
/* get the level (DATA or DECODED) */ /* get the level (DATA or DECODED) */
if (encode_offset(dec_args[0], fop) == E_SUCCESS) { if (encode_offset(dec_args[0], fop) == E_SUCCESS) {
/* encode offset wipe the fop !! */ /* encode offset wipe the fop !! */
fop->opcode = FOP_FUNC; fop->opcode = FOP_FUNC;
fop->op.func.op = FFUNC_LOG; fop->op.func.op = FFUNC_LOG;
fop->op.func.string = (u_char*)strdup(dec_args[1]); fop->op.func.string = (u_char*)strdup(dec_args[1]);
fop->op.func.slen = strlen((const char*)fop->op.func.string); fop->op.func.slen = strlen((const char*)fop->op.func.string);
ret = E_SUCCESS; ret = E_SUCCESS;
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)