Originally Posted by keyboard1333
Because you can't view all the files in a directory, the names (and therefor the correct username and password) are hidden.
The only way to login is to put in the correct username and password...
One easy way to crack this would be to just brute force the directory untill you find the files...
Not easy! Not if the file is named CrazyStanierPurpleStarling781.js or whatever.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.