Basically the two questions, downloaded the prebuilt binary from the official site linked here and Windows Defender freaked out. Uploaded to virustotal and got like 20 positives. Figured I’d build from source but the build process needs Admin rights which is just raising all sorts of flags for me. Since when does a build process need admin? Edit: That’s kinda a tautological answer to why it needs admin privs: because it requests them. I know why GenP itself needs them, but why do the build scripts?

  • Mean_Plantain_7909@lemmy.dbzer0.com
    shield
    M
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    3
    ·
    edit-2
    18 days ago

    GenP is perfectly safe to use, as explained in both the GenP Guides and GenP Tips. The positive flags you see on VirusTotal are simply a result of what GenP does. VirusTotal and similar antivirus tools rely heavily on AI/ML and heuristic analysis to detect potentially suspicious behaviour. Because GenP modifies software behaviour, these automated systems often flag it as potentially harmful, resulting in false positives rather than actual malware detections. This is a common and expected occurrence for patchers, keygens, and similar tools. Experienced users familiar with such utilities generally understand that these warnings stem from the tool’s behaviour, not from a real threat.

    Regarding why the build process requires Admin privileges:

    The GenP build script, written in AutoIt and compiled via SciTE, includes the directive #RequireAdmin. This means the build process requires elevated permissions to perform tasks like modifying the registry, changing system settings, and accessing protected directories. Windows User Account Control (UAC) enforces this by requiring Admin rights to run these actions. Similarly, GenP itself needs to run as Admin to have the necessary privileges to patch software correctly and enable additional features.

    If you’re concerned about security, run the build process in a controlled or isolated environment (like a virtual machine) and ensure you download any GenP version (binary, source, or torrent) only from trusted official sources. You might also consider temporarily adjusting antivirus settings or adding exceptions if you fully trust the tool.

    Lastly, if you are concerned or uncomfortable using GenP and non-genuine methods, you are perfectly free to go directly to Adobe and purchase a genuine subscription instead.

    =======================

    nixcamic: …I guess I’m still just not clear on why it includes the directive #RequireAdmin. Like, what exactly does the build script do that requires admin privileges? I’m not an absolute idiot, I’m partly being wary and partly curious if there is a geniune need for admin privileges in the build script, since I’ve never needed them to build anything, ever, before.

    Why Does the GenP Build Script Require Admin Rights?

    In software development, Administrative privileges are typically required when an operation involves modifying system-level resources, such as the Windows Registry, protected directories, or other critical system settings. The #RequireAdmin directive in the GenP build script signals that the script requires these elevated privileges to complete certain actions that go beyond typical user-space operations during the build process itself.

    Accessing Protected System Directories:

    By default, Windows enforces strict access controls on certain directories, such as:

    • C:\Windows\System32
    • C:\Program Files
    • C:\Program Files (x86)

    These directories are protected under User Account Control (UAC), which prevents standard user accounts from modifying files and settings within them. Since GenP, when compiled from source, may interact with third-party software installed in these directories, the build script requires Admin rights to read from or write to these protected areas.

    When building GenP, if the process tries to access these directories, it needs elevated privileges to bypass Windows’ access control mechanisms. The runtime execution of the GenP tool, once built, also requires Admin rights to patch or modify software installed in these directories. But this is a separate action from the build process.

    Modifying the Windows Registry:

    The Windows Registry is a critical hierarchical database that stores configuration settings for both the operating system and installed applications. Certain sections of the registry are protected by UAC and require Admin rights to modify.

    During the build process, GenP may need to patch or configure registry entries (for example, to bypass certain licensing mechanisms or alter behavior). Admin rights are required to interact with restricted sections of the registry. However, this is part of building GenP from source, not running it as a patcher afterward.

    Performing System-Level Configuration Changes:

    The build process might involve modifying system-wide environment variables or altering system configuration files located in directories like C:\Windows or C:\Users\User\AppData\Local. These changes might be required if the build process needs to integrate GenP more deeply into the system, such as adjusting certain system-wide hooks.

    Executing the GenP tool later may require similar elevated privileges to interact with the OS during the patching process. However, during the build, the script needs Admin rights to compile and set up the tool in such a way that it can function properly during execution.

    Copying and Modifying Binary Files:

    The #RequireAdmin directive ensures that copy operations (such as patching or replacing binaries) to protected directories like System32are allowed during the build. Without Admin rights, the script cannot overwrite or modify system files.

    This is crucial when building GenP from source because certain patched binaries need to be set up for proper execution later. Again, this is a step in the build process, and execution of the tool may later require elevated privileges to perform the actual patching.

    Why These Operations Are Necessary in GenP:

    GenP is a patching tool designed to modify existing software, typically for bypassing activation or license enforcement mechanisms. To achieve this, the tool must interact with system resources like:

    • Modifying executables in directories like Program Files or System32
    • Replacing system libraries required by the target application
    • Modifying license keys stored in the Registry

    These interactions require elevated privileges during the execution of GenP to perform its intended tasks. However, during the build phase, the script itself needs Admin rights to create, configure, and prepare the tool to function properly in a user environment later on.

    Why Don’t Other Build Processes Need Admin Privileges?:

    In typical open-source or general development workflows, the build process typically focuses on compiling code into binaries without interacting with protected system resources. These processes work in user-space and only deal with compiling or linking code into executable files, so they do not need elevated privileges.

    In contrast, GenP is not simply compiling code; it’s modifying or “patching” existing software. This inherently requires the build process to interact with system-level resources in order to prepare the tool for later execution.

    Conclusion:

    The #RequireAdmin directive is used in the GenP build script because it needs elevated privileges to modify system-level resources such as protected directories, registry keys, and other critical components. These modifications are essential for preparing the tool to function as intended during its execution later. While it might seem unusual that the build process requires elevated privileges, this is common in tools designed to patch software or modify system settings.

    The need for Admin rights during execution ensures GenP can perform its patching and bypass tasks, while the need for Admin rights during the build process is simply a necessary step for preparing the tool to function at the system level.

    What to Do If You’re Still Not Sure:

    If you’re still uncertain or uncomfortable with granting Admin rights during the build process, here are some steps you can take:

    Test in a Safe Environment (e.g., Virtual Machine):

    If you’re cautious about granting Admin rights, consider running the build script in a virtual machine (VM). This isolates the process from your main system, allowing you to test safely.

    Try Running Without Admin Rights:

    You can try running the build script without Admin rights. If the script fails to access protected resources, you’ll know exactly where the elevated permissions are needed.

    Consult the Community or Search for Examples:

    There’s a wealth of community forums and guides where users discuss their experiences with building and executing GenP or similar tools. This might help you gain more context or confidence.

    Understand the Purpose of GenP:

    GenP is designed to modify software deeply, which inherently requires Admin rights for both the build process (to set things up) and execution (to patch or bypass software restrictions). As long as you’re using trusted sources and understand the tool’s purpose, you’re in control.