I'm trying to find a way to script (preferably in Perl) - a check to see if an .exe or .dll is digitally signed - if anyone has an easy direction to point me, I'd appreciate it.
How can I check the digital signature of an .exe or .dll in Perl?
5.5k Views Asked by AudioBubble At
2
There are 2 best solutions below
Related Questions in PERL
- Perl Regex for converting query strings
- Cross compiling perl for Android ld.lld: error: unable to find library -lpthread
- Regexp to remove small numbers and leave large ones
- `df` command not capturing entire output in perl
- Webmin CentOS7 AWS backup errors - perl(S3::AWSAuthConnection) can't be installed
- How to ignore perm errors with Path::Tiny 'visit'? (Windows)
- Why does setting `*\` to a scalar (string) reference not result in auto printing
- Regex for deconstructing SQL where statement
- Random characters in DS record from Net::DNS:RR when calling print/string
- Perl with Selenium: cannot save the Web page with Ctrl+S
- openssl pbkdf2 and perl
- Strawberry Perl using a separate winlibs distro
- Perl / Undefined value as a HASH reference when running SNMP queries
- Timestamp with timezone: works with isql but not with DBD::Firebird
- Slurping a file ... syntax error - example from perldoc
Related Questions in WINAPI
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Changing the theme of a #32768 (menu) window class at runtime
- Issue with GetOpenFileName while debugging
- How to populate a ListBox with SendMessage?
- Is there a function to end a child process?
- HDR video publishing
- Frameless Qt + WinAPI maximized window size is bigger than the availableGeometry()
- Mount .iso file with python
- What is Win32 x86-64 CONTEXT::VectorRegister for?
- WinAPI - right mouse drag & drop and IContextMenu
- Win32 per-filesystem cache tuning?
- Client connection timeout during Android & Windows PC communication via sockets
- MessageBoxEx sometimes shows as hollow window, border only, and only on Windows 11
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Would it be possible to run an application right after csrss.exe loads? (Windows)
Related Questions in DIGITAL-SIGNATURE
- Locking PDF after filling out text field
- Why do some cryptographic signature npm packages (like superdilithium) convert text to an array of integers before signing?
- Itext pdf deferred signing with invalid signature
- RSASSA-PSS signature verification fails dues to padding with mbedtls but succeeds in Python
- Android - sign XML file
- How cosign finds a record in Rekor when verifying?
- Cosign giving error signing ECR images. Keyless signing with github repo certificate using git_ref
- Why does digitally signing with Adobe Reader cause Windows Cryptographic errors
- EC Keypair Issue: Can't verify a signature with the correct public key
- Flutter Android application is not installing after release signing
- Digitially sign a PDF using java
- Can't install after recompiled android code
- xml signing with google-cloud-kms in java/kotlin
- How do I sign an Excel C# COM Addin?
- Unable to create Pkcs11SignatureToken with JDK21
Related Questions in WINVERIFYTRUST
- How to securely load COM components
- I am trying to implement WinVerifyTrust in rust but facing issue in initializing WinTrustData structure members
- Getting WinVerifyTrust to work with catalog signed files such as cmd.exe
- How to verify trust of Certificate/Digital signature of PE file in a file-stream and not a file on disk
- WinVerifyTrust only works when using a file not a memory blob
- What is a trust provider?
- WinVerifyTrust function takes long time to excecute
- Check digital signature of OSX (.dmg) file in Windows
- What is the difference between WinVerifyTrust() and WinVerifyTrustEx()?
- Why does WinVerifyTrust() failing only on machine which is not connected to internet?
- WinVerifyTrust returns CERT_E_UNTRUSTEDROOT for a valid (loaded) driver
- validating a digitally signed vbscript in C#
- How can I verify SHA-2 signature of PE file?
- WinVerifyTrust error code handling
- Getting digital signature from mmc.exe at windows 8
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
An idea is to translate the sample program on MSDN using Win32::API.
Update: I took a stab at translating the sample program from MSDN. For some reason, the call keeps returning
0x800B0001(=TRUST_E_PROVIDER_UNKNOWN) for files that verify correctly with the Win32 sample code. I am posting the script here in case someone can spot my error.Note that I have no idea how to
memsetthe structures although it should not matter. More importantly, I think the problem is with the way I am constructing the GUID forWINTRUST_ACTION_GENERIC_VERIFY_V2and/or the way I am passing it.