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.

generate xor pad

Featured Replies

  • Author
  • Localization

chrrox, posted Wed Jul 28, 2021 12:54 am (65388)


is there a way to generate a xor pad fast in qickbms.
it starts at 0 and keeps going higher till the size of the file every 16 bytes like this.
Image
  • Author
  • Localization

aluigi, posted Fri Jul 30, 2021 5:34 am (65410)


Fast? uhmmm no.
It depends by how long it should be your xor pad, if it has a limited short size you can build it by hand but if that is supposed to be unlimited (as I think) then it's complicated.
  • Author
  • Localization

chrrox, posted Fri Jul 30, 2021 11:51 am (65413)


fastest way would be initialize as 0 the file size then use c program to modify values?
  • Author
  • Localization

aluigi, posted Fri Jul 30, 2021 3:07 pm (65416)


A C function for performing the decryption would be good.
Do you mean something like the following?
Code:
set MEMORY_FILE10 string "
void decrypt(unsigned char *data, int size) {
    int i, c;
    for(i = 0; i < size; i ) {
        c = i >> 4;
        switch(i & 15) {
            case 0:            break;
            case 1:  c >>= 8;  break;
            case 2:  c >>= 16; break;
            case 3:  c >>= 24; break;
            default: c = 0;
        }
        data[i] ^= c;
    }
}
"

get SIZE asize
log MEMORY_FILE 0 SIZE
calldll MEMORY_FILE10 decrypt tcc RET MEMORY_FILE SIZE
log "dump.dat" 0 SIZE MEMORY_FILE
  • Author
  • Localization

chrrox, posted Fri Jul 30, 2021 8:55 pm (65418)


That worked great
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.