Git Product home page Git Product logo

safediscshim's Introduction

SafeDiscShim

Disclaimer

SafeDiscShim is purely designed as a compatibility tool: no security mechanisms are bypassed in the operation of this tool and SafeDisc protected games still require their original discs in order to function, even when using this tool. Certain games may have additional compatibility issues outside of the SafeDisc protection; this tool makes no attempt to fix such issues. Due to the techniques used, certain anti-malware programs may wrongly detect this software as being malicious.

Introduction

SafeDiscShim is a compatibility tool that allows for SafeDisc protected games which utilize the insecure Macrovision Security Driver ("secdrv.sys") to run on modern versions of Windows which have said driver blacklisted. Previous methods to restore functionality to these games relied on forcefully installing the driver, potentially opening security risks.

In contrast, this tool does not rely on any drivers to function. Instead, it automatically loads alongside SafeDisc protected games and intercepts any communication requests that would have been sent to the driver, instead sending the expected response itself and allowing the game to boot.

Installation Instructions

Simply download the latest release and run the installer. Once installed, SafeDiscShim should automatically insert itself into most SafeDisc protected games.

For a few games utilizing SafeDisc v1, SafeDiscShim may not work properly without first deleting the "drvmgt.dll" file that is located in the same folder as the game executable. If you find a game where this is the case, please write an issue report detailing the name and specific release of the game so a specific compatibility profile can be created to bypass the problem.

Logging

To aid with debugging, beta versions of SafeDiscShim will automatically create log files in the same folder as the executable. If you wish to disable this, set the environment variable "SAFEDISCSHIM_LOGLEVEL" with a value of "none".

safediscshim's People

Contributors

ribshark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safediscshim's Issues

House of the dead 3

Recently, I updated win 10 and can't make this game to work. I tried using safediscshim but no way. Any clue?

[Not a SafeDiscShim issue] Certain SafeDisc 2 protected executables do not start

Certain SafeDisc 2 executables seem to not launch on modern Windows. This happens even when using the official driver rather than SafeDiscShim, so it isn't a problem with this tool. Regardless, I will list the affected titles here and continue to look for a solution:

  • Command & Conquer: Red Alert 2 (SETUP.EXE)
  • Kao the Kangaroo [US release] (kao.exe)

SafeDiscShim failed to launch the game after fresh OS installation?

I have certain SafeDisc "partial removed" protected games that can launched successfully before I reinstall Windows 11 and SafeDiscShim also installed in the previous Windows 11, however SafeDiscShim failed to run any games after I install it after a new fresh installation of Windows 11.

Right now I temporarily uninstalled SafeDiscShim and those partial games can be run again.

Retail version of The Wheel of Time does not launch.

The Retail version of The Wheel of Time does not start with this.

The game was originally released on 2 CDs, disc 2 being the one that SafeDisc needs to do its thing.

The Wheel of Time uses SafeDisc V1, and I read what you said about some versions needing the drvmgt.dll removed from the same location as the exe. The Wheel of Time does not have this file present amongst the game's files, but it is located on disc 2 which is the disc required for SafeDisc. Because of it being on the disc, the dll file cannot be removed.

There are two retail versions of The Wheel of Time game: Version 300 and Version 333b. Version 300 is what is installed directly from the discs while 333b is an official patch for the game.

On the plus side, upon launching the game, the disc drive is being used and the splash screen (which originally does not show up) now shows up which does not happen originally without your software installed, the game just won't launch.

I have provided logs for both versions of the game (in case they do something slightly different).

Version 300:
WoT.exe_300_SafeDiscShim.log
WOT.ICD_300_SafeDiscShim.log

Version 333b:
WoT.exe_333b_SafeDiscShim.log
WOT.ICD_333b_SafeDiscShim.log

DxWnd integration

