Exploit databaseDownload repository ZIP
GH-ea91ecf629103514d4b348ce44007631
jamf/cve-2020-1206-poc
Sources for CVE-2020-1206
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
jamf/cve-2020-1206-pocRevision 9e917e593af3
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeBase.cs
C# · 2,709 bytesusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdprfx;
namespace CodecToolSet.Core.RFXDecode
{
public abstract class RFXDecodeBase : ICodecAction
{
protected RFXDecodeBase()
{
Parameters = new Dictionary<String, ICodecParam>();
}
public static QuantizationFactors DEFAULT_QUANT = new QuantizationFactors
{
LL3 = 0x6,
LH3 = 0x6,
HL3 = 0x6,
HH3 = 0x6,
LH2 = 0x7,
HL2 = 0x7,
HH2 = 0x8,
LH1 = 0x8,
HL1 = 0x8,
HH1 = 0x9
};
public static QuantizationFactorsArray DEFAULT_QUANT_ARRAY = new QuantizationFactorsArray
{
quants = new[]{
DEFAULT_QUANT,
DEFAULT_QUANT,
DEFAULT_QUANT
}
};
public static EntropyAlgorithm ENTROPY_ALG = new EntropyAlgorithm
{
Algorithm = EntropyAlgorithm.AlgorithmEnum.RLGR1
};
public virtual String Name
{
get
{
return Constants.DECODE_NAME_RFXDECODE;
}
}
public QuantizationFactorsArray QuantArray
{
get
{
var parameter = Parameters[Constants.PARAM_NAME_QUANT_FACTORS_ARRAY];
if (parameter is QuantizationFactorsArray)
{
return (QuantizationFactorsArray)parameter;
}
else
{
return RFXDecodeBase.DEFAULT_QUANT_ARRAY;
}
}
}
public EntropyAlgorithm Mode
{
get
{
var parameter = Parameters[Constants.PARAM_NAME_ENTROPY_ALGORITHM];
if (parameter is EntropyAlgorithm)
{
return (EntropyAlgorithm)parameter;
}
else
{
return RFXDecodeBase.ENTROPY_ALG;
}
}
}
public virtual Tile[] Result { get; protected set; }
public virtual Tile[] Input { get; protected set; }
public abstract Tile DoAction(Tile input);
public virtual Tile[] DoAction(Tile[] inputs)
{
return new[] { DoAction(inputs.FirstOrDefault()) };
}
public IEnumerable<ICodecAction> SubActions { get; protected set; }
public Dictionary<String, ICodecParam> Parameters { get; protected set; }
}
}