Ejemplo n.º 1
0
 def get_chrome_bookmarks(self):
     """
     Calling a function to receive the google chrome bookmarks.
     Writing to a file if error occurs.
     :return: List of google chrome bookmarks.
     """
     info = chrome_bookmarks.get_bookmarks(self.chrome_path)
     if info[0] == 'err':  # The function returns an array of data or errors if error occurs
         err.error_handle([info[1:]], self.name)
     else:
         self.info_bank['bookmarks'] = info
Ejemplo n.º 2
0
 def get_chrome_history(self):
     """
     Calling a function to receive the google chrome history and google search.
     Writing to a file if error occurs.
     :return: List of google chrome history and google search.
     """
     info = chrome_history.get_chrome_history(self.chrome_path)
     if info[0] == 'err':
         err.error_handle([info[1:]], self.name)
     else:
         self.info_bank['history'] = info
         return info
Ejemplo n.º 3
0
 def get_chrome_saved_password(self):
     """
     Calling a function to receive the google chrome passwords.
     Writing to a file if error occurs.
     :return: List of google chrome passwords.
     """
     info = chrome_password.get_chrome_saved_password(self.chrome_path)
     if info[0] == 'err':
         err.error_handle([info[1:]], self.name)
     else:
         self.info_bank['passwords'] = info
         return info
Ejemplo n.º 4
0
 def get_cookies(self):
     """
     Calling a function to receive the firefox cookies.
     Writing to a file if error occurs.
     :return: List of firefox cookies.
     """
     info = firefox_cookie.get_all_cookies(self.firefox_path)
     if info[0] == 'err':
         err.error_handle(info[1:], self.name)
     else:
         self.info_bank['cookies'] = info[0]
         return info[0]
Ejemplo n.º 5
0
 def get_saved_password(self):
     """
     Calling a function to receive the firefox passwords.
     Writing to a file if error occurs.
     :return: List of firefox passwords.
     """
     info = firepwd.get_saved_password(self.firefox_path)
     if info[0] == 'err':
         err.error_handle(info[1:], self.name)
     else:
         self.info_bank['passwords'] = info
         return info
Ejemplo n.º 6
0
 def get_history(self):
     """
     Calling a function to receive the firefox history.
     Writing to a file if error occurs.
     :return: List of firefox history.
     """
     info = firefoxHistory.get_history(self.firefox_path)
     if info[0] == 'err':
         err.error_handle(info[1:], self.name)
     else:
         self.info_bank['history'] = info[0]
         return info[0]
Ejemplo n.º 7
0
 def get_contacts(self):
     contacts = []
     for i in skype_info.PATH:
         conc = skype_info.get_contacts(i)
         if conc[0] == 'err':
             err.error_handle([conc[1:]], self.name)
         else:
             contacts.append(conc[0])
     if contacts == []:
         err.error_handle([[203, str(skype_info.PATH)]], self.name)
     else:
         self.info_bank['contacts'] = contacts
         return contacts
Ejemplo n.º 8
0
 def get_accounts(self):
     accounts = []
     for i in skype_info.PATH:
         acc = skype_info.get_accounts(i)
         if acc[0] == 'err':
             err.error_handle([acc[1:]], self.name)
         else:
             accounts.append(acc[0])
     if accounts == []:
         err.error_handle([[202, str(skype_info.PATH)]], self.name)
     else:
         self.info_bank['accounts'] = accounts
         return accounts
Ejemplo n.º 9
0
 def get_messages(self):
     messages = []
     for i in skype_info.PATH:
         mseg = skype_info.get_messages(i)
         if mseg[0] == 'err':
             err.error_handle([mseg[1:]], self.name)
         else:
             messages.append(mseg[0])
     if messages == []:
         err.error_handle([[201, str(skype_info.PATH)]], self.name)
     else:
         self.info_bank['messages'] = messages
         return messages