Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

QuickBMS bms script crypt project

Featured Replies

  • Author
  • Localization

aluigi, posted Wed Dec 16, 2020 4:47 pm (61141)


A couple of days ago I was thinking about a way for generating endless versions of the same script to avoid filters and blocks of the file hosting service.

Requirements:
  • text output
  • no password
  • hash checking the content
  • able to be decrypted even if splitted in multiple lines

I was surprised that it was so easy to do it:
http://aluigi.org/bms/bmscrypt.bms

The format is very simple:
  • 32bit flags
  • 32 bytes random key
  • 16 bytes random ivec
  • NUL-delimited hmac sha1 hash of the original content
  • encrypted data of the compressed file

The hmac hash is based on the key and the content of the file, since the key is ever random also the hash will ever change
For the encryption I opted for AES 256 CTR, where the CTR mode avoids the annoyances of handling the padded blocks: encrypted length == decrypted length.
For the compression I opted for zlib.
The flags field is currently unused, I just left the first bit set to zero for future usages.

The script works with ANY file, not just bms scripts, therefore you can use it with any content.
Just remember that the script automatically decrypts the files with the TXT extension, while the files with any other extensions will be encrypted... better to have one script doing the job instead of two separate scripts for encryption and decryption.
And remember to not use it with big files.

The goal is not protecting the content (there is no password) but just eluding any check on the file hosters in case your scripts are blocked or their format is not accepted and you need a 100% textual content.

I attached 3 examples of generated files plus the original one (the current script for Cyberpunk 2077, no particular reason).

Looking for your feedback!

cyberpunk_2077.bms

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.