1
0
Fork 0
duckycode/main.go
2019-02-11 23:58:53 +01:00

33 lines
588 B
Go

package main
import (
"bytes"
"fmt"
"git.giftfish.de/ston1th/duckycode/pkg/encode"
"os"
)
func main() {
// var buf = bytes.NewBufferString(`
//REM The next three lines execute a command prompt in Windows
//GUI r
//STRING cmd
//ENTER
//`)
var buf = bytes.NewBufferString(`
REM Type Hello World into Windows notepad. Target: Windows 95 and beyond. Author: Darren
DELAY 1000
GUI r
DELAY 100
STRING c:\windows\notepad.exe
ENTER
DELAY 1000
STRING Hello World
`)
e := encode.NewEncoder(buf, "de")
b, err := e.Encode()
if err != nil {
fmt.Println(err)
}
os.Stdout.Write(b)
}