If you want to calculate the CRC on a variable (NULL delimited string):
encryption crc 0x04c11db7 "32 -1 -1 0 1 0"
string DUMMY E "my_message"
encryption "" ""
print "My CRC: %QUICKBMS_CRC|h%"
If you want to calculate it on a file just replace the second line with:
get SIZE asize
log MEMORY_FILE 0 SIZE
Finding the parameters for the CRC method of the Encryption command is really a joke, just dump the string in a new file and use the following script on it:http://aluigi.org/bms/crc_scan.bms
quickbms.exe crc_scan.bms input_string.txt > output.txt
In your case we had the following results:
0x3c449c53 0x539c443c - CONFIG 0x04c11db7 32 -1 -1 0 1 0
0x3c449c53 0x539c443c - CONFIG 0xedb88320 32 -1 -1 0 0 1
The KEY argument of Encryption must be the polynomial while the IVEC field is the rest of the configuration.
As you can see the result obtained from crc_scan.bms has the crc in both endianess so you don't have to care about "swapping" your expected result for finding it