1
0
포크 0

Implements fallback to default test for kernel exploit

timestamps
dump_stack() 2018-11-23 09:31:20 +00:00
부모 b9500de0ba
커밋 a0c9a8f8e6
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제

7
pew.go
파일 보기

@ -212,6 +212,13 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
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)
}
}
_, err = q.Command("root", "chmod +x "+remoteTest)