{"action":"closed","number":4392,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392","id":26026195,"html_url":"https://github.com/rapid7/metasploit-framework/pull/4392","diff_url":"https://github.com/rapid7/metasploit-framework/pull/4392.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/4392.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4392","number":4392,"state":"closed","locked":false,"title":"Enum Ad Users -> Database","user":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"body":"Dumps AD Users to the database. Tries to detect Disabled and Locked out accounts from the userAccountControl. Disabled appears to be set here, but normal account lockouts don't seem to set in the flags. \r\n\r\nNot sure where Metasploit::Credentials stores that info, or how it uses it, doesn't bother showing it with creds... :)\r\n\r\nn.b. I tried using smb_login with DB_ALL_USERS true, but that didn't seem to work...\r\n```\r\nmsf post(enum_ad_users) > show options\r\n\r\nModule options (post/windows/gather/enum_ad_users):\r\n\r\n   Name        Current Setting  Required  Description\r\n   ----        ---------------  --------  -----------\r\n   DOMAIN                       no        The domain to query or distinguished name (e.g. DC=test,DC=com)\r\n   MAX_SEARCH  500              yes       Maximum values to retrieve, 0 for all.\r\n   SESSION     8                yes       The session to run this module on.\r\n   STORE_LOOT  false            yes       Store file in loot.\r\n\r\nmsf post(enum_ad_users) > rerun\r\n[*] Reloading module...\r\n\r\nDomain Users\r\n============\r\n\r\n sAMAccountName  userAccountControl\r\n --------------  ------------------\r\n Administrator   66048\r\n Guest           66082\r\n krbtgt          514\r\n user01          66048\r\n user02          66048\r\n user03          66048\r\n user04          66048\r\n user05          66048\r\n user06          66048\r\n user07          66048\r\n user08          66048\r\n user09          66048\r\n user10          66048\r\n reception       512\r\n pwned           546\r\n lockout_man     512\r\n\r\n[*] Post module execution completed\r\nmsf post(enum_ad_users) > creds\r\nCredentials\r\n===========\r\n\r\nhost          service        public         private  realm                 private_type\r\n----          -------        ------         -------  -----                 ------------\r\n172.16.80.10  445/tcp (smb)  user04                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user05                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user06                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user07                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user08                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user09                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user10                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  reception               metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  pwned                   metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  lockout_man             metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  Administrator           metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  Guest                   metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  krbtgt                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user01                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user02                  metasploitable.local  \r\n172.16.80.10  445/tcp (smb)  user03                  metasploitable.local  \r\n\r\nmsf post(enum_ad_users) > \r\n```\r\n\r\n\r\n## Verification\r\n* Run on a Domain Joined PC\r\n* Check the output of 'creds' afterwards\r\n\r\n\r\n","created_at":"2014-12-13T20:51:59Z","updated_at":"2015-01-30T23:22:02Z","closed_at":"2015-01-30T23:22:02Z","merged_at":"2015-01-30T23:22:02Z","merge_commit_sha":"c88549bc8918ba7c7b4934256b3ec22736962e29","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392/comments","review_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4392/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/6b0de8cbf0469f612a4fdcaab56bd8a527995936","head":{"label":"Meatballs1:enum_ad_users_","ref":"enum_ad_users_","sha":"6b0de8cbf0469f612a4fdcaab56bd8a527995936","user":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"repo":{"id":4677558,"name":"metasploit-framework","full_name":"Meatballs1/metasploit-framework","owner":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Meatballs1/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/Meatballs1/metasploit-framework","forks_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/forks","keys_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/events","assignees_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/merges","archive_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/Meatballs1/metasploit-framework/releases{/id}","created_at":"2012-06-15T16:40:18Z","updated_at":"2015-01-09T10:10:28Z","pushed_at":"2015-01-30T22:47:51Z","git_url":"git://github.com/Meatballs1/metasploit-framework.git","ssh_url":"git@github.com:Meatballs1/metasploit-framework.git","clone_url":"https://github.com/Meatballs1/metasploit-framework.git","svn_url":"https://github.com/Meatballs1/metasploit-framework","homepage":"http://www.metasploit.com/","size":262278,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"f42bda1a5181e48bdbcd03b0675f9d8e240c994b","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":2293158,"name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/metasploit-framework","description":"Metasploit Framework","fork":false,"url":"https://api.github.com/repos/rapid7/metasploit-framework","forks_url":"https://api.github.com/repos/rapid7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rapid7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rapid7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rapid7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rapid7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rapid7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/rapid7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rapid7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/metasploit-framework/releases{/id}","created_at":"2011-08-30T06:13:20Z","updated_at":"2015-01-30T23:21:56Z","pushed_at":"2015-01-30T23:21:55Z","git_url":"git://github.com/rapid7/metasploit-framework.git","ssh_url":"git@github.com:rapid7/metasploit-framework.git","clone_url":"https://github.com/rapid7/metasploit-framework.git","svn_url":"https://github.com/rapid7/metasploit-framework","homepage":"http://www.metasploit.com/","size":1188129,"stargazers_count":3251,"watchers_count":3251,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2735,"mirror_url":null,"open_issues_count":202,"forks":2735,"open_issues":202,"watchers":3251,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/4392"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4392"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4392/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4392/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/6b0de8cbf0469f612a4fdcaab56bd8a527995936"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jvazquez-r7","id":1742838,"avatar_url":"https://avatars.githubusercontent.com/u/1742838?v=3","gravatar_id":"","url":"https://api.github.com/users/jvazquez-r7","html_url":"https://github.com/jvazquez-r7","followers_url":"https://api.github.com/users/jvazquez-r7/followers","following_url":"https://api.github.com/users/jvazquez-r7/following{/other_user}","gists_url":"https://api.github.com/users/jvazquez-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jvazquez-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvazquez-r7/subscriptions","organizations_url":"https://api.github.com/users/jvazquez-r7/orgs","repos_url":"https://api.github.com/users/jvazquez-r7/repos","events_url":"https://api.github.com/users/jvazquez-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jvazquez-r7/received_events","type":"User","site_admin":false},"comments":18,"review_comments":7,"commits":1,"additions":0,"deletions":0,"changed_files":0}}