Skip to content

Commit

Permalink
Fixed minor pipe test failure and added go.mod file.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgh committed Jun 14, 2020
1 parent 853222a commit 5be9dc0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module github.com/Binject/backdoorfactory

go 1.14

require (
github.com/Binject/binjection v0.0.0-20191205221130-3927f970a61f
github.com/Binject/debug v0.0.0-20190929072709-9846938ecdec // indirect
github.com/Binject/shellcode v0.0.0-20191101084904-a8a90e7d4563
github.com/akamensky/argparse v1.2.1
github.com/fatih/color v1.9.0 // indirect
github.com/h2non/filetype v1.1.0
)
20 changes: 20 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
github.com/Binject/binjection v0.0.0-20191205221130-3927f970a61f h1:wMX2JpPTdxj4l8Gp5K5Cg+rIEH+Dz66mPmF0JftpoZg=
github.com/Binject/binjection v0.0.0-20191205221130-3927f970a61f/go.mod h1:q8QKD0q91rhE0ufjGDCaAEtHCYJwGaMkr22Yb9QRx08=
github.com/Binject/debug v0.0.0-20190929072709-9846938ecdec h1:Ueu7+7zwf+GFoj5kYfRHK+iFe/IOPHpBGU1pw6eFxNE=
github.com/Binject/debug v0.0.0-20190929072709-9846938ecdec/go.mod h1:6WgJ7mEG7ngJkNwwDkEVreDk2dPGg3oqdI6OEWaeDNg=
github.com/Binject/shellcode v0.0.0-20191101084904-a8a90e7d4563 h1:T8z8Wz/fqaPPANF8Unv4LjWLoa0TAvsjYAsRpvSkOqs=
github.com/Binject/shellcode v0.0.0-20191101084904-a8a90e7d4563/go.mod h1:HMbzsKPz1sF7H4Hmeovh+d2PH2iKPYpAB4XMOVz8wmM=
github.com/akamensky/argparse v1.2.1 h1:YMYF1VMku+dnz7TVTJpYhsCXHSYCVMAIcKaBbjwbvZo=
github.com/akamensky/argparse v1.2.1/go.mod h1:S5kwC7IuDcEr5VeXtGPRVZ5o/FdhcMlQz4IZQuw64xA=
github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/h2non/filetype v1.1.0 h1:Or/gjocJrJRNK/Cri/TDEKFjAR+cfG6eK65NGYB6gBA=
github.com/h2non/filetype v1.1.0/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY=
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6 changes: 4 additions & 2 deletions pipeinject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"testing"
"time"

"github.com/Binject/shellcode"
"github.com/Binject/binjection/bj"
)

Expand Down Expand Up @@ -56,12 +57,13 @@ func Test_Pipe_Elf_Inject_1(t *testing.T) {
dryPipe := MakePipe(namedPipe + "dry")
wetPipe := MakePipe(namedPipe + "wet")

config := &bj.BinjectConfig{CodeCaveMode: false}
repo := shellcode.NewRepo("test")
config := &bj.BinjectConfig{Repo:repo, CodeCaveMode: false}

go ListenPipeDry(dryPipe, config)
go ListenPipeWet(wetPipe)

dryBytes, err := ioutil.ReadFile("test/static_ls")
dryBytes, err := ioutil.ReadFile(filepath.Join("test","static_ls"))
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 5be9dc0

Please sign in to comment.