Skip to content

Instantly share code, notes, and snippets.

@sdir
sdir / subverisoninstall.sh
Last active July 10, 2018 03:44
subversion from source install script
#!/bin/bash
#./get-deps.sh
buildpath=`pwd`/_build
installpath=/opt/subversion
subapp=(apr apr-util serf zlib)
makeapp()
{
cd $1
@sdir
sdir / send_igmp.py
Created January 30, 2018 06:53
IGMP test v1 v2 v3 report and leave
#!env python
# pip install scapy
# send() 用于发送三层数据 sendp()发送二层数据
# 源码https://github.com/secdev/scapy/blob/master/scapy/sendrecv.py#L239
# 参数 inter发送数据后sleep时间,当count不为None 时loop无效,count为执行
# 次数。count为None,loop大于0无限循环,小于0相当于count,等于0,发送一次。
# p.show() p.show2()
@sdir
sdir / ontab.go
Last active July 2, 2018 17:36
chrome plugin onetab backup.
package main
//export PATH="/cygdrive/e/soft/MinGW/bin:$PATH"
//go build -ldflags "-H windowsgui" onetab.go
//go build -ldflags '-w -s' onetab.go
import (
"fmt"
"log"
"os"
@sdir
sdir / inputPswd.go
Last active May 12, 2017 08:33
Linux 密文输入
package main
import (
"fmt"
"os"
"syscall"
"unsafe"
)
func main() {
fmt.Print("Input password:")
@sdir
sdir / svnpasswd.go
Last active May 5, 2017 04:17
Get windows subversion auth password.
package main
import (
"log"
"fmt"
"os"
"syscall"
"unsafe"
"encoding/base64"
"path/filepath"