Finding the paths for existing files on a specific website

Hello everyone. Let’s say there is a website that hosts various PDF files you can access simply from your browser without any authentication. This is the URL for an example file:

example.org/files/XXXX-XXXX-XXXX-XXXX.pdf

If you guess the correct number (For example, 5326-4253-2512-6422.pdf), you will see the PDF. If you provide a number for a non-existing PDF, you will see this error: Imgur

I tried to just check random generated links with a Python script, but I realized this would take years because there are 9999999999999999 possible combinations (The first number is between 1 and 9, and the rest of the numbers are between 0 and 9).

Do you have any idea how I should find the good URLs? There are approximately 5000-15000 PDFs on the server. The links aren’t shared anywhere on the internet.

Thank you very much

submitted by /u/HerBalint
[link] [comments]

June 26, 2023
Read More >>