iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Automated Audit usin
  • 388
分享到

Automated Audit usin

AutomatedAuditusin 2023-01-31 00:01:10 388人浏览 泡泡鱼

Python 官方文档:入门教程 => 点击学习

摘要

  This type of article aims to provide to development team a easy/quick way to perfORM automated audit test

 


This type of article aims to provide to development team a easy/quick way to
 perfORM automated audit tests against their WEB application projects over implementation phase.

Contents

  • 1 Description
  • 2 Script content
  • 3 Script run
  • 4 Script edition
  • 4.1 Highlighter content
  • 4.2 Highlighter import

Description

This page have to objective to show a W3AF sample script to automate audit of a web application.

W3AF is a free and open source Web Application Attack and Audit Framework (W3AF homepage).

This script do not replace a manual audit but can be useful to perform a first validation.

Script content


# -----------------------------------------------------------------------------------------------------------
#                                              W3AF AUDIT SCRIPT FOR WEB APPLICATION
# -----------------------------------------------------------------------------------------------------------
Http-settings
set timeout 60
back
plugins
# Step 1 : Configure DISCOVERY plugins
discovery serverHeader, dotnetErrors, webSpider
discovery config serverHeader
set execOneTime True
back
discovery config webSpider
set onlyForward False
set followRegex .*
back
# Step 2 : Configure AUDIT plugins
audit LDapi,eval,frontpage,generic,globalRedirect,phishingVector,responseSplitting,sqli,xpath,xsrf,xss,xst
audit config xss
set numberOfChecks 15
back
# Step 3 : Configure GREP plugins
grep error500, domXss, metaTags, dotNetEventValidation, findComments, pathDisclosure, collectCookies, errorPages, httpAuthDetect
grep config domXss
set simpleGrep False
set smartGrep True
back
grep config metaTags
set search404 False
back
grep config findComments
set search404 False
back
# Step 4 : Configure OUTPUT plugins
output htmlFile
output config htmlFile
set fileName /tmp/W3afReport.html
set verbose False
back
back
# Step 5 : Define target URL
target
set target PUT_YOUR_SITE_URL_HERE
back
# Step 6 : Start audit
start
exit

Script run


./w3af_console ­-s MyScript.w3af

After the script runs, the audit report is available in the location defined in clause "set fileName" ("/tmp/W3afReport.html" in the script example).

Script edition

Highlighter content

You can find below a highlighter for Notepad++ in order to help to edit W3AF script (copy/paste content into a file and import it into Notepad++).


<NotepadPlus>
    <UserLang name="W3AF" ext="w3af">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="no" />
            <Prefix Words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators"></Keywords>
            <Keywords name="Comment"> 1 2 0#</Keywords>
            <Keywords name="Words1">start plugins exploit profiles http­settings misc­settings 
target back assert help version keys view set</Keywords>
            <Keywords name="Words2">mangle evasion discovery grep bruteforce audit output</Keywords>
            <Keywords name="Words3"></Keywords>
            <Keywords name="Words4"></Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fGColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="000080" bgColor="FFFFFF" fontStyle="3" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="800040" bgColor="FFFFFF" fontStyle="3" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008040" bgColor="FFFFFF" fontStyle="1" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

Highlighter import

Step 1 : Import file into User-Defined Dialogue

ImportCustomHighlighterIntoNPP.png


Step 2 : Select W3AF language for a script

NewHighlighterSelection.png

 

--结束END--

本文标题: Automated Audit usin

