Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

给 alias 添加命令行参数

wpadmin~January 10, 2020 /System Management

给 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

Your email address will not be published. Required fields are marked *