Guest User

Untitled

a guest
Aug 30th, 2011
564
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###
  2. ### Download Executable from:
  3. ### http://ge.tt/9zElhI7?c
  4. ###
  5.  
  6. import sqlite3
  7. import os
  8. import ctypes
  9. from ctypes import wintypes, windll
  10.  
  11. # Thanks to: http://stackoverflow.com/questions/626796/how-do-i-find-the-windows-common-application-data-folder-using-python/626927#626927
  12. # for this function
  13. # Look for the user's appdata path on a windows system
  14. def appdata():
  15.     CSIDL_COMMON_APPDATA = 35
  16.     CSIDL_APPDATA = 26
  17.  
  18.     _SHGetFolderPath = windll.shell32.SHGetFolderPathW
  19.     _SHGetFolderPath.argtypes = [wintypes.HWND,
  20.                                 ctypes.c_int,
  21.                                 wintypes.HANDLE,
  22.                                 wintypes.DWORD, wintypes.LPCWSTR]
  23.  
  24.     path_buf = wintypes.create_unicode_buffer(wintypes.MAX_PATH)
  25.     result = _SHGetFolderPath(0, CSIDL_APPDATA, 0, 0, path_buf)
  26.     return path_buf.value
  27.  
  28. # Build path
  29. pt = os.path.join(appdata(), 'Skype', 'shared_dynco', 'dc.db')
  30.  
  31. # Open conection to SQL-Lite database
  32. conn = sqlite3.connect(pt)
  33.  
  34. # Modify the webapps entry in bupdate table
  35. # Thanks to: http://www.tipps-tricks-kniffe.de/skype-home-ausblenden-so-deaktivieren-sie-die-uberflussige-skype-home-ansicht/
  36. conn.execute("""UPDATE bupdate
  37.          SET body='<webapps></webapps>'
  38.           WHERE uri='ui/webapps/config/1197'""")
  39.  
  40. # Save (commit) the changes
  41. conn.commit()
  42.  
  43. # We can close the connection now
  44. conn.close()
  45.  
  46. # done and goodbye
  47. quit()
RAW Paste Data