{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/rubyntlm/issues/2","labels_url":"https://api.github.com/repos/rapid7/rubyntlm/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/rubyntlm/issues/2/comments","events_url":"https://api.github.com/repos/rapid7/rubyntlm/issues/2/events","html_url":"https://github.com/rapid7/rubyntlm/pull/2","id":85238232,"number":2,"title":"add pass-the-hash capability","user":{"login":"dmaloney-r7","id":1146440,"avatar_url":"https://avatars.githubusercontent.com/u/1146440?v=3","gravatar_id":"","url":"https://api.github.com/users/dmaloney-r7","html_url":"https://github.com/dmaloney-r7","followers_url":"https://api.github.com/users/dmaloney-r7/followers","following_url":"https://api.github.com/users/dmaloney-r7/following{/other_user}","gists_url":"https://api.github.com/users/dmaloney-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/dmaloney-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmaloney-r7/subscriptions","organizations_url":"https://api.github.com/users/dmaloney-r7/orgs","repos_url":"https://api.github.com/users/dmaloney-r7/repos","events_url":"https://api.github.com/users/dmaloney-r7/events{/privacy}","received_events_url":"https://api.github.com/users/dmaloney-r7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"trosen-r7","id":1170769,"avatar_url":"https://avatars.githubusercontent.com/u/1170769?v=3","gravatar_id":"","url":"https://api.github.com/users/trosen-r7","html_url":"https://github.com/trosen-r7","followers_url":"https://api.github.com/users/trosen-r7/followers","following_url":"https://api.github.com/users/trosen-r7/following{/other_user}","gists_url":"https://api.github.com/users/trosen-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/trosen-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trosen-r7/subscriptions","organizations_url":"https://api.github.com/users/trosen-r7/orgs","repos_url":"https://api.github.com/users/trosen-r7/repos","events_url":"https://api.github.com/users/trosen-r7/events{/privacy}","received_events_url":"https://api.github.com/users/trosen-r7/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-04T19:18:56Z","updated_at":"2015-06-09T20:44:50Z","closed_at":"2015-06-09T20:16:36Z","pull_request":{"url":"https://api.github.com/repos/rapid7/rubyntlm/pulls/2","html_url":"https://github.com/rapid7/rubyntlm/pull/2","diff_url":"https://github.com/rapid7/rubyntlm/pull/2.diff","patch_url":"https://github.com/rapid7/rubyntlm/pull/2.patch"},"body":"a user can enter a full NTLM hash\r\nin LM:NTLM format for the client password\r\nand the library will use the supplied ntlm hash\r\nfor generating the ntlmv2 hash\r\n\r\nMSP-12777\r\n\r\nVERIFICATION STEPS\r\n- [x] pull down https://github.com/rapid7/smb2\r\n- [x] in smb2.gemspec comment out the line `spec.add_runtime_dependency \"rubyntlm\", \"~> 0.5\"`\r\n- [x] add a line to the Gemfile in smb2 `gem 'rubyntlm`, path: <path to your local copy of this repo.\r\n- [x] in the smb2 directory `bundle console`\r\n- [x] use the following code, replace the ip, username, the ntlm hash as is appropriate for your own target environment(make sure it is a Vista or later OS!)\r\n```\r\ndispatcher = Smb2::Dispatcher::Socket.connect(\"192.168.172.163\", 445)\r\nclient = Smb2::Client.new(\r\n  dispatcher: dispatcher,\r\n  username:\"msfadmin\",\r\n  password:\"aad3b435b51404eeaad3b435b51404ee:27c433245e4763d074d30a05aae0af2c\",\r\n  domain:\"corp\"\r\n)\r\nclient.negotiate\r\nclient.authenticate\r\n```\r\n- [x] VERIFY it authenticates successfully (it should return 0)\r\n"},"comment":{"url":"https://api.github.com/repos/rapid7/rubyntlm/issues/comments/110499157","html_url":"https://github.com/rapid7/rubyntlm/pull/2#issuecomment-110499157","issue_url":"https://api.github.com/repos/rapid7/rubyntlm/issues/2","id":110499157,"user":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T20:44:50Z","updated_at":"2015-06-09T20:44:50Z","body":"Thanks, @trosen-r7!"}}