etterfilter.8.in (ettercap-0.8.3) | : | etterfilter.8.in (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 347 | skipping to change at line 347 | |||
fake one using the drop() function right before the execinject() command. | fake one using the drop() function right before the execinject() command. | |||
In that case the filtering engine will drop the current packet and inject the | In that case the filtering engine will drop the current packet and inject the | |||
fake one. | fake one. | |||
.Sp | .Sp | |||
example: | example: | |||
.br | .br | |||
execinject("/bin/cat /tmp/foo") | execinject("/bin/cat /tmp/foo") | |||
.TP | .TP | |||
.B execreplace(\fIcommand\fR) | ||||
this function operates similar to the \fBreplace\fR function except that it uses | ||||
the output of a shell command to replace entire data rather than the contents o | ||||
f a file. | ||||
An other difference, is that orinal packet content is pass to the shell command | ||||
in stdin. | ||||
It always injects in DATA.data. You can use it to replace the entire packet with | ||||
a | ||||
fake one depending on the original one. | ||||
.Sp | ||||
example: | ||||
.br | ||||
execreplace("tr A-Z a-z") | ||||
.TP | ||||
.B exit() | .B exit() | |||
this function causes the filter engine to stop executing the code. It is useful | this function causes the filter engine to stop executing the code. It is useful | |||
to stop the execution of the script on some circumstance checked by an 'if' stat ement. | to stop the execution of the script on some circumstance checked by an 'if' stat ement. | |||
.Sp | .Sp | |||
example: | example: | |||
.br | .br | |||
exit() | exit() | |||
.SH EXAMPLES | .SH EXAMPLES | |||
Here are some examples of using etterfilter. | Here are some examples of using etterfilter. | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 16 lines changed or added |