msfvenom生成时命令较多,方便生成参考大佬的文章,记录下

查看下kali linux 的支持的shell,已安装支持zsh

《Kali下Msfvenom命令自动补全》

官网地址:https://ohmyz.sh/,执行命令安装

sh -c “$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”

《Kali下Msfvenom命令自动补全》

切换到zsh界面

《Kali下Msfvenom命令自动补全》

安装自动补全脚本并查看是否安装成功

执行命令

git clone https://github.com/Green-m/msfvenom-zsh-completion ~/.oh-my-zsh/custom/plugins/msfvenom/

《Kali下Msfvenom命令自动补全》

修改配置~./zshrc

修改71行  与 最后添加两行

plugins=(git msfvenom)
fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit && compinit -i

《Kali下Msfvenom命令自动补全》

保存退出,执行 source  ~./zshrc

然后执行命令msfvenom 按Tab键

《Kali下Msfvenom命令自动补全》

《Kali下Msfvenom命令自动补全》

参考:

https://micro8.github.io/Micro8-HTML/Chapter1/21-30/30_%E8%A7%A3%E5%86%B3msfvenom%E5%91%BD%E4%BB%A4%E8%87%AA%E5%8A%A8%E8%A1%A5%E5%85%A8.html

https://cloud.tencent.com/developer/article/1512677