fixup! Web security audit base pipeline
This commit is contained in:
parent
002b1b22a3
commit
828d9ce4e8
|
@ -43,6 +43,14 @@ def call() {
|
|||
name: 'authFormCheckString',
|
||||
description: "Chaine de caractères à rechercher pour vérifier la réussite de l'authentication (si besoin)"
|
||||
)
|
||||
string(
|
||||
name: 'authFormUsernameField',
|
||||
description: "Nom du champ 'nom utilisateur' du formulaire d'authentication (si besoin)"
|
||||
)
|
||||
string(
|
||||
name: 'authFormPasswordField',
|
||||
description: "Nom du champ 'mot de passe' du formulaire d'authentication (si besoin)"
|
||||
)
|
||||
string(
|
||||
name: 'authFormDataFormat',
|
||||
description: "Patron de formatage des données POST du formulaire d'authentification (si besoin). Exemple: username=%U&password=%P"
|
||||
|
@ -54,14 +62,14 @@ def call() {
|
|||
stage("Check parameters") {
|
||||
steps {
|
||||
script {
|
||||
if (!params.url?.trim()) {
|
||||
if (!params.targetUrl?.trim()) {
|
||||
error("L'URL cible n'est pas définie !")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("Test URL") {
|
||||
stage("Run W3AF audit") {
|
||||
steps {
|
||||
script {
|
||||
def w3afImage = buildDockerImage()
|
||||
|
@ -75,7 +83,8 @@ def call() {
|
|||
-e W3AF_AUTH_FORM_PASSWORD='${params.authFormPassword}'
|
||||
-e W3AF_AUTH_FORM_CHECK_URL='${params.authFormCheckUrl}'
|
||||
-e W3AF_AUTH_FORM_CHECK_STRING='${params.authFormCheckString}'
|
||||
-e W3AF_AUTH_FORM_DATA_FORMAT='${params.authFormDataFormat}'
|
||||
-e W3AF_AUTH_FORM_USERNAME_FIELD='${params.authFormUsernameField}'
|
||||
-e W3AF_AUTH_FORM_PASSWORD_FIELD='${params.authFormPasswordField}'
|
||||
"""
|
||||
w3afImage.inside(dockerArgs) {
|
||||
sh 'mkdir reports'
|
||||
|
|
Loading…
Reference in New Issue