{"action":"opened","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5099","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5099/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5099/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5099/events","html_url":"https://github.com/rapid7/metasploit-framework/issues/5099","id":66967417,"number":5099,"title":"Meterpreter's `reg deletekey` command doesn't work","user":{"login":"reider-roque","id":6162309,"avatar_url":"https://avatars.githubusercontent.com/u/6162309?v=3","gravatar_id":"","url":"https://api.github.com/users/reider-roque","html_url":"https://github.com/reider-roque","followers_url":"https://api.github.com/users/reider-roque/followers","following_url":"https://api.github.com/users/reider-roque/following{/other_user}","gists_url":"https://api.github.com/users/reider-roque/gists{/gist_id}","starred_url":"https://api.github.com/users/reider-roque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reider-roque/subscriptions","organizations_url":"https://api.github.com/users/reider-roque/orgs","repos_url":"https://api.github.com/users/reider-roque/repos","events_url":"https://api.github.com/users/reider-roque/events{/privacy}","received_events_url":"https://api.github.com/users/reider-roque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-07T19:00:58Z","updated_at":"2015-04-07T19:00:58Z","closed_at":null,"body":"Platform/Version information:\r\n```\r\nroot@kali:/tmp# lsb_release -d\r\nDescription:\tKali GNU/Linux 1.1.0\r\nroot@kali:/tmp# uname -a\r\nLinux kali 3.18.0-kali3-amd64 #1 SMP Debian 3.18.6-1~kali2 (2015-03-02) x86_64 GNU/Linux\r\nroot@kali:/tmp# apt-cache show metasploit-framework | grep Version\r\nVersion: 4.11.1-2015040202-1kali1\r\n```\r\n\r\n`reg deletekey -k keyname` doesn't seem to work (though I don't know if this is a platform specific issue; the victim is Windows XP SP2 Eng, no patches)\r\n```\r\n# Get a Meterpreter shell first\r\n\r\nmeterpreter > reg createkey -k HKLM\\\\software\\\\test\r\nSuccessfully created key: HKLM\\software\\test\r\nmeterpreter > reg deletekey -k HKLM\\\\software\\\\test\r\n[-] stdapi_registry_delete_key: Operation failed: The system cannot find the file specified.\r\n```\r\n\r\nAlso I am curious what justifies adding registry editing functionality into meterpreter itself when you can drop into the *cmd* with `shell` command and use regular Windows `reg add/delete` commands. If there is something that justifies this addition, then why not keep the same commands names that WIndows uses? I mean there are `reg add` and `reg delete`, but Meterpreter creates new names for the same commands -- `reg createkey\\setval` and `reg deletekey\\deleteval`. That just complicates things in my opinion."}}