Advertisement
ssdnet

Untitled

Sep 9th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. I managed to finish the addons manager. Addons are in zip files on the server. When they get downloaded, some payload will be attached on the fly to the exe. This payload contains information about the addon:
  2.  
  3. ID: A unique ID identifying the addon, which is also the value stored in the mysql database
  4. NAME: The name of the addon, will be used for the menu entry
  5. ADDONFILENAME: The exe name of the addon
  6. VERSION: The version of the addon (like 1.0.0.0)
  7. AMOUNT: The price of the addon (if not free)
  8. PURCHASED: If the addon was purchased
  9. SCRAPELINKER_VERSION: The minimum version of ScrapeLinker required to run the addon
  10. HASH: A MD5 hash of the exe itself, without the payload
  11.  
  12. This info is encrypted, using the local crypto api to prevent that they can send the addon to other users.
  13. When SL scan the local addons to build the addons menu, it will require this info. When the addon runs (be it from SL or manually), it will check its own payload and also the stored hash to ensure its allowed to run (and was not modified).
  14. If no payload exist, or the payload cannot be decrypted, or the hash does not match, the addon wont run.
  15.  
  16. To generate the addons.json file on the server (similar the addons.txt of SB, where all the addons are listed), I created an editor for it, where you can load that file from the server (or local), add/edit/delete addon details and upload it to the server (or save it locally).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement