1
0
Fork 0

initial commit

This commit is contained in:
ston1th 2019-02-11 23:58:53 +01:00
commit dc421f035e
8 changed files with 989 additions and 0 deletions

33
main.go Normal file
View file

@ -0,0 +1,33 @@
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)
}