shanenin Posted June 24, 2006 Report Share Posted June 24, 2006 (edited) I am just lost trying to follow this guide. I want to delete a value for a registry key. The syntax for the method is winapi32.RegDeleteValue(key, value) value is a string, which is the name of the value. That part is easy. I don't understand the key argument. Below is what I am referencinghttp://aspn.activestate.com/ASPN/docs/Acti...Value_meth.htmlAny suggestions woudl be appreciated, thanks.edit added later//This seems to be workingimport win32apiimport win32con key = win32api.RegCreateKey( win32con.HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" )win32api.RegDeleteValue(key, "value_name") Edited June 24, 2006 by shanenin Quote Link to post Share on other sites
Matt Posted June 24, 2006 Report Share Posted June 24, 2006 does python have the ability to create reg files? If so, you could have it create a reg file, merge it with the registry, then delete the reg file. That's how EpolvyFix works. Matt Quote Link to post Share on other sites
shanenin Posted June 24, 2006 Author Report Share Posted June 24, 2006 yes python can create a registry key or valueWhy does it have to create a registry value, doen't it just have to delete the value that the trojan created? I don't think I am following you totally. Quote Link to post Share on other sites
jcl Posted June 24, 2006 Report Share Posted June 24, 2006 (edited) He's talking about using .reg files to patch the registry. Export your changes into a .reg file, then import it into the registry. The moral equivalent to editing a file by generating a diff and using the patch utility to apply the changes. IOW, doing it the hard way Edited June 24, 2006 by jcl Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.