🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

DirectoryFingerPrinting.CLI.Library

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

DirectoryFingerPrinting.CLI.Library

This library provides types and methods for parsing arguments, comparing two file-metadata, exporting reports in CSV, JSON or XML, help text etc., which are used by the cli application "dpf.exe" which you can find in my other repository "DirectoryFingerPrinting.CLI".

1.0.1
Source
NuGet
Version published
Maintainers
1
Created
Source

logo

License: GPL v3 Release NuGet

DirectoryFingerPrinting.CLI.Library

This library provides types and methods for parsing specific arguments used by "DirectoryFingerPrinting.CLI" (dfp.exe), comparing two file-metadata, exporting reports in CSV, JSON or XML, help text etc., which are used by the cli application "dpf.exe" and you can find in my other repository "DirectoryFingerPrinting.CLI".

Parameters

Following parameters are currently parsed, recognized and in use:

ParameterExamples (using short names)
--assemblies-onlydfp -ao --directory .\
--directorydfp --directory .\
--ignore-timestampsdfp -its -d .\
--ignore-sizedfp -is -d .\
--ignore-creation-datedfp -icd -d .\
--ignore-last-modificationdfp -ilm -d .\
--ignore-last-accessdfp -ila -d .\
--ignore-versiondfp -iv -d .\
--ignore-checksumdfp -ics -d .\
--ignore-hidden-filesdfp -ihf -d .\
--ignore-access-errorsdfp -iae -d .\
--ignore-casedfp -ic -d .\
--recursivedfp -r -d .\
--positive-listdfp -p -d .\ -x "json,txt,xml,yaml"
--negative-listdfp -n -d .\ -x "log,md" -ihf
--extensionsdfp -x "json,txt,xml,yaml" -d .\
--use-crc32dfp -crc32 -d .\
--use-md5dfp -md5 -d .\
--use-sha1dfp -d .\ -sha1
--use-sha256dfp -d .\ -sha256
--use-sha512dfp -d .\ -sha512
--report-essentialdfp -re -d .\
--report-informativedfp -ri -d .\
--report-verbosedfp -rv -d .\
--print-coloreddfp -pc -d .\
--no-headerdfp -nh -d .\
--no-formatdfp -nf -d .\
--print-sorted-ascendentdfp -asc -d .\
--print-sorted-descendentdfp -desc -d .\
--print-only-filenamedfp -pof -d .\
--savedfp -s "C:\MyDFP Files\Test" -d "C:\MyDir" --recursive
--format-dfpdfp -dfp "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-xmldfp -xml "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-jsondfp -json "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-csvdfp -csv "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--compare-directoriesdfp -cd "C:\MyDir1" "C:\MyDir2"
--compare-fingerprintsdfp -cf "temp\fingerprint1.dfp" "temp\fingerprint2.json"
--comparedfp -c "temp\fingerprint.dfp" "C:\MyDir"
--use-colordfp -pc -d .\
--load-optionsdfp -lo "options.txt" -d .\
--save-optionsdfp -so "options.txt" -d .\
--versionsdfp --versions
--checksumsdfp --checksums
--sizesdfp --sizes
--helpdfp -h
--versiondfp -v

Examples for using parameters

Parameter (long name)Examples (using short name)
--assemblies-onlydfp -ao --directory C:\myDir
--directorydfp -d "C:\My Personal Directory"
--ignore-timestampsdfp -its -d .\
--ignore-sizedfp -is -d ..\
--ignore-creation-datedfp -icd -d .\
--ignore-last-modificationdfp -ilm -d .\
--ignore-last-accessdfp -ila -d .\
--ignore-versiondfp -iv -d .\
--ignore-checksumdfp -ics -d .\
--ignore-hidden-filesdfp -ihf -d .\
--ignore-access-errorsdfp -iae -d .\
--ignore-casedfp -ic -d .\
--recursivedfp -r -d .\
--positive-listdfp -p -d .\ -x "json,txt,xml,yaml"
--negative-listdfp -n -d .\ -x "log,md" -ihf
--extensionsdfp -x "json,txt,xml,yaml" -d .\
--use-crc32dfp -crc32 -d .\
--use-md5dfp -md5 -d .\
--use-sha1dfp -d .\ -sha1
--use-sha256dfp -d .\ -sha256
--use-sha512dfp -d .\ -sha512
--report-essentialdfp -re -d .\
--report-informativedfp -ri -d .\
--report-verbosedfp -rv -d .\
--print-coloreddfp -pc -d .\
--no-headerdfp -nh -d .\
--no-formatdfp -nf -d .\
--print-sorted-ascendentdfp -asc -d .\
--print-sorted-descendentdfp -desc -d .\
--print-only-filenamedfp -pof -d .\
--savedfp -s "C:\MyDFP Files\Test" -d "C:\MyDir" --recursive
--format-dfpdfp -dfp "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-xmldfp -xml "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-jsondfp -json "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-csvdfp -csv "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--compare-directoriesdfp -cd "C:\MyDir1" "C:\MyDir2"
--compare-fingerprintsdfp -cf "temp\fingerprint1.dfp" "temp\fingerprint2.json"
--comparedfp -c "temp\fingerprint.dfp" "C:\MyDir"
--use-colordfp -pc -d .\
--load-optionsdfp -lo "options.txt" -d .\
--save-optionsdfp -so "options.txt" -d .\
--versionsdfp --versions
--checksumsdfp --checksums
--sizesdfp --sizes
--helpdfp -h
--versiondfp -v

Error codes

Following error codes (integer) are returned after cli executable has terminated. You can output them in prompt/cmd by:

echo %errorlevel%
Error CodeDescription
0OK (no error).
1No parameters.
2Missing parameter.
3Unknown parameter.
4Internal error.
5Illegal value.
6Single parameter.
7File already exists.
8Writing fingerprint file failed.
9File not found.
10Directory not found.
11Calculate, save, and compare at once are not provided.
12Illegal/Unknown fingerprint file extension.
13Unequal hashsum algorithms.

Keywords

library

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts