diff --git a/CHANGELOG.md b/CHANGELOG.md index d757a94..6ed2866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,8 @@ The main purpose of the release is to simplify installation. - New command: **debug**. Creates interactive environment for kernel module/exploit development. Still work-in-progress. +- No warning anymore if test.sh is not exists. + ## [0.1.0] - 2019-11-20 Initial release that was never tagged. diff --git a/docs/introduction.rst b/docs/introduction.rst index 9dbcc71..161ee26 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -94,6 +94,9 @@ Overview - Path to exploit - Path to file that must be created with root privileges. + - If there's no test.sh script then default + (``echo touch FILE | exploit``) one is used. + Security -------- diff --git a/pew.go b/pew.go index d603bf3..6484580 100644 --- a/pew.go +++ b/pew.go @@ -292,13 +292,11 @@ func copyTest(q *qemu.System, testPath string, ka config.Artifact) ( err = q.CopyFile("user", testPath, remoteTest) if err != nil { 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("No test, use dummy") q.Command("user", "echo '#!/bin/sh' "+ "> "+remoteTest+" && chmod +x "+remoteTest) }