Instantly share code, notes, and snippets.

View osquery.conf
{
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
},
"options": {
"logger_plugin": "gcs",
"host_identifier": "hostname",
View osquery.conf
{
"options": {
"logger_plugin": "filesystem",
"logger_path": "/tmp/osq.log",
"host_identifier": "hostname",
"config_plugin": "filesystem",
"schedule_splay_percent": 10
},
"schedule": {
"foobar": {
View pem.go
package main
import (
"fmt"
"log"
"os"
"github.com/groob/plist"
)
View mdm_profile.mobileconfig
<?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>PayloadContent</key>
<array>
<dict>
<key>AccessRights</key>
<integer>8191</integer>
<key>CheckInURL</key>
View screensaver.mobileconfig
<?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>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>Security &amp; Privacy</string>
<key>PayloadEnabled</key>
View micromdm_scep.mobileconfig
<?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>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>Key Type</key>
View prefwatch.go
package main
/*
#cgo darwin CFLAGS: -DDARWIN -x objective-c
#cgo darwin LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
@interface ManageHandler : NSObject<NSUserNotificationCenterDelegate>
@property (retain) NSUserDefaults *userDefaults;
@end
View TLS_1.3_links.md
View grpc_proxy.go
package main
import (
"crypto/tls"
"errors"
"log"
"net"
"net/http"
"net/http/httputil"
"net/url"
View hi_frogor.go
package main
import (
"flag"
"fmt"
"io"
"log"
"net/http"
"os"
)