{"action":"closed","number":6322,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6322","id":52800188,"html_url":"https://github.com/rapid7/metasploit-framework/pull/6322","diff_url":"https://github.com/rapid7/metasploit-framework/pull/6322.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/6322.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6322","number":6322,"state":"closed","locked":false,"title":"Add Legend Perl IRC Bot Remote Code Execution","user":{"login":"shipcod3","id":3483615,"avatar_url":"https://avatars.githubusercontent.com/u/3483615?v=3","gravatar_id":"","url":"https://api.github.com/users/shipcod3","html_url":"https://github.com/shipcod3","followers_url":"https://api.github.com/users/shipcod3/followers","following_url":"https://api.github.com/users/shipcod3/following{/other_user}","gists_url":"https://api.github.com/users/shipcod3/gists{/gist_id}","starred_url":"https://api.github.com/users/shipcod3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shipcod3/subscriptions","organizations_url":"https://api.github.com/users/shipcod3/orgs","repos_url":"https://api.github.com/users/shipcod3/repos","events_url":"https://api.github.com/users/shipcod3/events{/privacy}","received_events_url":"https://api.github.com/users/shipcod3/received_events","type":"User","site_admin":false},"body":"This module exploits a remote command execution on the Legend Perl IRC Bot () . This bot has been used as a payload in the Shellshock spam last October 2014. This particular bot has functionalities like NMAP scanning, TCP, HTTP, SQL, and UDP flooding, the ability to remove system logs, and ability to gain root, and VNC scanning. Kevin Stevens, a Senior Threat Researcher at Damballa  has uploaded this script to VirusTotal with a md5 of 11a9f1589472efa719827079c3d13f76.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3483615/11617758/e8e9408c-9ccd-11e5-99fe-b2e87dd85cd9.png)\r\n\r\nReferences\r\n- http://www.osvdb.org/121681\r\n- https://www.exploit-db.com/exploits/36836\r\n- https://www.damballa.com/perlbotnado/\r\n- http://www.csoonline.com/article/2839054/vulnerabilities/report-criminals-use-shellshock-against-mail-servers-to-build-botnet.html\r\n\r\nNotes:\r\n- The bot answers only based on the servername and nickname in the IRC message which is configured on the perl script thus you need to be an operator on the IRC network to spoof it and in order to exploit this bot or have at least the same ip to the config.\r\n- Legend Bot in Action on Metasploitable 2's IRC Server:\r\n![image](https://cloud.githubusercontent.com/assets/3483615/11617805/590509dc-9cce-11e5-9838-a1f102b87ab4.png)\r\n- Legend IRC Bot Sample Script: https://github.com/shipcod3/IRC-Bot-Hunters/blob/master/malicious_samples/legend.txt","created_at":"2015-12-07T02:37:57Z","updated_at":"2015-12-10T15:44:11Z","closed_at":"2015-12-10T15:44:11Z","merged_at":"2015-12-10T15:44:11Z","merge_commit_sha":"9f40227151ec5670ee496273a6166af363ec0da0","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6322/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6322/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/6322/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/b36834f4bc4f177004fc818d37fa85e5c9392151","head":{"label":"shipcod3:patch-15","ref":"patch-15","sha":"b36834f4bc4f177004fc818d37fa85e5c9392151","user":{"login":"shipcod3","id":3483615,"avatar_url":"https://avatars.githubusercontent.com/u/3483615?v=3","gravatar_id":"","url":"https://api.github.com/users/shipcod3","html_url":"https://github.com/shipcod3","followers_url":"https://api.github.com/users/shipcod3/followers","following_url":"https://api.github.com/users/shipcod3/following{/other_user}","gists_url":"https://api.github.com/users/shipcod3/gists{/gist_id}","starred_url":"https://api.github.com/users/shipcod3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shipcod3/subscriptions","organizations_url":"https://api.github.com/users/shipcod3/orgs","repos_url":"https://api.github.com/users/shipcod3/repos","events_url":"https://api.github.com/users/shipcod3/events{/privacy}","received_events_url":"https://api.github.com/users/shipcod3/received_events","type":"User","site_admin":false},"repo":{"id":38120759,"name":"metasploit-framework","full_name":"shipcod3/metasploit-framework","owner":{"login":"shipcod3","id":3483615,"avatar_url":"https://avatars.githubusercontent.com/u/3483615?v=3","gravatar_id":"","url":"https://api.github.com/users/shipcod3","html_url":"https://github.com/shipcod3","followers_url":"https://api.github.com/users/shipcod3/followers","following_url":"https://api.github.com/users/shipcod3/following{/other_user}","gists_url":"https://api.github.com/users/shipcod3/gists{/gist_id}","starred_url":"https://api.github.com/users/shipcod3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shipcod3/subscriptions","organizations_url":"https://api.github.com/users/shipcod3/orgs","repos_url":"https://api.github.com/users/shipcod3/repos","events_url":"https://api.github.com/users/shipcod3/events{/privacy}","received_events_url":"https://api.github.com/users/shipcod3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shipcod3/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/shipcod3/metasploit-framework","forks_url":"https://api.github.com/repos/shipcod3/metasploit-framework/forks","keys_url":"https://api.github.com/repos/shipcod3/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shipcod3/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shipcod3/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/shipcod3/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/shipcod3/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/shipcod3/metasploit-framework/events","assignees_url":"https://api.github.com/repos/shipcod3/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/shipcod3/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/shipcod3/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/shipcod3/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shipcod3/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shipcod3/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/shipcod3/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shipcod3/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/shipcod3/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/shipcod3/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/shipcod3/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/shipcod3/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/shipcod3/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/shipcod3/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/shipcod3/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/shipcod3/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/shipcod3/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/shipcod3/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/shipcod3/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shipcod3/metasploit-framework/merges","archive_url":"https://api.github.com/repos/shipcod3/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shipcod3/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/shipcod3/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/shipcod3/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/shipcod3/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/shipcod3/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shipcod3/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/shipcod3/metasploit-framework/releases{/id}","created_at":"2015-06-26T16:14:11Z","updated_at":"2015-06-26T16:14:33Z","pushed_at":"2015-12-07T02:38:36Z","git_url":"git://github.com/shipcod3/metasploit-framework.git","ssh_url":"git@github.com:shipcod3/metasploit-framework.git","clone_url":"https://github.com/shipcod3/metasploit-framework.git","svn_url":"https://github.com/shipcod3/metasploit-framework","homepage":"http://www.metasploit.com/","size":287964,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"66ba204c1129b6d251cbf632d549da08fec643b1","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-12-10T10:21:14Z","pushed_at":"2015-12-10T15:44:05Z","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":453055,"stargazers_count":4909,"watchers_count":4909,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3593,"mirror_url":null,"open_issues_count":235,"forks":3593,"open_issues":235,"watchers":4909,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6322"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/6322"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6322"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6322/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6322/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/6322/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/b36834f4bc4f177004fc818d37fa85e5c9392151"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":2,"review_comments":0,"commits":2,"additions":169,"deletions":0,"changed_files":1}}