Skip to content

Instantly share code, notes, and snippets.

@aschepis
Last active August 29, 2015 14:07
Show Gist options
  • Save aschepis/100231d8f43c2a5d066c to your computer and use it in GitHub Desktop.
Save aschepis/100231d8f43c2a5d066c to your computer and use it in GitHub Desktop.
Blank Kernel Filter
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.aschepis.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Adam Schepis. All rights reserved.</string>
<key>OSBundleLibraries</key>
<dict/>
</dict>
</plist>
#include <mach/mach_types.h>
kern_return_t network_filter_tutorial_start(kmod_info_t * ki, void *d);
kern_return_t network_filter_tutorial_stop(kmod_info_t *ki, void *d);
kern_return_t network_filter_tutorial_start(kmod_info_t * ki, void *d)
{
return KERN_SUCCESS;
}
kern_return_t network_filter_tutorial_stop(kmod_info_t *ki, void *d)
{
return KERN_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment