Menu

Obfuscating usernames as well

Developers
Swift
2011-03-13
2013-05-28
  • Swift

    Swift - 2011-03-13

    Hello, I've had success with obfuscating usernames, and then deobbing them in the control panel..It even saves as the encrypted version in the ini file.

    However, how on earth do I obfuscate two things at once? The passwords AND usernames?

    I've tried adding two "for" statements, these:

            for key1, value1 in self.entrydict.items():
                if not isinstance(value1, dict): # shouldn't happen
                    if key1.find('Username') == -1:
                        self.settings[key1] = value1.getvalue()
                    else:
                        self.settings[key1] = myutils.username_obfuscate(value1.getvalue())                                     
                else:
                    for key2, value2 in value1.items():
                        if not isinstance(value2, dict):
                            if key2.find('Username') == -1:
                                self.settings[key1][key2] = value2.getvalue()
                            else:
                                self.settings[key1][key2] = myutils.username_obfuscate(value2.getvalue())                                               
                        else:
                            for key3, value3 in value2.items():
                                if not isinstance(value3, dict):
                                    if key3.find('Username')  == -1:
                                        self.settings[key1][key2][key3] = value3.getvalue()
                                    else:
                                        self.settings[key1][key2][key3] = myutils.username_obfuscate(value3.getvalue())                                                         
                                else:
                                    pass # shouldn't happen
    

    I tried copy and pasting two of those for statements, one with 'Password' and one with 'Username'

    What am I doing wrong? The keylogger does not obfuscate the passwords if I have it obfuscating usernames..and visa versa, it only obfs one.

     
  • Swift

    Swift - 2011-03-13

    This is the error I get when running

    Error: 1
    <class 'zlib.error'> Exception in Tk callback
      Function: <controlpanel.Command instance at 0x024FA760> (type: <type 'instance'>)
      Args: ()
    Traceback (innermost last):
      File "Pmw\Pmw.pyc", line 1780, in __call__
        None
      File "controlpanel.pyc", line 306, in __call__
        None
      File "controlpanel.pyc", line 186, in __init__
        None
      File "myutils.pyc", line 32, in password_recover
        None
    <class 'zlib.error'>: Error -3 while decompressing data: incorrect header check
    
     
  • Swift

    Swift - 2011-03-14

    Nevermind, I have successfully obfuscated username, server, and passwords. :) Everything working flawlessly

     

Log in to post a comment.