本文链接: https://www.lsjlt.com/news/182966.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Automated Audit usin
      This type of article aims to provide to development team a easy/quick way to perform automated audit test...
    99+
    2023-01-31
    Automated Audit usin
  • ORACLE AUDIT
    审计(Audit)用于监视用户所执行的数据库操作,并且Oracle 会将审计跟踪结果存放到OS 文件(默认位置为$ORACLE_BASE/admin /$ORACLE_SID/adump/),或数据库(...
    99+
    2022-10-18
  • ORACLE AUDIT审计(1)
    审计(Audit)用于监视用户所执行的数据库操作,并且Oracle 会将审计跟踪结果存放到OS 文件(默认位置为$ORACLE_BASE/admin /$ORACLE_SID/adump/),或数据库(...
    99+
    2022-10-18
  • Audit by access VS by session
    ENV[oracle@daidai ~]$ uname -a Linux daidai.com 2.6.18-194.el5 #1 SM...
    99+
    2022-10-18
  • audit详细使用配置
    audit是什么 Linux audit通过分析系统上正在发生的细节信息,能够有效帮助您提高系统的安全。但是,它本身不提供额外的安全性保障----它不会保护你的系统免受代码故障或者任何类型的漏洞攻击。...
    99+
    2023-09-15
    服务器 linux 运维
  • 关于MSSQL audit记录1
    点击(此处)折叠或打开 ...
    99+
    2022-10-18
  • audit审计方法是什么
    本篇内容介绍了“audit审计方法是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成! audit_t...
    99+
    2022-10-19
  • SSH服务审计工具ssh-audit
    SSH服务审计工具ssh-audit...
    99+
    2023-06-04
  • 【MySQL】数据库审计--MariaDB Audit Plugin
    [root@wallet01 ~]# cd /usr/lib64/mysql/plugin [root@wallet01 plugin]# chmod a+x server_audit.so [root@...
    99+
    2022-10-18
  • 解决提示“npm audit fix“问题
    一、问题 最近在自学React Native,在使用npm安装一些第三方库的时候,发现总是报错。例如 我只是想安装react-native-screens 和react-native-safe-area-context,然而它总是提醒我必...
    99+
    2023-08-18
    npm react.js react native
  • MySQL5.6 audit审计插件如何安装
    小编给大家分享一下MySQL5.6 audit审计插件如何安装,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧! ...
    99+
    2022-10-18
  • MySQL审计插件MariaDB Audit Plugin学习总结
    MySQL的社区版没有审计功能,企业版才有审计功能。企业版中自带 Audit Plugin ,名为audit_log.so。但是其它MySQL分支版本也开发了各自的审计功能插件。最常见的就是Percona Audit Log Pl...
    99+
    2016-09-24
    MySQL审计插件MariaDB Audit Plugin学习总结
  • MySQL数据库中如何使用Audit插件
    这篇文章将为大家详细讲解有关MySQL数据库中如何使用Audit插件,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。  MySQL数据库Audit插件怎么使用...
    99+
    2022-10-18
  • ORA-09817: Write to audit file failed 报错解决办法
    上午开虚拟机登录数据库的时候,突然就报错:ORA-09817: Write to audit file failed写入失败?不会是磁盘满了吧?当然,no space left on device提示的很明...
    99+
    2022-10-18
  • Solaris下Oracle RAC 报ORA-09925 unable to create audit-- no space
        Solaris下Oracle RAC 报ORA-09925 unable to create audit-- no space   接到开发回应,s...
    99+
    2022-10-18
  • Percona Audit Log Plugin实现对mysql 审计的操作步骤
    下文给大家带来有关Percona Audit Log Plugin实现对mysql 审计的操作步骤内容,相信大家一定看过类似的文章。我们给大家带来的有何不同呢?一起来看看正文部分吧,相信看完Percona ...
    99+
    2022-10-18
  • Spring Data JPA的Audit功能审计数据库的变更
    目录1 数据库审计2 Spring Data JPA审计2.1 项目准备2.2 创建实体父类2.3 如何获取名字2.4 测试3 总结我最新最全的文章都在 南瓜慢说 www.pkslo...
    99+
    2022-11-12
  • python的pip-audit安全漏洞扫描工具怎么用
    今天小编给大家分享一下python的pip-audit安全漏洞扫描工具怎么用的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。关...
    99+
    2023-06-29
  • ORA-12431: invalid audit action ORACLE 报错 故障修复 远程处理
    文档解释 ORA-12431: invalid audit action Cause: The specified audit action was not a valid audit action. Action: Correct the...
    99+
    2023-11-05
    报错 故障 invalid
  • ORA-12426: invalid audit option ORACLE 报错 故障修复 远程处理
    文档解释 ORA-12426: invalid audit option Cause: The option specified was not a valid audit option for the specified policy. ...
    99+
    2023-11-05
    报错 故障 invalid
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作