{"action":"closed","number":24,"pull_request":{"url":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24","id":31026120,"html_url":"https://github.com/micheloosterhof/kippo/pull/24","diff_url":"https://github.com/micheloosterhof/kippo/pull/24.diff","patch_url":"https://github.com/micheloosterhof/kippo/pull/24.patch","issue_url":"https://api.github.com/repos/micheloosterhof/kippo/issues/24","number":24,"state":"closed","locked":false,"title":"IP address added to credential checkers","user":{"login":"honigbij","id":11292388,"avatar_url":"https://avatars.githubusercontent.com/u/11292388?v=3","gravatar_id":"","url":"https://api.github.com/users/honigbij","html_url":"https://github.com/honigbij","followers_url":"https://api.github.com/users/honigbij/followers","following_url":"https://api.github.com/users/honigbij/following{/other_user}","gists_url":"https://api.github.com/users/honigbij/gists{/gist_id}","starred_url":"https://api.github.com/users/honigbij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honigbij/subscriptions","organizations_url":"https://api.github.com/users/honigbij/orgs","repos_url":"https://api.github.com/users/honigbij/repos","events_url":"https://api.github.com/users/honigbij/events{/privacy}","received_events_url":"https://api.github.com/users/honigbij/received_events","type":"User","site_admin":false},"body":"I added 2 implementation classes for 2 new credentialInterfaces: UsernamePasswordIP and PluggableAuthenticationModulesIP.\r\nThen in the HoneyPotSSHUserAuthServer(userauth.SSHUserAuthServer) class in ssh.py I added (and overrode) the 2 methods: def auth_password(self, packet) and def auth_keyboard_interactive(self, packet).\r\n\r\nIn the overridden methods I pass the client src IP address to the 2 new credentialInterfaces.\r\nBy doing so we have the src IP address available in the requestAvatarId method in HoneypotPasswordchecker and this can be passed to other methods like checkUserPassword.\r\n\r\nI also created an example use case (auth.ip-example.py) that does authorization based on IP address. It lets attackers login after a random number of times and keeps the data in a json file (uservar.json) in the data folder.","created_at":"2015-03-12T11:10:20Z","updated_at":"2015-03-16T14:07:05Z","closed_at":"2015-03-16T14:07:05Z","merged_at":null,"merge_commit_sha":"9ee01ebf4ae8febaf02558383a7c8c90a65a4467","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24/commits","review_comments_url":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24/comments","review_comment_url":"https://api.github.com/repos/micheloosterhof/kippo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/micheloosterhof/kippo/issues/24/comments","statuses_url":"https://api.github.com/repos/micheloosterhof/kippo/statuses/c2f0db4c557e0074a8573029e36e84b288a18231","head":{"label":"honigbij:master","ref":"master","sha":"c2f0db4c557e0074a8573029e36e84b288a18231","user":{"login":"honigbij","id":11292388,"avatar_url":"https://avatars.githubusercontent.com/u/11292388?v=3","gravatar_id":"","url":"https://api.github.com/users/honigbij","html_url":"https://github.com/honigbij","followers_url":"https://api.github.com/users/honigbij/followers","following_url":"https://api.github.com/users/honigbij/following{/other_user}","gists_url":"https://api.github.com/users/honigbij/gists{/gist_id}","starred_url":"https://api.github.com/users/honigbij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honigbij/subscriptions","organizations_url":"https://api.github.com/users/honigbij/orgs","repos_url":"https://api.github.com/users/honigbij/repos","events_url":"https://api.github.com/users/honigbij/events{/privacy}","received_events_url":"https://api.github.com/users/honigbij/received_events","type":"User","site_admin":false},"repo":{"id":32027011,"name":"kippo","full_name":"honigbij/kippo","owner":{"login":"honigbij","id":11292388,"avatar_url":"https://avatars.githubusercontent.com/u/11292388?v=3","gravatar_id":"","url":"https://api.github.com/users/honigbij","html_url":"https://github.com/honigbij","followers_url":"https://api.github.com/users/honigbij/followers","following_url":"https://api.github.com/users/honigbij/following{/other_user}","gists_url":"https://api.github.com/users/honigbij/gists{/gist_id}","starred_url":"https://api.github.com/users/honigbij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honigbij/subscriptions","organizations_url":"https://api.github.com/users/honigbij/orgs","repos_url":"https://api.github.com/users/honigbij/repos","events_url":"https://api.github.com/users/honigbij/events{/privacy}","received_events_url":"https://api.github.com/users/honigbij/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honigbij/kippo","description":"Kippo Fork with additional features including SFTP support, direct-tcp, exec stdin logging, ssh algorithm update, json logging, etc","fork":true,"url":"https://api.github.com/repos/honigbij/kippo","forks_url":"https://api.github.com/repos/honigbij/kippo/forks","keys_url":"https://api.github.com/repos/honigbij/kippo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honigbij/kippo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honigbij/kippo/teams","hooks_url":"https://api.github.com/repos/honigbij/kippo/hooks","issue_events_url":"https://api.github.com/repos/honigbij/kippo/issues/events{/number}","events_url":"https://api.github.com/repos/honigbij/kippo/events","assignees_url":"https://api.github.com/repos/honigbij/kippo/assignees{/user}","branches_url":"https://api.github.com/repos/honigbij/kippo/branches{/branch}","tags_url":"https://api.github.com/repos/honigbij/kippo/tags","blobs_url":"https://api.github.com/repos/honigbij/kippo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honigbij/kippo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honigbij/kippo/git/refs{/sha}","trees_url":"https://api.github.com/repos/honigbij/kippo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honigbij/kippo/statuses/{sha}","languages_url":"https://api.github.com/repos/honigbij/kippo/languages","stargazers_url":"https://api.github.com/repos/honigbij/kippo/stargazers","contributors_url":"https://api.github.com/repos/honigbij/kippo/contributors","subscribers_url":"https://api.github.com/repos/honigbij/kippo/subscribers","subscription_url":"https://api.github.com/repos/honigbij/kippo/subscription","commits_url":"https://api.github.com/repos/honigbij/kippo/commits{/sha}","git_commits_url":"https://api.github.com/repos/honigbij/kippo/git/commits{/sha}","comments_url":"https://api.github.com/repos/honigbij/kippo/comments{/number}","issue_comment_url":"https://api.github.com/repos/honigbij/kippo/issues/comments{/number}","contents_url":"https://api.github.com/repos/honigbij/kippo/contents/{+path}","compare_url":"https://api.github.com/repos/honigbij/kippo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honigbij/kippo/merges","archive_url":"https://api.github.com/repos/honigbij/kippo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honigbij/kippo/downloads","issues_url":"https://api.github.com/repos/honigbij/kippo/issues{/number}","pulls_url":"https://api.github.com/repos/honigbij/kippo/pulls{/number}","milestones_url":"https://api.github.com/repos/honigbij/kippo/milestones{/number}","notifications_url":"https://api.github.com/repos/honigbij/kippo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honigbij/kippo/labels{/name}","releases_url":"https://api.github.com/repos/honigbij/kippo/releases{/id}","created_at":"2015-03-11T16:01:33Z","updated_at":"2015-03-12T13:27:28Z","pushed_at":"2015-03-16T14:07:05Z","git_url":"git://github.com/honigbij/kippo.git","ssh_url":"git@github.com:honigbij/kippo.git","clone_url":"https://github.com/honigbij/kippo.git","svn_url":"https://github.com/honigbij/kippo","homepage":"","size":3177,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"old_master"}},"base":{"label":"micheloosterhof:master","ref":"master","sha":"8733cca51506ace36062b59d7091f7f1424e40c3","user":{"login":"micheloosterhof","id":1063043,"avatar_url":"https://avatars.githubusercontent.com/u/1063043?v=3","gravatar_id":"","url":"https://api.github.com/users/micheloosterhof","html_url":"https://github.com/micheloosterhof","followers_url":"https://api.github.com/users/micheloosterhof/followers","following_url":"https://api.github.com/users/micheloosterhof/following{/other_user}","gists_url":"https://api.github.com/users/micheloosterhof/gists{/gist_id}","starred_url":"https://api.github.com/users/micheloosterhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheloosterhof/subscriptions","organizations_url":"https://api.github.com/users/micheloosterhof/orgs","repos_url":"https://api.github.com/users/micheloosterhof/repos","events_url":"https://api.github.com/users/micheloosterhof/events{/privacy}","received_events_url":"https://api.github.com/users/micheloosterhof/received_events","type":"User","site_admin":false},"repo":{"id":23069993,"name":"kippo","full_name":"micheloosterhof/kippo","owner":{"login":"micheloosterhof","id":1063043,"avatar_url":"https://avatars.githubusercontent.com/u/1063043?v=3","gravatar_id":"","url":"https://api.github.com/users/micheloosterhof","html_url":"https://github.com/micheloosterhof","followers_url":"https://api.github.com/users/micheloosterhof/followers","following_url":"https://api.github.com/users/micheloosterhof/following{/other_user}","gists_url":"https://api.github.com/users/micheloosterhof/gists{/gist_id}","starred_url":"https://api.github.com/users/micheloosterhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheloosterhof/subscriptions","organizations_url":"https://api.github.com/users/micheloosterhof/orgs","repos_url":"https://api.github.com/users/micheloosterhof/repos","events_url":"https://api.github.com/users/micheloosterhof/events{/privacy}","received_events_url":"https://api.github.com/users/micheloosterhof/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/micheloosterhof/kippo","description":"Kippo Fork with additional features including SFTP support, direct-tcp, exec stdin logging, ssh algorithm update, json logging, etc","fork":true,"url":"https://api.github.com/repos/micheloosterhof/kippo","forks_url":"https://api.github.com/repos/micheloosterhof/kippo/forks","keys_url":"https://api.github.com/repos/micheloosterhof/kippo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micheloosterhof/kippo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micheloosterhof/kippo/teams","hooks_url":"https://api.github.com/repos/micheloosterhof/kippo/hooks","issue_events_url":"https://api.github.com/repos/micheloosterhof/kippo/issues/events{/number}","events_url":"https://api.github.com/repos/micheloosterhof/kippo/events","assignees_url":"https://api.github.com/repos/micheloosterhof/kippo/assignees{/user}","branches_url":"https://api.github.com/repos/micheloosterhof/kippo/branches{/branch}","tags_url":"https://api.github.com/repos/micheloosterhof/kippo/tags","blobs_url":"https://api.github.com/repos/micheloosterhof/kippo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micheloosterhof/kippo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micheloosterhof/kippo/git/refs{/sha}","trees_url":"https://api.github.com/repos/micheloosterhof/kippo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micheloosterhof/kippo/statuses/{sha}","languages_url":"https://api.github.com/repos/micheloosterhof/kippo/languages","stargazers_url":"https://api.github.com/repos/micheloosterhof/kippo/stargazers","contributors_url":"https://api.github.com/repos/micheloosterhof/kippo/contributors","subscribers_url":"https://api.github.com/repos/micheloosterhof/kippo/subscribers","subscription_url":"https://api.github.com/repos/micheloosterhof/kippo/subscription","commits_url":"https://api.github.com/repos/micheloosterhof/kippo/commits{/sha}","git_commits_url":"https://api.github.com/repos/micheloosterhof/kippo/git/commits{/sha}","comments_url":"https://api.github.com/repos/micheloosterhof/kippo/comments{/number}","issue_comment_url":"https://api.github.com/repos/micheloosterhof/kippo/issues/comments{/number}","contents_url":"https://api.github.com/repos/micheloosterhof/kippo/contents/{+path}","compare_url":"https://api.github.com/repos/micheloosterhof/kippo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micheloosterhof/kippo/merges","archive_url":"https://api.github.com/repos/micheloosterhof/kippo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micheloosterhof/kippo/downloads","issues_url":"https://api.github.com/repos/micheloosterhof/kippo/issues{/number}","pulls_url":"https://api.github.com/repos/micheloosterhof/kippo/pulls{/number}","milestones_url":"https://api.github.com/repos/micheloosterhof/kippo/milestones{/number}","notifications_url":"https://api.github.com/repos/micheloosterhof/kippo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micheloosterhof/kippo/labels{/name}","releases_url":"https://api.github.com/repos/micheloosterhof/kippo/releases{/id}","created_at":"2014-08-18T12:17:16Z","updated_at":"2015-03-16T08:33:56Z","pushed_at":"2015-03-15T07:10:27Z","git_url":"git://github.com/micheloosterhof/kippo.git","ssh_url":"git@github.com:micheloosterhof/kippo.git","clone_url":"https://github.com/micheloosterhof/kippo.git","svn_url":"https://github.com/micheloosterhof/kippo","homepage":"","size":3780,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24"},"html":{"href":"https://github.com/micheloosterhof/kippo/pull/24"},"issue":{"href":"https://api.github.com/repos/micheloosterhof/kippo/issues/24"},"comments":{"href":"https://api.github.com/repos/micheloosterhof/kippo/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/micheloosterhof/kippo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/micheloosterhof/kippo/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/micheloosterhof/kippo/statuses/c2f0db4c557e0074a8573029e36e84b288a18231"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":379,"deletions":37,"changed_files":3}}