Fix spelling
This commit is contained in:
parent
e4bed2a4c3
commit
3d958c1e10
2
debug.go
2
debug.go
@ -161,7 +161,7 @@ func debugHandler(kcfg config.KernelConfig, workPath, kernRegex, gdb string,
|
|||||||
|
|
||||||
q.Debug(gdb)
|
q.Debug(gdb)
|
||||||
coloredGdbAddress := aurora.BgGreen(aurora.Black(gdb))
|
coloredGdbAddress := aurora.BgGreen(aurora.Black(gdb))
|
||||||
fmt.Printf("[*] gdb runned on %s\n", coloredGdbAddress)
|
fmt.Printf("[*] gdb is run on %s\n", coloredGdbAddress)
|
||||||
|
|
||||||
err = q.Start()
|
err = q.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -54,7 +54,7 @@ Overview
|
|||||||
|
|
||||||
$ out-of-tree debug --kernel 'Ubuntu:4.15.0-58-generic'
|
$ out-of-tree debug --kernel 'Ubuntu:4.15.0-58-generic'
|
||||||
[*] KASLR SMEP SMAP
|
[*] KASLR SMEP SMAP
|
||||||
[*] gdb runned on tcp::1234
|
[*] gdb is run on tcp::1234
|
||||||
[*] build result copied to /tmp/exploit
|
[*] build result copied to /tmp/exploit
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=no -p 29308 root@127.133.45.236
|
ssh -o StrictHostKeyChecking=no -p 29308 root@127.133.45.236
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# - KERNEL: kernel headers path
|
# - KERNEL: kernel headers path
|
||||||
# - TARGET: name of exploit binary that MUST be produced by makefile.
|
# - TARGET: name of exploit binary that MUST be produced by makefile.
|
||||||
# - $(TARGET)_test: name of test binary that MUST be produced by makefile
|
# - $(TARGET)_test: name of test binary that MUST be produced by makefile
|
||||||
# and it's will be runned on a LPE stage. TARGET_TEST MUST accept two argument:
|
# and it's will be is run on a LPE stage. TARGET_TEST MUST accept two argument:
|
||||||
# - Path to exploit binary
|
# - Path to exploit binary
|
||||||
# - File that MUST be created with exploit. It uses for test that exploit works
|
# - File that MUST be created with exploit. It uses for test that exploit works
|
||||||
# correctly.
|
# correctly.
|
||||||
|
@ -60,7 +60,7 @@ type Kernel struct {
|
|||||||
InitrdPath string
|
InitrdPath string
|
||||||
}
|
}
|
||||||
|
|
||||||
// System describe qemu parameters and runned process
|
// System describe qemu parameters and is run process
|
||||||
type System struct {
|
type System struct {
|
||||||
arch arch
|
arch arch
|
||||||
kernel Kernel
|
kernel Kernel
|
||||||
@ -86,7 +86,7 @@ type System struct {
|
|||||||
Died bool
|
Died bool
|
||||||
sshAddrPort string
|
sshAddrPort string
|
||||||
|
|
||||||
// accessible while qemu is runned
|
// accessible while qemu is is run
|
||||||
cmd *exec.Cmd
|
cmd *exec.Cmd
|
||||||
pipe struct {
|
pipe struct {
|
||||||
stdin io.WriteCloser
|
stdin io.WriteCloser
|
||||||
|
@ -47,7 +47,7 @@ ENV IMAGE=/shared/out_of_tree_centos_7.img
|
|||||||
|
|
||||||
RUN mkdir $IMAGEDIR
|
RUN mkdir $IMAGEDIR
|
||||||
|
|
||||||
# Must be runned with --privileged because of /dev/loop
|
# Must be is run with --privileged because of /dev/loop
|
||||||
CMD qemu-img create $IMAGE 2G && \
|
CMD qemu-img create $IMAGE 2G && \
|
||||||
mkfs.ext4 -F $IMAGE && \
|
mkfs.ext4 -F $IMAGE && \
|
||||||
mount -o loop $IMAGE $IMAGEDIR && \
|
mount -o loop $IMAGE $IMAGEDIR && \
|
||||||
|
@ -25,7 +25,7 @@ ENV RELEASE=bionic
|
|||||||
|
|
||||||
RUN mkdir $IMAGEDIR
|
RUN mkdir $IMAGEDIR
|
||||||
|
|
||||||
# Must be runned with --privileged because of /dev/loop
|
# Must be is run with --privileged because of /dev/loop
|
||||||
CMD debootstrap --include=openssh-server $RELEASE $TMPDIR $REPOSITORY && \
|
CMD debootstrap --include=openssh-server $RELEASE $TMPDIR $REPOSITORY && \
|
||||||
/shared/setup.sh $TMPDIR && \
|
/shared/setup.sh $TMPDIR && \
|
||||||
qemu-img create $IMAGE 2G && \
|
qemu-img create $IMAGE 2G && \
|
||||||
|
Loading…
Reference in New Issue
Block a user