python - How do i run nikto.pl file from wapiti.py file? -
i working on project involves wapiti , nikto web tools. have managed produce 1 report both these tool command
python wapiti.py www.kca.ac.ke ;perl nikto.pl -h www.kca.ac.ke -display v -f htm -output /root/.wapiti/generated_report/index.html.
but run command
python wapiti.py www.kca.ac.ke
and both wapiti , nikto web scan report. how achieve guys?
a shell script work. save following 'run_wapiti_and_nikto_scans', run as:
bash run_wapiti_and_nikto_scans www.my.site.com
here script:
#!/bin/bash site=$1 if [ -n "$site" ]; # -n tests see if argument non empty echo "looking scan $site" echo "running 'python wapiti.py $site'" python wapiti.py $site || echo "failed run wapiti!" && exit 1; echo "running 'perl nikto.pl -h $site -display v -f htm -output /root/.wapiti/generated_report/index.html'" perl nikto.pl -h $site -display v -f htm -output /root/.wapiti/generated_report/index.html || echo "failed run nikto!" && exit 1; echo "done!" exit 0; # success fi echo "usage: run_wapiti_and_nikto_scans www.my.site.com"; exit 1; # failure
Comments
Post a Comment