Skip to content
Snippets Groups Projects
Commit 069721dd authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

restore shell escape

parent 79508696
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,7 @@ bool frida_command( string cmd )
// Extract overwrite marker:
NOlm::overwrite = 0;
if( cmd=="!" )
throw "overwrite marker '!' must immediately follow a command";
if ( cmd!="" && cmd[cmd.size()-1]=='!' ) {
if ( cmd.size()>1 && cmd[cmd.size()-1]=='!' ) {
NOlm::overwrite = 1;
cmd.erase(cmd.size()-1,1);
}
......
......@@ -161,7 +161,7 @@ void CFrida::interactive()
cerr << "'" << cmdline << "' failed: " << ex << endl;
NMacro::clear();
} catch( const char* ex ) {
cerr << "BUG: '" << cmdline << "' failed with unforeseen message " << ex << endl;
cerr << "BUG: '" << cmdline << "' failed with unforeseen message: " << ex << endl;
NMacro::clear();
} catch( ... ) {
cerr << "BUG: '" << cmdline << "' failed with unforeseen exception\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment