Example #1
0
 def extract_data(self):
     logger.info("Extracting data from Tcpdump probe")
     local_file = os.path.join(self.local_dir,
                               "%s_tcpdump.pcap" % self.target.ip)
     utils.get_anywhere(self.target, self.probe_thread.remote_stdout,
                        local_file)
     return local_file
Example #2
0
 def extract_data(self):
     logger.info("Extracting data using the logs probe")
     logs_dir = os.path.join(self.exp_folder, "logs")
     utils.local_mkdir(logs_dir)
     for key in self.wanted:
         key_dir = os.path.join(logs_dir, key)
         utils.local_mkdir(key_dir)
         for path in self.known_logs[key]:
             local_file = os.path.join(key_dir, path.replace("/", "_"))
             utils.get_anywhere(self.target, path, local_file)
Example #3
0
 def extract_data(self):
     logger.info("Extracting data from Ping probe")
     local_file = os.path.join(self.local_dir, "%s_ping.txt" % self.target.ip)
     utils.get_anywhere(self.source, self.remote_dir, local_file)
     return local_file
Example #4
0
 def extract_data(self):
     logger.info("Extracting data from Xentrace probe")
     local_file = os.path.join(self.local_dir,
                               "%s_xentrace.bin" % self.target.ip)
     utils.get_anywhere(self.target, self.probe_thread.remote_stdout,
                        local_file)
Example #5
0
	def extract_data(self):
		logger.info("Extracting data from SAR probe")
		local_file = os.path.join(self.local_dir, "%s_sar.bin" % utils.get_ip(self.target))
		utils.get_anywhere(self.target, self.probe_thread.remote_stdout, local_file)
		return local_file