{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5354","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5354/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5354/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5354/events","html_url":"https://github.com/rapid7/metasploit-framework/pull/5354","id":77237412,"number":5354,"title":"Configure transport from stager mixin","user":{"login":"sempervictus","id":1331084,"avatar_url":"https://avatars.githubusercontent.com/u/1331084?v=3","gravatar_id":"","url":"https://api.github.com/users/sempervictus","html_url":"https://github.com/sempervictus","followers_url":"https://api.github.com/users/sempervictus/followers","following_url":"https://api.github.com/users/sempervictus/following{/other_user}","gists_url":"https://api.github.com/users/sempervictus/gists{/gist_id}","starred_url":"https://api.github.com/users/sempervictus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempervictus/subscriptions","organizations_url":"https://api.github.com/users/sempervictus/orgs","repos_url":"https://api.github.com/users/sempervictus/repos","events_url":"https://api.github.com/users/sempervictus/events{/privacy}","received_events_url":"https://api.github.com/users/sempervictus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-17T07:04:25Z","updated_at":"2015-05-17T07:15:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5354","html_url":"https://github.com/rapid7/metasploit-framework/pull/5354","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5354.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5354.patch"},"body":"Transport configuration for basic session types can be performed\r\nby the stager mixin.\r\n\r\nAdd a default transport_config method to Msf::Payload::Stager by\r\nmixing in Msf::Payload::TransportConfig and attempting to guess\r\nthe default transport and direction types from the currently loaded\r\nmodule's (MSF module) refname.\r\n\r\nUsers with custom payloads will no longer need to update them with\r\ntransport_config methods unless they use a non standard transport,\r\ndirection, or other innovation which affects the default approach.\r\n\r\nTesting:\r\n  Tested with payloads lacking transport_config methods or access\r\nto the TransportConfig module (Ruby) namespace. This also resolves\r\nproblems with the RC4 payloads in upstream as they can't currently\r\ngenerate stagers for meterpreter."},"comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/102757884","html_url":"https://github.com/rapid7/metasploit-framework/pull/5354#issuecomment-102757884","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5354","id":102757884,"user":{"login":"sempervictus","id":1331084,"avatar_url":"https://avatars.githubusercontent.com/u/1331084?v=3","gravatar_id":"","url":"https://api.github.com/users/sempervictus","html_url":"https://github.com/sempervictus","followers_url":"https://api.github.com/users/sempervictus/followers","following_url":"https://api.github.com/users/sempervictus/following{/other_user}","gists_url":"https://api.github.com/users/sempervictus/gists{/gist_id}","starred_url":"https://api.github.com/users/sempervictus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempervictus/subscriptions","organizations_url":"https://api.github.com/users/sempervictus/orgs","repos_url":"https://api.github.com/users/sempervictus/repos","events_url":"https://api.github.com/users/sempervictus/events{/privacy}","received_events_url":"https://api.github.com/users/sempervictus/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T07:15:14Z","updated_at":"2015-05-17T07:15:14Z","body":"'Evening sir. Of course, it addresses such fun as:\r\n```\r\n(2015-05-17)02:35 (S:0 J:4)msf > use payload/windows/meterpreter/reverse_tcp_rc4\r\n(2015-05-17)02:35 (S:0 J:4)msf  payload(reverse_tcp_rc4) > set LHOST 10.1.1.10\r\nLHOST => 10.1.1.10\r\n(2015-05-17)02:35 (S:0 J:4)msf  payload(reverse_tcp_rc4) > generate\r\n[-] Payload generation failed: undefined method `transport_config_reverse_tcp' for #<#<Class:0x00000002023968>:0x000000021e6e30>\r\n```"}}