TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Find non-linked directories and files on a domain

2 点作者 thefox超过 14 年前

1 comment

elliottcarlson超过 14 年前
By brute-forcing a full dictionary attack on a site? Seems a little too invasive, can be seen as a hack attempt (especially since your dictionary contains admin type folders etc) and/or a denial of service attack - and at the very least can cost a user real money depending on their hosting setup.<p>Anyhow - besides not liking the <i>point</i> of this - good code, but the same can be accomplished with a oneliner:<p><pre><code> grep -v '^#' dictionary | grep -v '^$' | xargs -I DICTIONARYITEM curl -o /dev/null -w "%{url_effective} returned %{http_code}\n" -s http://domain.com/DICTIONARYITEM</code></pre>