initial commit
This commit is contained in:
commit
dc421f035e
8 changed files with 989 additions and 0 deletions
33
main.go
Normal file
33
main.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue