Skip to content

Commit

Permalink
Check for multiple files with same prefix (#30)
Browse files Browse the repository at this point in the history
Check for multiple files with same prefix
  • Loading branch information
phra authored Jul 13, 2019
2 parents 400d6a5 + b24ac1f commit 67e8af9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/tilde-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ app.all("/*", function (req, res) {
case "web~1.co%3f":
case "web~1.con":
case "web.config":
case "webc*~1*":
case "webco*~1*":
case "webcon~1*":
case "webcon~1.%3f%3f%3f":
case "webcon~1.o%3f%3f":
case "webcon~1.ol%3f":
case "webcon~1.old":
case "web.config.old":
res.status(404).send();
break
default:
Expand All @@ -24,4 +32,3 @@ app.all("/*", function (req, res) {
app.listen(3000, function () {
console.log("Example app listening on port 3000!");
});

6 changes: 6 additions & 0 deletions src/tildebuster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ impl TildeBuster {
let res = SingleTildeScanResult {
kind: FSObject::CheckIfDirectory,
error: None,
request: request.clone(),
};
tx.send(res).unwrap();
let res = SingleTildeScanResult {
kind: FSObject::BruteFilename,
error: None,
request: request,
};
tx.send(res).unwrap();
Expand Down

0 comments on commit 67e8af9

Please sign in to comment.