Hello Guys, today in this tutorial we are going to talk about a web application penetration testing tool called “breaker-link-checker“. The code of this tool is written in Node JS, which comes with the below features.
Broken link hijacking (BLH) is a type of web attack. Uses external links that are no longer valid. This vulnerability can be tested using automated tools. Broken Link Checker is an automated tool developed in NodeJS and also available on GitHub. This tool takes the destination URL as input and tests each URL to identify broken links. This tool is free and open source to use.
Note: Make sure you have Node JS installed on your system as this is a Node JS-based tool. Click to check the installation process: Steps to install Node JS on Linux
- ✅ Complete: Unicode, redirection, compression, basic authentication, absolute/relative/local URL.
- ⚡️ Fast: Concurrent, streamed, and cached.
- 🍰 Easy: Convenient defaults and very configurable.
- Support for many HTML elements and attributes; not only
- Support for relative URLs with
- WHATWG specifications-compliant HTML and URL parsing.
- Honor robot exclusions (robots.txt, headers and
- Detailed information for reporting and maintenance.
- URL keyword filtering with simple wildcards.
- Pause/Resume at any time.
Installation of Broken Link Checker Tool
Step 1: Use the following command to install the “npm” dependency.
Step 2: Now install and configure the Broken Link Checker tool using the following command.
Good 🙂!! Now we can easily install and configure any node js project using this tool as below.
root@OnlineHacking:~$ npm install broken-link-checker -g npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. npm WARN deprecated [email protected]: no longer maintained npm WARN deprecated email@example.com: use universal-url, minurl, relateurl, url-relation npm WARN deprecated [email protected]: try optionator added 104 packages, and audited 105 packages in 8s 5 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm notice npm notice New major version of npm available! 8.19.3 -> 9.1.3n of npm available! 8.19.3 -> 9.1.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.1.3 npm notice Run npm install -g [email protected] to update! npm notice root@OnlineHacking:~$
Step 3: Check the help section with the following command. Done 🙂!! We think users will become experts by installing various tools with us. The tool has been installed and you can now control it by simply dropping its name on the terminal.
Use of Broken Link Checker
Example 1 – Recursive and ordered
Basically, we just name the site we want to hunt and add filters to get the results recursively. Sometimes the website’s external links expire and the website owner doesn’t look at them even once, and the reason for this carelessness can reward hackers.
Note: HTTP proxies are not directly supported. If your network is configured incorrectly and no resolution is visible, you can try using a container with proxy settings.
Example 2 – Exclude internal links
We think that looking for internal links is not useful. Let’s assume that even if we get it, we will eliminate the process of searching for internal links, which will reduce the search time and give us fast and accurate results.
In this example, we will eliminate the internal link search process, which will reduce the search time and give us fast and accurate results.
Finally 🙂!! We tested the rest of the features of this tool but they don’t seem useful so we gave up, but you can try it yourself once.