Hello, RibShark
I was brought to your SafeDiscShim code by a post on DxWnd forum by MrPepka, the guy that also wrote a post to you about the Polish version of "Tom & Jerry".
I couldn't analyze completely the problem yet, but I got the suspicion that your shim and DxWnd could be incompatible when used together because they both rely on code injection hooks that could interfere with each other, but in theory is could be possible to integrate the logic of your shim with the DxWnd hooks.
So, I wrote this message to ask you permission to be inspired by your source code and add this SafeDiscShim functionality to my DxWnd tool, of course keeping due reference to you as author of the code.
You can visit the DxWnd pages on SourceForge and take a look to the DxWnd help/about section where I added the references to the open-source licence (a GPL v3) and hall of fame with all the contributors.
Thank you for your attention,
Ghotik

SafeDiscShim and DxWnd integration

I apologize to repeat here some of the questions I made in the closed thread, but I was not sure that you read it.
So, I'll repeat some questions trying to be short and not to steal too much of your time:

  1. could you suggest a SafeDisc target for testing that works with your shim? I picked "Age of Empires II" but I'm not sure it would be the easiest case, since in this case there is a drvmgt.dll file in the game folder
  2. In your opinion it would be correct to hook kernel32:DeviceIoControl in addition to ntdll:NtDeviceIoControlFile? I did that and it seemed ok, but I don't know ...
  3. The Process::Relaunch() method in your project seems unreferenced, is that correct?
  4. if you have time, please read the longer plea in the original thread

Thank you,
Gho

Installer flagged as virus

The v0.1.1 installer is flagged by Windows Defender as containing "Trojan:Win32/Znyonm". I'm running Windows 11 23H2, fully updated. I've tried redownloading it several times.
v0.0.1 doesn't trigger this detection, but it also doesn't work on Age of Empires 2 (even after deleting drvmgt.dll)

image

How do I disable SafeDiscShim after installation?

Re-running the installer seems to give no option. Preferably I'd like to temporarily disable the shim but in particular I'd like to avoid the spawning of child processes while I debug the original executable.

Can't run installer on Windows 10

Windows 10 Home Edition, version 22H2. OS build 19045.3930. Doesn't give me any more information than "This app can't run on your PC."

SafeDisc 1 games crash

It appears that none of SafeDisc 1 games work for me, ICD always crashes in dplayerx.dll. Tried the following games:

  • Need for Speed: High Stakes
  • Need for Speed: Porsche Unleashed
  • LEGO Racers

Running Windows 10. Using Alcohol 120% to mount Redump disc images. Not an issue with the game code since cracked exe produced by UnSafeDisc works fine. The games do work if Alcohol virtual drive is passed through to Windows XP VM.

Logs:
LEGORacers.exe_SafeDiscShim.log
LEGORacers.ICD_SafeDiscShim.log

Windows event log entries:

Faulting application name: LEGORacers.ICD, version: 0.0.0.0, time stamp: 0x37979360
Faulting module name: dplayerx.DLL, version: 0.0.0.0, time stamp: 0x3729dba5
Exception code: 0xc0000005
Fault offset: 0x00013044
Faulting process id: 0x138c
Faulting application start time: 0x01da9f18bcf2fb97
Faulting application path: C:\Games\LEGORacers\LEGORacers.ICD
Faulting module path: D:\dplayerx.DLL
Report Id: 0882d3a8-0083-41f4-baed-b1dc4d246f80
Faulting package full name: 
Faulting package-relative application ID: 
Faulting application name: LEGORacers.ICD, version: 0.0.0.0, time stamp: 0x37979360
Faulting module name: LEGORacers.ICD, version: 0.0.0.0, time stamp: 0x37979360
Exception code: 0xc0000005
Fault offset: 0x000a867c
Faulting process id: 0x138c
Faulting application start time: 0x01da9f18bcf2fb97
Faulting application path: C:\Games\LEGORacers\LEGORacers.ICD
Faulting module path: C:\Games\LEGORacers\LEGORacers.ICD
Report Id: 89584dd5-b462-46cc-ad53-0f5b8c27a40f
Faulting package full name: 
Faulting package-relative application ID: 

CoD 2 patch 1.3 doesnt work

installing CoD 2 from dvd with patch 1.2 works, but after upgrading to version 1.3 via the offical patch the singleplayer executable complains that it cannot find the disc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.