给 alias 添加命令行参数
正文
http://toy.linuxtoy.org/2012/03/20/pass-command-line-argument-to-alias.html
参考 alias
alias dirsearch='send_dirsearch() { python /Users/blkstone/Downloads/tools/dirsearch/dirsearch.py -e "php" -w ~/Downloads/tools/node-dirbuster/lists/directory-list-lowercase-2.3-medium.txt -u "$1" }; send_dirsearch'
alias dirserch-big='send_dirsearch_big() { python /Users/blkstone/Downloads/tools/dirsearch/dirsearch.py -e "php" -w ~/Downloads/tools/node-dirbuster/lists/directory-list-lowercase-2.3-big.txt -u "$1" }; send_dirsearch_big'
Leave a Reply