Closed peetKh closed 1 year ago
I agree, unfortunately gitbook doesn't have that functionality. However, I'm thinking about creating some main page presenting my projects and I could put that functionality in there. For the moment feel free to follow me on twitter or linkedin as every week I share 3 random hacktricks links
Hi @peetKh and @carlospolop,
Maybe we can submit a feature request lto the upstream Gitbook project in order to add in this functionality, as this community may not have the expertise to pull this off. If no one does, I am more than happy to submit the request to them.
@carlospolop, Is the server infastructure hosted by someone else and therefore you can't make PHP files? Is this IAAS or PAAS?
I'm asking because if we can make files on the server, maybe we can embed a link in the main markdown file that links to a PHP file which redirects the user to a random page.
In that case, we wouldn't need to make any changes to the underlying Gitbook code.
If the underlying server infastructure is not accessible, then I suggest that we default to my original suggestion in submitting a feature request to Gitbook.
Hi @oddrabbit,
I cannot make PHP files, just markdown files interpreted by gitbook. Actually, if I would just be able to add arbitrary javascript code to the book I might be able to create such functionality, but I don't think gitbook (intentionally) support something like that. Let me know if you find another options or if you want to submit the feature request to Gitbook. However, in a few weeks I will upload a page to www.hacktricks.xyz (empty now) with some info about my projects and with a button to access a random hacktricks page also .
Hi @carlospolop,
Apologies for the late response; I have been preparing for my OSCP.
I just issued the feature request to Gitbook.
For some reason, the owner has disabled the Issues section so I had to add it into the Pull requests section so others have to submit issues in the Pull requests section. Simple issues have not been resolved in the project, even from 2018, so I doubt that we will get an answer but at least we asked.
Here is the Pull Request: https://github.com/GitbookIO/gitbook/pull/2222
Considering that the Gitbook project may not want to cooperate, we may need to default on your project at http://www.hacktricks.xyz as you suggested. But at least we have that issue there just in case someone comes around.
Let me know if you would like me to do anything else.
Thanks.
Hey @oddrabbit, You can already access random hacktricks pages from a button in https://www.hacktricks.xyz/ Thank you for asking gitbook for the fature
Hi @carlospolop,
Thanks for the notification. I'll close the Pull Request on Gitbook if this Issue has been resolved then. In the meantime, I'm all good with this Issue being closed.
Thanks.
I think it would be great to have a "Random page" link as there are on some wiki engines, I don't know if that would be possible with the Gitbook platform though.
I would definitely use that to discover and read about a new random subject while commuting.
Thank you for all that amazing work !!