Skip to content

Commit

Permalink
Update svn-exposed.bcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah-PortSwigger authored Feb 8, 2024
1 parent a4645c7 commit 21097fc
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions other/files/svn-exposed.bcheck
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ run for each:
potential_path = ".svn/entries", ".svn/text", ".svn/all-wcprops"

given path then
# replace the potential path with the last path
# like if the path is `/v1/settings/public`. it will be convert to `/v1/settings/{potential_path}`
if not({base.request.url.path} is "/") then
if {base.request.url.path} is "/" then
# replace the potential path with entire URI
send request called check:
method: "GET"
replacing path: `{regex_replace({base.request.url}, "^.*", "")}/{potential_path}`
else then
# replace the potential path with the last path
# like if the path is `/v1/settings/public`. it will be convert to `/v1/settings/{potential_path}`
send request called check1:
method: "GET"
replacing path: `{regex_replace({regex_replace({base.request.url}, "^.*?\/.*?\/.*?\/", "/")}, "([^/]+)$", "")}{potential_path}`

end if

# replace the potential path with entire URI
send request called check1:
method: "GET"
replacing path: `{regex_replace({base.request.url}, "^.*", "")}/{potential_path}`

if {latest.response.status_code} is "200" then
if ("END" in {latest.response.body} and
Expand Down

0 comments on commit 21097fc

Please sign in to comment.