Created
July 12, 2010 06:21
-
-
Save Estella/472178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- shell.c.orig 2010-07-11 20:46:39.000000000 -0700 | |
+++ shell.c 2010-07-11 23:17:16.000000000 -0700 | |
@@ -243,6 +243,7 @@ void check_promisc() | |
if (unlikely(ifreq.ifr_flags & IFF_PROMISC)) { | |
char which[101] = ""; | |
+ if (strstr(ifr->ifr_name, "pflog") || strstr(ifr->ifr_name, "pfsync")) { break; } | |
simple_snprintf(which, sizeof(which), STR("Detected promiscuous mode on interface: %s"), ifr->ifr_name); | |
ioctl(sock, SIOCSIFFLAGS, &ifreq); /* set flags */ | |
detected(DETECT_PROMISC, which); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment