def run_module(self):
# To access user provided attributes, use self.options dictionary
Thread(target=self.monitoring).start()
print "\n[*] STARTING PROGRAMS EXECUTION IN 5 SECONDS...\n"
time.sleep(5)
for b in self.binaries():
self.print_info(" [+] Executing %s ..." % b)
previous_pid = psutil.pids()
self.execute(b)
time.sleep(int(self.args["sleep_time"]))
new_pid = psutil.pids()
print " [-] Killing the process"
self.kill(b.split('.')[0], previous_pid, new_pid)
print "\n[*] PLEASE CLOSE PROCMON PROCESS\n"
self.parsing_results()
print "\n[*] RESULTS PARSED TO XML\n"
评论列表
文章目录