diff --git a/pew.go b/pew.go index 376e3bf..3d4b078 100644 --- a/pew.go +++ b/pew.go @@ -209,15 +209,16 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact, remoteTest := fmt.Sprintf("/tmp/test_%d", rand.Int()) err = q.CopyFile("user", testPath, remoteTest) if err != nil { - log.Println("copy file err", err) - // we should not exit because of testing 'insmod' part - // for kernel module if ka.Type == config.KernelExploit { log.Println("Use `echo touch FILE | exploit` for test") q.Command("user", "echo -e '#!/bin/sh\necho touch $2 | $1' "+ "> "+remoteTest+ " && chmod +x "+remoteTest) + } else { + log.Println("copy file err", err) + // we should not exit because of testing 'insmod' part + // for kernel module } }