Installation under Mac installation SQLmap

1、cd /usr/bin/

2, the sudo Git clone  https://github.com/sqlmapproject/sqlmap.git  SqlMap-dev
. 3, the input terminal and back on this information, press Enter.

  alias sqlmap=‘Python /usr/bin/sqlmap-dev/sqlmap.py‘


But when the implementation of the second order, wtf, incorrect report

You may encounter the following error:

1, the MAC OS error xcrun: error: invalid path Active Developer
2,

 
MAC mounted sqlmap

 

sudo chmond 777 / usr / bin does not work, had no choice but to go to Baidu unhappy, degree to degree, then one would simply own a mkdir forget
so, in the root directory, mkdir zyj
goes ok.

After Bahrain, closed terminal reopened found sqlmap input and gg, and
found Baidu under the alias to take effect, then you need to set it in ~ / .bash_profile file.
1) Open -e .bash_profile add

SqlMap = Alias ' the Python  /usr/bin/sqlmap-dev/sqlmap.py' ## is similar to the windows environment setting environment variables; (PS: Alias is Linux commonly used alias command, such a good stuff naturally in mac will not lay down. when some of the more complex commands need to perform frequently, alias immediate lifting of efficiency.)
It should be noted that the space can not appear before and after the equal sign.
2) Type in the root directory Source ~ / .bash_profile ## This command is arranged so that the bash just reload command takes effect.
3) After the need to use sqlmap, you only need to enter sqlmap in the terminal, the familiar interface out

 

 

 

Guess you like

Origin www.cnblogs.com/syw20170419/p/11518643.html