In function verify_crc32(), in file verify.c, the
variable "crc" suffers from endian issues. This
prevents wepattack to work sucessfuly on bid-endian
processors.
Here is a proposed solution:
#define SWAP32(x) \
x = ((((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | \
(((x) & 0xff000000) >> 24) | \
(((x) & 0x000000ff) << 24) )
if (crc_calc == (ntohl(SWAP32(*crc)))) {