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 Command Line Interpreter crashing on exit
- Perl Regex: Merge multiple one-character substrings
- Syntax error in Perl open
- Need help in understanding perl tr command with /d
- Referencing a Schema's table batch/perl
- Retrieving filtered list of files using template toolkit
- “Badly placed ()'s” error when running loc command
- getting google contacts using shuttlecloud
- Perl Module using %EXPORT_TAGS
- get all possible permutations of words in string using perl script
- Can't locate DBI.pm in @INC with Perl
- split string into several substring using indexes
- How to find strings between two specified texts
- Getting a json from a server and assigning it to a variable
- Is there anyway to plot timeline charts in excel sheets using Spreadhseet::WriteExcel module in Perl?
Related Questions in WINAPI
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Is it valid to mutilayered a critical section?
- Implementing callback function for dialog-based application
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- Confusion about CTRL_SHUTDOWN_EVENT handling in DLLs and WM_QUERYENDSESSION
- Standard control transparency. Possible?
- Disable all power options from the Start menu
- call Win32 API in flex to set Window Display Affinity
- heap error after changing from new allocation to smartpointer
- Win API - Delete all files except some
- Finding the default application for a particular file name extension (Even when served by a metro app)
- How do I declare OutputDebugStringA without windows.h macros?
- WPF giving maximize,minimize,resize control to child window
- Can a dialog intercept drag'n'drop messages passed to its controls?
- WinApi and work with several domains
Related Questions in DIGITAL-SIGNATURE
- add attribute to signature xml in java
- WinVerifyTrust error code handling
- is PdfPKCS7.loadCacertsKeyStore() deprecated
- Trouble verifying XML signature with XmlDsigExcC14NTransform and InclusiveNamespaces
- Digital Signature in java / android (RSA keys)
- Digital signature tab not seen for executable developed in VC in VS2005 IDE using /keyfile and /LN as additional option in linker
- Restamping CAdES-A using Digital Signature Service from joinup.ec.europa.eu.
- What are the services available to manage digital signature?
- Error in digital signature
- Is there a standard on how to sign primitive types?
- Should elliptic curve for public key generation and signature computation be the same?
- Sign a file with SSL certificate for iOS "Shared Web Credentials" API
- In gpg, "decrypting" a signed message without the public key
- How to avoid SIGABRT when generating RSA Signature at EVP_SignFinal
- How to digitally sign PDF document using iTextSharp with PKCS7 standard (.cer)
Related Questions in WINVERIFYTRUST
- WinVerifyTrust error code handling
- WinVerifyTrust uses Windows Driver Verification Policy when run as part of MSI custom action
- WinVerifyTrust function takes long time to excecute
- How to verify trust of Certificate/Digital signature of PE file in a file-stream and not a file on disk
- WinVerifyTrust returns 0x80092003 - CRYPT_E_FILE_ERROR
- How to identify an Isolated Network
- WinVerifyTrust returns CERT_E_UNTRUSTEDROOT for a valid (loaded) driver
- WinVerifyTrust fails rarely
- Getting WinVerifyTrust to work with catalog signed files such as cmd.exe
- winverifytrust memory leak
- How can I check the digital signature of an .exe or .dll in Perl?
- validating a digitally signed vbscript in C#
- What is a trust provider?
- Check digital signature of OSX (.dmg) file in Windows
- Memory Leak while verifying Authenticode Signature of Executables?
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 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.