W3af

De Linuxmemo.

(Différences entre les versions)
(Script de démarrage)
(Install)
 
(13 versions intermédiaires masquées)
Ligne 1 : Ligne 1 :
[[Catégorie:Securite-outils]]
[[Catégorie:Securite-outils]]
 +
[[Catégorie:Web Server Scanner]]
http://w3af.org/
http://w3af.org/
Ligne 6 : Ligne 7 :
==Install==
==Install==
  git clone https://github.com/andresriancho/w3af.git
  git clone https://github.com/andresriancho/w3af.git
 +
sudo apt-get -y install python-pip
 +
sudo apt-get -y install npm libssl1.0-dev
 +
/tmp/w3af_dependency_install.sh
-
*Memo Python modules via proxy
+
*via proxy
  vim /tmp/w3af_dependency_install.sh
  vim /tmp/w3af_dependency_install.sh
ajouter le proxy en httpS
ajouter le proxy en httpS
Ligne 26 : Ligne 30 :
==Script de démarrage==
==Script de démarrage==
-
  vim basic.w3af
+
  vim basic.w3af # accepte les "#" en commentaires
   
   
  plugins
  plugins
-
output
 
  output config html_file
  output config html_file
  set output_file ~/w3af-report.html
  set output_file ~/w3af-report.html
-
  set verbose true
+
  set verbose False
 +
view
  back
  back
  output config console
  output config console
-
  set verbose true
+
  set verbose False
 +
view
  back
  back
 +
output html_file
 +
list output enabled
  back
  back
-
  #profiles
+
  profiles
-
  #use full_audit
+
  use full_audit
-
  #back
+
  back
-
  # could change this to audit all but just doing Cross Site Scripting Now
+
  target
-
#target
+
  set target  
-
  #set target http://localhost
+
   
-
  #back
+
-
#start
+
-
 
+
  ./w3af_console –s basic.w3af
  ./w3af_console –s basic.w3af
 +
 +
 +
view
 +
back
 +
output config console
 +
set verbose False
 +
view
 +
back
 +
output html_file
 +
list output enabled
 +
mangle !all
 +
infrastructure !all
 +
bruteforce !all
 +
audit !all
 +
auth !all
 +
evasion !all
 +
grep !all
 +
crawl !all
 +
crawl content_negotiation digit_sum dir_file_bruter dot_listing find_backdoors find_dvcs genexus_xml robots_txt sitemap_xml url_fuzzer urllist_txt user_dir web_spider wordnet wsdl_finder
==Utilisation de la console==
==Utilisation de la console==
*Plugins
*Plugins
  crawl desc phpinfo          # pour la description du plugins
  crawl desc phpinfo          # pour la description du plugins
-
  crawl phpinfo robots_txt   # pour l'activation d'un ou plusieurs plugins
+
  crawl phpinfo robots_txt     # pour l'activation d'un ou plusieurs plugins
 +
crawl !phpinfo              # pour désactiver un modules
 +
crawl all !phpinfo          # pour activer tout les modules sauf phpinfo
  audit config xss      # configuration d'un plugins
  audit config xss      # configuration d'un plugins

Version actuelle en date du 15 juillet 2020 à 14:30

http://w3af.org/

Framework d'Attaque et d'Audit d'Application Web (w3af),

Sommaire

[modifier] Install

git clone https://github.com/andresriancho/w3af.git
sudo apt-get -y install python-pip
sudo apt-get -y install npm libssl1.0-dev
/tmp/w3af_dependency_install.sh
  • via proxy
vim /tmp/w3af_dependency_install.sh

ajouter le proxy en httpS

sudo pip install --proxy "https://xxx.xxx.xxx.xxx:8080"  module

si nécessaire

sudo pip install --proxy "https://xxx.xxx.xxx.xxx:8080" --timeout 30 module

[modifier] Config

  • plugin output
w3af>>> plugins
w3af/plugins>>> output console,html_file
w3af/plugins>>> output config html_file
w3af/plugins/output/config:html_file>>>
w3af/plugins/output/config:html_file>>> help
w3af/plugins/output/config:html_file>>> view
w3af/plugins/output/config:html_file>>> save

output_file ~/report.html File name where this plugin will write to

[modifier] Script de démarrage

vim basic.w3af # accepte les "#" en commentaires

plugins
output config html_file
set output_file ~/w3af-report.html
set verbose False
view
back
output config console
set verbose False
view
back
output html_file
list output enabled
back
profiles
use full_audit
back
target
set target 

./w3af_console –s basic.w3af


view
back
output config console
set verbose False
view
back 
output html_file
list output enabled
mangle !all
infrastructure !all
bruteforce !all
audit !all
auth !all
evasion !all
grep !all
crawl !all
crawl content_negotiation digit_sum dir_file_bruter dot_listing find_backdoors find_dvcs genexus_xml robots_txt sitemap_xml url_fuzzer urllist_txt user_dir web_spider wordnet wsdl_finder

[modifier] Utilisation de la console

  • Plugins
crawl desc phpinfo           # pour la description du plugins
crawl phpinfo robots_txt     # pour l'activation d'un ou plusieurs plugins
crawl !phpinfo               # pour désactiver un modules
crawl all !phpinfo           # pour activer tout les modules sauf phpinfo
audit config xss      # configuration d'un plugins
view
|-----------------------------------------------------------------------------|
| Setting        | Value | Description                                        |
|-----------------------------------------------------------------------------|
| persistent_xss | True  | Identify persistent cross site scripting           |
|                |       | vulnerabilities                                    |
|-----------------------------------------------------------------------------|
set persistent_xss False
  • profiles
profiles
save_as tutorial self-contained
Profile saved.
~/.w3af/profiles
Outils personnels