Exploit database

GH-9c7f6a9147b55deb06b4d39fa90503d6

arkangel-dev/cve-2018-20250-winrar-ace-gui

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2018-20250

18 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

CVE-2018-20250-WinRAR-ACE-master/CVE-2018-20250-WinRAR-ACE-master/Utils.cs

C# · 415 bytes
using InvertedTomato.IO;
using System;

namespace WinAce
{
    public class Utils
    {
        public static UInt32 CRC32(byte[] data)
        {
            var crc = CrcAlgorithm.CreateCrc32Jamcrc();
            crc.Append(data);
            return (UInt32)crc.ToUInt64();
        }

        public static UInt16 CRC16(byte[] data)
        {
            return (UInt16)((CRC32(data) & 0xFFFF));
        }
    }
}