Discover All Paths in Next.js Websites
Finding all the paths in Next.js Application.
Here’s a one-liner trick to instantly reveal every route in a Next.js app.
The Code:
console.log(__BUILD_MANIFEST.sortedPages.join('\n'));
How to Use It for Bug Bounty Hunting: (Step to Findings)
Target: Open the Next.js website you’re investigating in your browser.
Inspect: Right-click and choose “Inspect” or “Inspect Element” (or press F12).
Console: Go to the “Console” tab in the developer tools.
Execute: Paste the code above into the console and press Enter.
Boom! You’ll get a complete list of all paths on the website.
Demo:
Note: I’m just found it this code in a telegram channel, and i shared this with my medium followers.
Join Telegram Community — https://t.me/tch_community
Subscribe on YouTube — https://www.youtube.com/@RootMate?sub_confirmation=1
If you have any qus ? — rhashibur75@gmail.comWe can add in linkedin: https://www.linkedin.com/in/kazihashiburrahman/