Exploit databaseDownload repository ZIP
GH-481ae3e565b361636b89ecf22f08099d
alex-ermolaev/log4netsolarwindssnmp-
Sources for CVE-2018-1285
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
alex-ermolaev/log4netsolarwindssnmp-Revision 6ad388a647cd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
SolarWinds.Logging/3rdParty/MurmurHash/Murmur32.cs
C# · 1,598 bytes/// Copyright 2012 Darren Kopp
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/// See the License for the specific language governing permissions and
/// limitations under the License.
using System;
using System.Security.Cryptography;
using Murmur.Extensions;
namespace Murmur
{
internal abstract class Murmur32 : HashAlgorithm
{
protected const uint C1 = 0xcc9e2d51;
protected const uint C2 = 0x1b873593;
private readonly uint _Seed;
protected Murmur32(uint seed)
{
_Seed = seed;
Reset();
}
public override int HashSize { get { return 32; } }
public uint Seed { get { return _Seed; } }
protected uint H1 { get; set; }
protected int Length { get; set; }
private void Reset()
{
H1 = Seed;
Length = 0;
}
public override void Initialize()
{
Reset();
}
protected override byte[] HashFinal()
{
H1 = (H1 ^ (uint)Length).FMix();
return BitConverter.GetBytes(H1);
}
}
}