Package: sigdf
provides a convenient and efficient way to retrieve signature information (Microsoft's sigcheck) for files and converts it to a pandas DataFramepip install sigdfTested against Windows 10 / Python 3.10 / AnacondaThe get_sig_infos function is used to retrieve signature information for files located at a given path or paths
using the sigcheck.exe utility.
It collects information such as file signatures, file version, description, and other relevant details.This function might be interesting for individuals or developers working with files and file security analysis.
It can be particularly useful for tasks like identifying the digital signatures of executable files, verifying file
authenticity, checking for file tampering, and gathering metadata about files in a specified location.Advantages of the get_sig_infos function include:Automation:The function automates the process of retrieving signature information for multiple files or folders,
saving time and effort compared to manually analyzing each file.Extensibility:It allows users to specify the path(s) and file extensions to analyze,
making it flexible and adaptable to different scenarios and requirements.Integration with Pandas:The function leverages Pandas to organize the collected information into a DataFrame,
enabling further data manipulation, analysis, and integration with other data processing workflows.Error Handling:The function includes error handling mechanisms, such as ignoring exceptions during
the signature analysis and printing any encountered exceptions for debugging purposes.
This helps ensure that the function can handle a variety of scenarios and continue processing
files even if some exceptions occur.Performance Optimization:The function applies performance optimization techniques, such as reducing memory usage
and using efficient Pandas operations,
to enhance the efficiency and speed of the signature analysis process.Args:path(str|tuple|list):Path(s)tothefile(s)orfolder(s)toanalyze.Itcanbeasinglepathasastring,atupleofpaths,oralistofpaths.extensions(tuple|list,optional):Fileextensionstoconsider.Onlyfileswiththeseextensionswillbeanalyzed.Defaultsto()-Nothingwillbeignored.Returns:pd.DataFrame:APandasDataFramecontainingthesignatureinformationfortheanalyzedfiles.fromsigdfimportget_sig_infosdf=get_sig_infos(path=r"C:\Program Files (x86)\BlueStacks X",extensions=())print(df[:10].to_string())PathVerifiedDatePublisherCompanyDescriptionProductProductVersionFileVersionMachineTypeBinaryVersionOriginalNameInternalNameCopyrightCommentsEntropyMD5SHA1PESHA1PESHA256SHA256IMP0c:\programfiles(x86)\bluestacksx\7z.dllSigned2021-10-2900:26:00BluestackSystems,IncIgorPavlov7zPlugin7-Zip19.019.032-bit19.0.0.07z.dll7zCopyright(c)1999-2018IgorPavlovNaN6.623544076DED188D227DBC7DC3C5D72762A381A09F5D0B1C49492DA8EA91D5A5A9C086355348012FB95899DC92D049773F6B21DC776D7F6ACB74EBD65A45F27AD6CA66FD3969F883578530062E0A751C4F55E6CD1AC9AEE2E1B721879078AFAC97327471023FC774C54F3248F47A1383A71EF61AC0DB470894B622EAE4411B119BF4CA7BEE4FA1391C81c:\programfiles(x86)\bluestacksx\7z.exeSigned2021-10-2900:26:00BluestackSystems,IncIgorPavlov7-ZipConsole7-Zip19.019.032-bit19.0.0.07z.exe7zCopyright(c)1999-2018IgorPavlovNaN6.603DC1882CBD821506758F6C689C796BF3EE8C6C24CC0FF9A402ED51CC1756DC3A1A0F1EE49D0EE4A7BD32FE712448785B1F5BC74E9305D132749E102C046CDF5E2375B60B9CF88806757FD0B13B99843E6E99E5D907EA2208B9AD95EC3A25E89E19FA9AF5B254FECD8EF129D3C412B9A805B6911BB2D031FFDC2674610547987E150CA76C2C9C784A02c:\programfiles(x86)\bluestacksx\api-ms-win-core-file-l1-2-0.dllSigned2015-07-1423:55:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.62204C39B760247C6EED86854F6578333479490B9DCD3F91B06FA7F3028DC5DF5B4A22D4FBC7D3B10BA52968F88451AA8368FEC6B798BBBCB28D296400340B5E1102E1DF12B1F997D408A9A5A184E88AFA4D4C9A6EEF0114EA6F56B749C01CC82118FFE538674DF22A1F4EF7A07E94E559D25F55CE104E7B095<NA>3c:\programfiles(x86)\bluestacksx\api-ms-win-core-file-l2-1-0.dllSigned2015-07-1423:55:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.7338403E7B9EC4B0C4F6C9BF0EC93687C777581E7D872EC9C00F33BDAC9690E55096DB3017290164EB28E0BE20C677D4C6BCA2F271CD75A31AE3A5CAED01B3F498DC111365327A81D9787964CA19DB9D11102FD8A62B91E846CA8B79E230A81102735996500DD00D34BFA77955C11D87C0F9C967EC85003E116<NA>4c:\programfiles(x86)\bluestacksx\api-ms-win-core-localization-l1-2-0.dllSigned2015-07-1423:56:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.6662E2C78125C66CDE5859559F5E6167034F00E9CDD8DA93106FB3BC060E64C643E2274A598901F6DD87F70D2B89B59F9C6E1C09BB927CABFB61EC4863EEF89E9CA9B165FA9A25BA5914B8FCA2D5FCCAF041E9D798F37C5D0CE9BF2BFF3ADCB1FB5707794B18320D7113F45446DD505EEE43ABBF8835CD73A44<NA>5c:\programfiles(x86)\bluestacksx\api-ms-win-core-processthreads-l1-1-1.dllSigned2015-07-1423:56:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.6535EFD5F4B617E95043898DBFD78AF97FB70BABD7098B05C59484A9DBEA77F4B5DCD2BF9CC89263725D098FC15982C1636591180461B38593C961C541A92C71ED5BD0E7B3C56F2CAEE6F753B0654A530B89C1F28B9B81C165ACFCEFC5AF3F7A37242DCDBFEBEDBB954A0D21D93175441BCE680A1A4C1C9FEF3<NA>6c:\programfiles(x86)\bluestacksx\api-ms-win-core-synch-l1-2-0.dllSigned2015-07-1423:55:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.701FD9C6D2E90B3CF9C0D72F59B66EA198992BE1C1C7BC81E2EAEB22FDCE5946A0FB08E45F2010F285E42AB1F9496EC17A087F2E4B9FFA53A76C994FAF1B8D8B2983C7374BA2D9845BADED8F766F8675E6BE9A571A8EE2F81E305482DBB67F005E0B61BBD44CE04818254FFECB765F836324BBCB3DD174524FE<NA>7c:\programfiles(x86)\bluestacksx\api-ms-win-core-timezone-l1-1-0.dllSigned2015-07-1423:55:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.745425083789D9D675B2BCFA9A603C9B3FAC6E4BCA5924406A675686B30EF5708732667E0792B774BD436108E17877413A6C23DBA94BF23CDB8049F29B7658A9E3B242F6180EF95C4AF92BF5B07086FEBD20DD06978903ACFC50006C449FDED67CB7CD9DFB4FA9310CE5103CA3B1344AF72052509C8B1CD4AD2<NA>8c:\programfiles(x86)\bluestacksx\api-ms-win-core-xstate-l2-1-0.dllSigned2015-07-1423:56:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.6492668196CED304462699D69EE80C19DFC726F61F3F20528AF09DB801EF895AC11B228FA949DE1354ED86824686CF219F8B5F55367DBED011ABA9809B79ED5D3C610EB46680E2B3E82F735086880FFE0C5D878DCAE04B94D60B1ED09F172A43A826853DE69851B8F2ABCB80577D67BD9755C45FAFC8199A2C9<NA>9c:\programfiles(x86)\bluestacksx\api-ms-win-crt-conio-l1-1-0.dllSigned2015-07-1423:55:00MicrosoftWindowsMicrosoftCorporationApiSetStubDLLMicrosoftWindowsOperatingSystem10.0.10240.1639010.0.10240.16390(th1_st1.150714-1601)32-bit10.0.10240.16390apisetstubapisetstubMicrosoftCorporation.Allrightsreserved.NaN6.6268E534F49C77D787DB69BABFF931A497A709380F53F4BEE25AD110869AC4E755391346405F096EB68F5AF471D47CAEE160887C72E2BE9A9FF36742CF2B4E66FCFF31D6CDCE23C0C4223B20A47D16DDC642F328CA5991C140C5B679B8119BB5D53107C40C63DF667BAEF62DE75418C3E6B540FDBAFCCEDDCA6<NA>