# # ITSV GmbH # CCDB - Command and Control Database # # FILE: dquerymfile_spawntest.txt # DESCRIPTION: DQUERY definition for DQUERY spawntest # this DQUERY tests spawning windows executables # @querytitle Test ausführbarer Programme aus der CCDB @querydescription testet das ausführen von (windows-)programmen aus der CCDB heraus @group TEST @attributenames cmdline:string:{{cmdlineoptions}} @cmdlineoptions {"labeltext":"OS-Kommando","typedesc":"Ein Betriebssystem-Kommando, das in einem Subprozess ausgeführt werden soll"} @querytype function @function seqtrans.seqtrans ~query.tsteps # # 0: execute the subprocess # aexpression childprocess.exec(this.query.cmdline, { option: "empty" }, function(err,stdout,stderr) { if (err) { this.errcoll.collect(err,"Error executing \""+this.query.cmdline+"\"", { stdout: stdout, stderr: stderr }); return; } logger.debug("NOERROR"); this.ppush([this.phead("cmdlineexecuted"),{ rawhtml: "
"+stdout+"" },"STDERR: "+aux.objTxt(stderr),""]); this(); }.bind(this) );