Skip to content

Instantly share code, notes, and snippets.

View zanderz's full-sized avatar

Steve Sanders zanderz

  • Keybase
  • San Francisco
View GitHub Profile
package main
import (
"fmt"
"io/ioutil"
"os"
)
func Win_motw(name string) error {
return ioutil.WriteFile(name+":Zone.Identifier", []byte("[ZoneTransfer]\r\nZoneId=3"), 0644)
@zanderz
zanderz / user_test.cpp
Created May 21, 2018 21:45
test windows user account creation apis
// user_test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "userenv.h"
#include "lm.h"
#pragma comment(lib, "userenv.lib")
#pragma comment(lib, "Netapi32.lib")
int main()
@zanderz
zanderz / keybase.md
Last active December 10, 2016 22:51

Keybase proof

I hereby claim:

  • I am zanderz on github.
  • I am zanderz (https://keybase.io/zanderz) on keybase.
  • I have a public key whose fingerprint is 1002 2B19 C3E2 EEC4 8F20 7847 B835 C9A9 C868 6E44

To claim this, I am signing this object: