Ejemplo n.º 1
0
                    public IE9()
                    {
                        this.RecalibrationEvent += (target) =>
                        {
                            if (target.OperatingSystem.Features.Contains(OperatingSystem.FeatureSet.Windows7))
                            {
                                Application.Windows wapp = target.Application as Application.Windows;

                                if (target.Application.AddressBits == 32 && target.Application.KernelApplication == false)
                                {
                                    wapp.UserSEHOPPolicy = MitigationPolicy.On;
                                }
                            }
                        };
                    }
Ejemplo n.º 2
0
                    public IE10()
                    {
                        this.RecalibrationEvent += (target) =>
                        {
                            //
                            // We assume that spraying is not possible in 64-bit versions of IE when running
                            // on Windows 8.
                            //

                            if (target.OperatingSystem.Features.Contains(OperatingSystem.FeatureSet.Windows8))
                            {
                                OperatingSystem.Windows wos  = target.OperatingSystem as OperatingSystem.Windows;
                                Application.Windows     wapp = target.Application as Application.Windows;

                                if (wapp.AddressBits == 64)
                                {
                                    wapp.CanInitializeContentViaHeapSpray = false;

                                    wapp.UserASLRPolicyBottomUpHighEntropy = MitigationPolicy.On;

                                    wos.MemoryRegionASLREntropyBits[MemoryRegion.UserVirtualAllocBU] = wos.MemoryRegionASLREntropyBits[MemoryRegion.UserVirtualAllocBUHE];

                                    wos.RefreshBottomUpEntropyBits();
                                }

                                wapp.MemoryRegionASLRPolicy[MemoryRegion.UserForceRelocatedImageBase] = MitigationPolicy.On;
                                wapp.MemoryRegionASLRPolicy[MemoryRegion.UserForceRelocatedImageCode] = MitigationPolicy.On;
                                wapp.MemoryRegionASLRPolicy[MemoryRegion.UserForceRelocatedImageData] = MitigationPolicy.On;
                            }

                            if (target.OperatingSystem.Features.Contains(OperatingSystem.FeatureSet.Windows7))
                            {
                                Application.Windows wapp = target.Application as Application.Windows;

                                if (target.Application.AddressBits == 32 && target.Application.KernelApplication == false)
                                {
                                    wapp.UserSEHOPPolicy = MitigationPolicy.On;
                                }
                            }
                        };
                    }
Ejemplo n.º 3
0
 public static void InheritWindowsDefaults(this Application.Windows wos)
 {
 }