security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method >PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method > <http-method>OPTIONS</http-method> <http-method>TRACE</http-method>
web.xml中即可: <security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method >PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> <http-method >OPTIONS</http-method> <http-method>TRACE</http-method> </web-resource-collection> <auth-constraint
security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method >PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method > <http-method>OPTIONS</http-method> <http-method>TRACE</http-method>
}方法请求的{path}路径必须具备什么{expression} spec-list: - http-method: ANY path: /login expression : "anon()" - http-method: ANY path: /user expression: "hasAnyRoles('user','admin')" - http-method: GET path: /error expression: "anon()" - http-method: ANY path: / light-security: # 权限规则配置:表示用{http-method}方法请求的{path}路径必须具备什么{expression} spec-list: - http-method : "hasAnyRoles('user','admin')" - http-method: GET path: /error expression: "anon()"
Area</web-resource-name> 5 <url-pattern>/jsp/security/protected/*</url-pattern> 6 <http-method >DELETE</http-method> 7 <http-method>GET</http-method> 8 <http-method>POST</http-method > 9 <http-method>PUT</http-method> 10 </web-resource-collection> 11 <auth-constraint
security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method >PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method > <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> </web-resource-collection
<web-resource-name>Disable TRACE</web-resource-name> <url-pattern>/</url-pattern> <http-method >TRACE</http-method> </web-resource-collection> <auth-constraint/> </security-constraint>
web-resource-name>ProtectedArea</web-resource-name> <url-pattern>/admin/*</url-pattern> <http-method >GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint
AllowOverride一般都是默认为None,不去使用.htaccess文件 Required是允许权限,all就是谁都可以访问,也可以设置仅允许某些请求方式来进行访问,语法为: Require method http-method [http-method] 也可以设置某些ip网段去访问
web-resource-name> <url-pattern>/jsp/security/protected/*</url-pattern> <http-method >DELETE</http-method> <http-method>GET</http-method> <http-method>POST</http-method > <http-method>PUT</http-method> </web-resource-collection> <auth-constraint
:put $WANip" file="ddns.tmp"; :log info ("CF: 开始更新解析记录, 设置 $CFDomain = $WANip") /tool fetch http-method = $WANip") :log info ("CF: 请求CFurl = $CFurl&content=$WANip") :log info ("CF: 执行命令 = \"/tool fetch http-method = $WANip) do={ :log info ("CF: 开始更新解析记录, 设置 $CFDomain = $WANip") /tool fetch http-method=put mode=https
web-resource-name>Secure Area</web-resource-name> <url-pattern>/secure/*</url-pattern> <http-method >GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint web-resource-name>Restricted methods</web-resource-name> <url-pattern>/*</url-pattern> <http-method >PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> </web-resource-collection
– 描 述了度可与URL模式指定的资源哪些方法是受约束的,如果没有<http-method>元素,表示任何角色的人都无法访问任何http的方 法 。这里放置了GET方法,表示只有GET方法是受约束的。 –> <http-method>GET</http-method> </web-resource-collection> <!
Require all denied 拒绝所有 Require env env-var [env-var] … 只有在给定的环境变量被设置的情况下才允许访问 Require method http-method [http-method] … 允许特定的HTTP方法(GET/POST/HEAD/OPTIONS) Require expr expression 允许特定表达式为true时 Require
-d Post data FUZZ need "FUZZ" word in data , data,usage:"username=admin&password=FUZZ" -X http-method
<web-resource-name>Disable TRACE</web-resource-name> <url-pattern>/</url-pattern> <http-method >TRACE</http-method> </web-resource-collection> <auth-constraint/> </security-constraint>
--http-method>GET</http-method--> </web-resource-collection> <auth-constraint> <role-name <web-resource-name>Disable TRACE</web-resource-name> <url-pattern>/*</url-pattern> <http-method >TRACE</http-method> </web-resource-collection> <auth-constraint /> </security-constraint>
http-proxy=HTTPPROXY Http代理 (example: localhost:8080 --http-method
<web-resource-name>Disable TRACE</web-resource-name> <url-pattern>/</url-pattern> <http-method >TRACE</http-method> </web-resource-collection> <auth-constraint/> </security-constraint>
,admin# suffixes = ~,.bak# wordlists = /path/to/wordlist1.txt,/path/to/wordlist2.txt[request]http-method