天天看點

w3af的安裝(附pysvn的安裝)

1:安裝python,一般redhl自帶,無需安裝。

2:安裝w3af

cd w3af/extlib/fpconst-0.7.2
python setup.py install
cd SOAPpy
python setup.py install
cd pyPdf
python setup.py install
           

3:nltk pyOpenSSL lxml pysvn scapy 的安裝:

       一) wget http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz

        tar -xzvf PyYAML-3.09.tar.gz

        cd PyYAML-3.09

        python setup.py install

        cd ..

       二)wget http://nltk.googlecode.com/files/nltk-2.0b9.tar.gz

        tar -xzvf nltk-2.0b9.tar.gz

        cd nltk-2.0b9

        python setup.py install

       三)  yum install pyOpenSSL

       四) yum install python-lxml

       五) 如下:

I have Python 2.6.6 installed on RHEL 6, and when I tried to install pysvn-1.7.6, I got an error. What should I do?

/search/python/pysvn-1.7.6/Import/pycxx-6.2.4/CXX/Python2/Objects.hxx:2912: warning: deprecated conversion from string constant to 'char*'
	Compile: pysvn_svnenv.cpp into pysvn_svnenv.o
	Compile: pysvn_profile.cpp into pysvn_profile.o
	Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxxsupport.cxx into cxxsupport.o
	Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxx_extensions.cxx into cxx_extensions.o
	Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/cxxextensions.c into cxxextensions.o
	Compile: /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/Src/IndirectPythonInterface.cxx into IndirectPythonInterface.o
	Link pysvn/_pysvn_2_7.so
	make: *** No rule to make target `egg'.  Stop.
	error: Not a URL, existing file, or requirement spec: 'dist/pysvn-1.7.6-py2.7-linux-x86_64.egg'
           

在pysvn的解壓包下的INSTALL.html:

Building on unix and Mac OS X systems.

  1. Install subversion. 

    When installing from packages you will need to install the devel packages as well. For example on Fedora/Redhat subversion-devel, apr-devel, apr-util-devel and their dependancies.

  2. Get the pysvn source code
  3. For Python 2 or Python 3 builds: 

    tar xzf pycxx-6.2.4.tar.gz

     into extdir/Import if not using a source kit
  4. cd Source

  5. For Python 2.6 or earlier builds: backport the PySVN code using 

    python setup.py backport

  6. Create the Makefile using 

    python setup.py configure

  7. make

  8. cd Tests

  9. Test pysvn by running 

    make

Install pysvn by copying the following from Extension/Source to python site-specific directory.

  • mkdir python-libdir/site-packages/pysvn

  • cp pysvn/__init__.py python-libdir/site-packages/pysvn

  • cp pysvn/_pysvn*.so python-libdir/site-packages/pysvn

以上方法有的回帖說解決了,但是我的還是不成功,最後使用:

1: yum install epel-release-6-8.noarch.rpm

2:  yum install pysvn

 安裝上了。

  六)下載下傳pybloomfiltermmap.rpm的包安裝 從 http://pypi.python.org/pypi/pybloomfiltermmap/0.2.0。(提示不存在使用者mockbuild,使用useradd mockbuild即可)

  七)cd w3af , 然後 ./w3af_gui圖像界面

     ./w3af_console 指令行界面,w3af>>>help檢視。

  w3af即安裝成功。

 在配置就緒後即刻啟動

 圖形界面基本無腦操作,就說控制台好了,鍵入指令target

 然後設定目标位址

 set target http://xxxxxxx

 鍵入back傳回上層

 鍵入start開始啟用

reference:http://www.freebuf.com/articles/5472.html