metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

Typo in zsh completion file _msfvenom causes error on --arch completion

Open FalcoGer opened this issue 2 years ago • 1 comments

Issue

There is a typo in /external/zsh/_msfvenom on line 234.

{-a,--arch}"[The architecture to use for --payload and --encoders (use --list archs to list)]:architecture:_msfvenom_archs" \

should be

{-a,--arch}"[The architecture to use for --payload and --encoders (use --list archs to list)]:architecture:_msfvenom_arch" \

This causes the lookup to fail.

Steps to reproduce

  1. Enable the ZSH completion script for msfvenom
  2. Type msfvenom --arch and hit tab
  3. ??
  4. No profit.

Expected behavior

I'm presented with a list to pick from

Current behavior

msfvenom --arch …_msfvenom_archs: command not found
_msfvenom_archs: command not found
_msfvenom_archs: command not found

FalcoGer avatar Jul 30 '22 03:07 FalcoGer

Yup, I was able to reproduce this. I'll get a fix submitted shortly.

smcintyre-r7 avatar Aug 18 '22 15:08 smcintyre-r7