QuarantineProcess dump process memory and cipher them in quarantine folder
(proc *ProcessInformation, quarantinePath string)
| 128 | |
| 129 | // QuarantineProcess dump process memory and cipher them in quarantine folder |
| 130 | func QuarantineProcess(proc *ProcessInformation, quarantinePath string) (err error) { |
| 131 | |
| 132 | err = quarantineContent(proc.MemoryDump, proc.ProcessName+fmt.Sprint(proc.PID)+".mem", quarantinePath) |
| 133 | if err != nil { |
| 134 | return err |
| 135 | } |
| 136 | |
| 137 | err = QuarantineFile(proc.ProcessPath, quarantinePath) |
| 138 | if err != nil { |
| 139 | return err |
| 140 | } |
| 141 | |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | // QuarantineFile dump specified file and cipher them in quarantine folder |
| 146 | func QuarantineFile(path, quarantinePath string) (err error) { |
no test coverage detected