From cccbf62ec0ee41b4b16a429709d7957b381254b6 Mon Sep 17 00:00:00 2001 From: itayc0hen Date: Fri, 20 Mar 2020 20:11:30 +0200 Subject: [PATCH] Use cmdRaw and cmdRawAt in AnalTask --- src/common/AnalTask.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/AnalTask.cpp b/src/common/AnalTask.cpp index 41cccff7..40f6be1b 100644 --- a/src/common/AnalTask.cpp +++ b/src/common/AnalTask.cpp @@ -60,7 +60,7 @@ void AnalTask::runTask() } if (!options.os.isNull()) { - Core()->cmd("e asm.os=" + options.os); + Core()->cmdRaw("e asm.os=" + options.os); } if (!options.pdbFile.isNull()) { @@ -74,14 +74,14 @@ void AnalTask::runTask() if (!options.shellcode.isNull() && options.shellcode.size() / 2 > 0) { log(tr("Loading shellcode...")); - Core()->cmd("wx " + options.shellcode); + Core()->cmdRaw("wx " + options.shellcode); } if (options.endian != InitialOptions::Endianness::Auto) { Core()->setEndianness(options.endian == InitialOptions::Endianness::Big); } - Core()->cmd("fs *"); + Core()->cmdRaw("fs *"); if (!options.script.isNull()) { log(tr("Executing script...")); @@ -102,6 +102,7 @@ void AnalTask::runTask() return; } log(cmd.description); + // use cmd instead of cmdRaw because commands can be unexpected Core()->cmd(cmd.command); } log(tr("Analysis complete!"));