{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/10501","repository_url":"https://api.github.com/repos/rapid7/metasploit-framework","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/10501/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/10501/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/10501/events","html_url":"https://github.com/rapid7/metasploit-framework/issues/10501","id":352374570,"node_id":"MDU6SXNzdWUzNTIzNzQ1NzA=","number":10501,"title":"No --encrypt option in msfvenom ","user":{"login":"Green-m","id":22535454,"node_id":"MDQ6VXNlcjIyNTM1NDU0","avatar_url":"https://avatars3.githubusercontent.com/u/22535454?v=4","gravatar_id":"","url":"https://api.github.com/users/Green-m","html_url":"https://github.com/Green-m","followers_url":"https://api.github.com/users/Green-m/followers","following_url":"https://api.github.com/users/Green-m/following{/other_user}","gists_url":"https://api.github.com/users/Green-m/gists{/gist_id}","starred_url":"https://api.github.com/users/Green-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Green-m/subscriptions","organizations_url":"https://api.github.com/users/Green-m/orgs","repos_url":"https://api.github.com/users/Green-m/repos","events_url":"https://api.github.com/users/Green-m/events{/privacy}","received_events_url":"https://api.github.com/users/Green-m/received_events","type":"User","site_admin":false},"labels":[{"id":124421898,"node_id":"MDU6TGFiZWwxMjQ0MjE4OTg=","url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/bug","name":"bug","color":"e11d21","default":true},{"id":156918134,"node_id":"MDU6TGFiZWwxNTY5MTgxMzQ=","url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/msfvenom","name":"msfvenom","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":{"login":"jmartin-r7","id":7873740,"node_id":"MDQ6VXNlcjc4NzM3NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7873740?v=4","gravatar_id":"","url":"https://api.github.com/users/jmartin-r7","html_url":"https://github.com/jmartin-r7","followers_url":"https://api.github.com/users/jmartin-r7/followers","following_url":"https://api.github.com/users/jmartin-r7/following{/other_user}","gists_url":"https://api.github.com/users/jmartin-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartin-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartin-r7/subscriptions","organizations_url":"https://api.github.com/users/jmartin-r7/orgs","repos_url":"https://api.github.com/users/jmartin-r7/repos","events_url":"https://api.github.com/users/jmartin-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jmartin-r7/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmartin-r7","id":7873740,"node_id":"MDQ6VXNlcjc4NzM3NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/7873740?v=4","gravatar_id":"","url":"https://api.github.com/users/jmartin-r7","html_url":"https://github.com/jmartin-r7","followers_url":"https://api.github.com/users/jmartin-r7/followers","following_url":"https://api.github.com/users/jmartin-r7/following{/other_user}","gists_url":"https://api.github.com/users/jmartin-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartin-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartin-r7/subscriptions","organizations_url":"https://api.github.com/users/jmartin-r7/orgs","repos_url":"https://api.github.com/users/jmartin-r7/repos","events_url":"https://api.github.com/users/jmartin-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jmartin-r7/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-08-21T03:42:44Z","updated_at":"2018-12-10T03:40:46Z","closed_at":"2018-08-21T15:23:41Z","author_association":"CONTRIBUTOR","body":"## Steps to reproduce\r\n\r\nInstall the latest version metasploit by `apt-get update; apt install metasploit-framework`.\r\nRun\r\n `msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 --encrypt rc4 --encrypt-key thisisakey -f c` \r\nand got a error: \r\n`Error: Invalid option`\r\n\r\nBut in the msf5 the option existed.\r\n\r\nrelevant: #9869 #10480 #10029 \r\n\r\n## Expected behavior\r\n\r\nmsf5\r\n```\r\nroot@sssss-debian-tor1:~/msf_dev/metasploit-framework# ./msfvenom -h\r\nMsfVenom - a Metasploit standalone payload generator.\r\nAlso a replacement for msfpayload and msfencode.\r\nUsage: ./msfvenom [options] <var=val>\r\nExample: ./msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> -f exe -o payload.exe\r\n\r\nOptions:\r\n    -l, --list            <type>     List all modules for [type]. Types are: payloads, encoders, nops, platforms, encrypt, formats, all\r\n    -p, --payload         <payload>  Payload to use (--list payloads to list, --list-options for arguments). Specify '-' or STDIN for custom\r\n        --list-options               List --payload <value>'s standard, advanced and evasion options\r\n    -f, --format          <format>   Output format (use --list formats to list)\r\n    -e, --encoder         <encoder>  The encoder to use (use --list encoders to list)\r\n        --smallest                   Generate the smallest possible payload using all available encoders\r\n        --encrypt         <value>    The type of encryption or encoding to apply to the shellcode (use --list encrypt to list)\r\n        --encrypt-key     <value>    A key to be used for --encrypt\r\n        --encrypt-iv      <value>    An initialization vector for --encrypt\r\n    -a, --arch            <arch>     The architecture to use for --payload and --encoders\r\n        --platform        <platform> The platform for --payload (use --list platforms to list)\r\n    -o, --out             <path>     Save the payload to a file\r\n    -b, --bad-chars       <list>     Characters to avoid example: '\\x00\\xff'\r\n    -n, --nopsled         <length>   Prepend a nopsled of [length] size on to the payload\r\n    -s, --space           <length>   The maximum size of the resulting payload\r\n        --encoder-space   <length>   The maximum size of the encoded payload (defaults to the -s value)\r\n    -i, --iterations      <count>    The number of times to encode the payload\r\n    -c, --add-code        <path>     Specify an additional win32 shellcode file to include\r\n    -x, --template        <path>     Specify a custom executable file to use as a template\r\n    -k, --keep                       Preserve the --template behaviour and inject the payload as a new thread\r\n    -v, --var-name        <value>    Specify a custom variable name to use for certain output formats\r\n    -t, --timeout         <second>   The number of seconds to wait when reading the payload from STDIN (default 30, 0 to disable)\r\n    -h, --help                       Show this message\r\n```\r\n\r\n## Current behavior\r\n\r\nNo `--encrypt` option.\r\nVerison: `Framework Version: 4.17.6-dev-`\r\n```\r\nroot@sssss-debian-tor1:~# msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 --encrypt rc4 --encrypt-key thisisakey -f c\r\nError: Invalid option\r\nMsfVenom - a Metasploit standalone payload generator.\r\nAlso a replacement for msfpayload and msfencode.\r\nUsage: /opt/metasploit-framework/bin/../embedded/framework/msfvenom [options] <var=val>\r\n\r\nOptions:\r\n    -l, --list            <type>     List all modules for [type]. Types are: payloads, encoders, nops, platforms, formats, all\r\n    -p, --payload         <payload>  Payload to use (--list payloads to list, --list-options for arguments). Specify '-' or STDIN for custom\r\n        --list-options               List --payload <value>'s standard, advanced and evasion options\r\n    -f, --format          <format>   Output format (use --list formats to list)\r\n    -e, --encoder         <encoder>  The encoder to use (use --list encoders to list)\r\n        --smallest                   Generate the smallest possible payload using all available encoders\r\n    -a, --arch            <arch>     The architecture to use for --payload and --encoders\r\n        --platform        <platform> The platform for --payload (use --list platforms to list)\r\n    -o, --out             <path>     Save the payload to a file\r\n    -b, --bad-chars       <list>     Characters to avoid example: '\\x00\\xff'\r\n    -n, --nopsled         <length>   Prepend a nopsled of [length] size on to the payload\r\n    -s, --space           <length>   The maximum size of the resulting payload\r\n        --encoder-space   <length>   The maximum size of the encoded payload (defaults to the -s value)\r\n    -i, --iterations      <count>    The number of times to encode the payload\r\n    -c, --add-code        <path>     Specify an additional win32 shellcode file to include\r\n    -x, --template        <path>     Specify a custom executable file to use as a template\r\n    -k, --keep                       Preserve the --template behaviour and inject the payload as a new thread\r\n    -v, --var-name        <value>    Specify a custom variable name to use for certain output formats\r\n    -t, --timeout         <second>   The number of seconds to wait when reading the payload from STDIN (default 30, 0 to disable)\r\n    -h, --help                       Show this message\r\n```\r\n\r\n\r\n## System stuff\r\n\r\n### Metasploit version\r\n\r\nVerison: `Framework Version: 4.17.6-dev-`\r\n\r\n### I installed Metasploit with:\r\n- [x] Kali package via apt\r\n- [ ] Omnibus installer (nightly)\r\n- [ ] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)\r\n- [ ] Source install (please specify ruby version)\r\n\r\n### OS\r\n\r\n```\r\nLinux sssss-debian-tor1 4.15.12-041512-generic #201803211230 SMP Wed Mar 21 12:32:19 UTC 2018 x86_64 GNU/Linu\r\n```\r\n\r\n@wvu-r7 @jmartin-r7 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/445657961","html_url":"https://github.com/rapid7/metasploit-framework/issues/10501#issuecomment-445657961","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/10501","id":445657961,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTY1Nzk2MQ==","user":{"login":"Green-m","id":22535454,"node_id":"MDQ6VXNlcjIyNTM1NDU0","avatar_url":"https://avatars3.githubusercontent.com/u/22535454?v=4","gravatar_id":"","url":"https://api.github.com/users/Green-m","html_url":"https://github.com/Green-m","followers_url":"https://api.github.com/users/Green-m/followers","following_url":"https://api.github.com/users/Green-m/following{/other_user}","gists_url":"https://api.github.com/users/Green-m/gists{/gist_id}","starred_url":"https://api.github.com/users/Green-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Green-m/subscriptions","organizations_url":"https://api.github.com/users/Green-m/orgs","repos_url":"https://api.github.com/users/Green-m/repos","events_url":"https://api.github.com/users/Green-m/events{/privacy}","received_events_url":"https://api.github.com/users/Green-m/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T03:40:46Z","updated_at":"2018-12-10T03:40:46Z","author_association":"CONTRIBUTOR","body":"\r\n\r\n> Is there a release package for `msf5`? or the only way is to `git clone` branch:master?\r\n\r\nFor now, msf5 only support for `git clone` to install."}}
{"actor":{"display_login":"Green-m"}}