Browse Source

Make variable names more toml-friendly

tags/v1.0.0
dump_stack() 10 months ago
parent
commit
d425f455bb
Signed by: Mikhail Klementev <blame@dumpstack.io> GPG Key ID: BE44DA8C062D87DC
2 changed files with 9 additions and 9 deletions
  1. 4
    4
      config/config.go
  2. 5
    5
      pew.go

+ 4
- 4
config/config.go View File

@@ -110,15 +110,15 @@ type Artifact struct {
SupportedKernels []KernelMask

Qemu struct {
CPUs int
Cpus int
Memory int
Timeout Duration
}

Mitigations struct {
DisableSMEP bool
DisableSMAP bool
DisableKASLR bool
DisableSmep bool
DisableSmap bool
DisableKaslr bool
}
}


+ 5
- 5
pew.go View File

@@ -307,16 +307,16 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
if ka.Qemu.Timeout.Duration != 0 {
q.Timeout = ka.Qemu.Timeout.Duration
}
if ka.Qemu.CPUs != 0 {
q.Cpus = ka.Qemu.CPUs
if ka.Qemu.Cpus != 0 {
q.Cpus = ka.Qemu.Cpus
}
if ka.Qemu.Memory != 0 {
q.Memory = ka.Qemu.Memory
}

q.SetKASLR(!ka.Mitigations.DisableKASLR)
q.SetSMEP(!ka.Mitigations.DisableSMEP)
q.SetSMAP(!ka.Mitigations.DisableSMAP)
q.SetKASLR(!ka.Mitigations.DisableKaslr)
q.SetSMEP(!ka.Mitigations.DisableSmep)
q.SetSMAP(!ka.Mitigations.DisableSmap)

err = q.Start()
if err != nil {

Loading…
Cancel
Save