This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"sync" | |
"time" | |
_ "unsafe" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wrok like: | |
# | |
# raw tcp(9999) tls(127.0.0.1:25500) raw tcp(25501) | |
# client =============> tcp2tls_client.go =====================> tls2tcp_server.go ==============> real server | |
#Generated private key | |
openssl genrsa -out server.key 2048 | |
#To generate a certificate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://github.com/betaflight/betaflight-configurator | |
'use strict'; | |
//MSPCodes needs to be re-integrated inside MSP object | |
var MSPCodes = { | |
MSP_API_VERSION: 1, | |
MSP_FC_VARIANT: 2, | |
MSP_FC_VERSION: 3, | |
MSP_BOARD_INFO: 4, | |
MSP_BUILD_INFO: 5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// build: | |
// GOOS=windows GOARCH=386 go build -o keyemu.exe keyemu.go | |
// GOOS=windows GOARCH=amd64 go build -o keyemu-x64.exe keyemu.go | |
// pre-build: https://mega.nz/#F!c9M0VaqK!sjUh5jwAU1tYkVv8z9YqaQ | |
// ref: https://github.com/micmonay/keybd_event | |
package main |
OlderNewer