I am trying to make a alias in powershell that uses name of the parameter and a file in different directory, in alias I can set the python c:\sqlmap\sqlmap.py
but when I use the alias it just prints out the sqlmap first page instead of using the further parameters that sqlmap need to use
Set-Alias -Name sqlmap -Value 'python D:\tools\sqlmap-master\sqlmap.py'
or I tried the functional loop also
function sqlmap {
$current_dir = (get-lcoation).location
set-location 'D:\tools\sqlmap-master\'
python sqlmap.py
if ($?){
set-location current_dir
}
}
but none of them taking the arguments like sqlmap basic parameter is python sqlmap -u https:/web.com..... --dbs
how can I make this alias to let sqlmap independently... i want to reduce the use of going into directory and then running python sqlmap.py ...... everytime