Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Estella/472178 to your computer and use it in GitHub Desktop.
Save Estella/472178 to your computer and use it in GitHub Desktop.
--- 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