joswr1ght / bitfit Goto Github PK
View Code? Open in Web Editor NEWRecursively validate a starting directory of file contents to identify changes, corrupt data
License: MIT License
Recursively validate a starting directory of file contents to identify changes, corrupt data
License: MIT License
New Mac, with only python 3 installed.
Long-lead/big-dream item...
Would be fantastic to have bitfit (optionally?) report to the Google Sheet we use to track validation runs. I can do this via GDocs API.
Assign to me - I'll start tracking feasibility for this.
Hi,
when i run bitfitexe on a folder which contains files with names which contains french characters like 'é', 'à', 'è' it displays errors like below :
-- begin --
D:\logiciel\bitfit>bitfit.exe "d:\mo ri" > "d:\mo ri\VERSION-12.txt"
D:\logiciel\bitfit>bitfit.exe -v "d:\mo ri"
(<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('utf16', 'bitfit 1.1.3 output generated on 2022-01-09 23:24:16.185000 by marcozotir\n# bitfit.exe d:\mo ri\r\n# filename,MD5,SHA1\r\nla machin\xe9.txt,485046335dc481e5ba397649e15aef2b,d9206fc41eda50539ac62f086fd1218b4a3bc2ec\r\ntest 01.txt,957fe966e4b1de43d26cb170d452816b,20f4de2d237a9f6246c5e3e1f38bac2115bc452b\r\n', 300, 301, 'truncated data'), <traceback object at 0x0000019EB3046908>)
Error parsing contents of the VERSION file "d:\mo ri\VERSION-12.txt". Ensure the
file was generated with bitfit and not another tool. If the problem persists,
open a ticket at https://github.com/joswr1ght/bitfit/issues and attach the
VERSION file.
D:\logiciel\bitfit>
-- end --
thanks
Add -h option to show usage. Also show usage when command-line arguments are not understood (supporting --help, -?, etc.)
Add a command line argument to specify the alternate data chunk size (not just 64KB)
VERSION-SEC564-21-1.txt below and screenshot of output
`# bitfit 1.1.3 output generated on 2020-12-29 10:05:05.374000 by jorge
CheatSheets/Empire_modules.xlsx,79528d51c09104f443edbc0e98b197e3,665a75974116c1e52e4e47dfbcd1971a37c84d25
CheatSheets/PowerShell.pdf,854566aa250710ea441ef28404e6e99e,7ba5fe929d48fae4d3ae94ef02123236856246df
CheatSheets/PowerUp.pdf,54b40eadf4600dcb59005a114bb103ac,3a7ad9a9fd5e46ba9a007ae1133ac52c03a5973a
CheatSheets/PowerView.pdf,b55b75195df0c2fa1af0da7caa7d1de6,a3a8ba24a3bb3f407e529de8ee5c44a9a63af58c
CheatSheets/WindowsCommandLine.pdf,40760ce3a575ceef9884330b62780016,459c66332d30f508af9cb92ce9788559fb2cb17c
Frameworks and Methodologies/ABS Red Team Adversarial Attack Simulation Exercises Guidelines v1.0.pdf,b8992d6f0fee6cfc17687306eed30019,017a7443f7df30b87d68296834a1d815f9a7a177
Frameworks and Methodologies/Financial Entities Ethical Red Teaming Framework.pdf,83d36860da4eac4437ca6c082157cd33,e41d064b139890b5dd9ac95e0db3677d94e1d563
Frameworks and Methodologies/G7-penetration-testing-tests-penetration.pdf,2647a7acec770a00603bc82fc01fd454,82a6e08623c88f0ffedd2d0e2064ed1ee2e2b89a
Frameworks and Methodologies/GFMA - A Framework for the Regulatory Use of Penetration Testing in the Financial Services Industry.pdf,5eb6be8056f54e9506e5a798966ce8e2,eea2730de86872450b59f92cd542798a0393c444
Frameworks and Methodologies/HKMA CFI - Cyber Resilience Assessment Framework - Dec 2016.pdf,8eec1d7b77189e8721b8db1b95f21300,ec231aacbe8524074faea47455879eb1ed13b519
Frameworks and Methodologies/PurpleTeamExerciseFramework.pdf,41566e4e45367a0e774d548a1364c952,00eb3ebde9772745f6464061dcfba191b5c1c4c8
Frameworks and Methodologies/The-Unified-Kill-Chain.pdf,3c7d7abce58e0e715b1ba3bbd20a9bf0,4ced250a681b3267b2d59f31e28473fe1deda322
Frameworks and Methodologies/cbest-implementation-guide.PDF,a2b89a42113622ed6bd13d465954b8c5,05cc149c44f07cb5c7a91c6ac996a5c21a841bc4
Frameworks and Methodologies/ecb.1808tiber_eu_framework.en.pdf,52917146fa4dfd905b41c19ff8f54222,076d4ee27d9a8b7f38cec8184b457c4433cd5318
Frameworks and Methodologies/ecb.tiber_eu_framework.en.pdf,9e4d42a3685c05042468fe20a68e2f85,22bebc1249872f02a71b22fa2450fa45971f244b
Frameworks and Methodologies/ecb.tibereu.en.pdf,8f147252a89a74862d8393d4aef429d3,117667a64ee6742b6d89c44e8c562b239f2783b2
Release Notes for SANS Slingshot C2 Matrix 2020.12 – SEC564.rtf,737d87c525b281523f1005e1d5958e0d,28c5aea105202ec7980090f2bd841d2182c41c5d
Release Notes for SANS Windows 10 - SEC564.rtf,972a314f65d724a62557cc0084daac4d,d0ae3c590e21b84d94c4c0bbd5a41def46af8074
SANS Slingshot C2 Matrix 2020.12 – SEC564.zip,07bfcbcfd232412533705eda64b4d804,bfc73af438f8ccaf420569797143a648674616d4
SANS Windows 10 - SEC564.zip,03a21a11c18c4e1ee27bce0ef087f34a,6d895142e2203a7be2777080a8e799a1542de165
ThreatIntel/APT3/APT3_Adversary_Emulation_Field_Manual.xlsx,6ee1f5df73504bd6076a8e972e335a2d,3ea7fe1f9880c5d98804fe4c6b366e48532b4ed5
ThreatIntel/APT3/APT3_Adversary_Emulation_Plan.pdf,f30faef92a601645978e58bacd79c315,2b58b756b9ffbc592183ce2285dfc2594a157009
ThreatIntel/APT3/Adversary Emulation Plans - MITRE ATT&CK.pdf,e5f235663004afcb778d15080a7d91df,1bff542ee09625bb9dd1b25c1c18aa91b950eb6b
ThreatIntel/APT3/Carnal0wnage - More on APTSim.pdf,b74a662728a05d5314c2f75003e4facc,c9a201be2b69b2fa2abc848096970eb41506ba96
"ThreatIntel/APT3/FireEye - Clandestine Fox, Part Deux.pdf",75a756642fad20340869923bda69ca10,b0b668da55eefc3c26ccc5fb8af0b8de0b3ddbfd
ThreatIntel/APT3/FireEye - New Zero-Day Exploit targeting Internet Explorer Versions 9 through 11 Identified in Targeted Attacks.pdf,0f8b788ab87e6b3219ed8382812e3fef,cb9e74d73851f33ee44f9b4195255e09e1f3deb6
ThreatIntel/APT3/FireEye - Operation Clandestine Wolf.pdf,87b95b1c13a5b049cf3a45eb6d8d1751,1c46d772bb7a562a3245ec03d17c60bfb60e7ecd
"ThreatIntel/APT3/GroupAPT3, Gothic Panda, Pirpi, UPS Team, Buckeye, Threat Group-0110, TG-0110 - MITRE ATT&CK.pdf",8e7d7fd938c9ab1f458b8324d97a98b4,fcc93d0528cfed2c895e8774b9f7813ef6c7f00c
"ThreatIntel/APT3/PwC - A tale of Pirpi, Scanbox CVE-2015-3113.pdf",0ba943bcbbb01beb4339a6ae3be70a34,531e44a47a13f90dd5d1d5a98ee5093ad827e154
ThreatIntel/APT3/RECON-MTL-2017 - Evolution of Pirpi.pdf,fdc6244667c07a6ca476f87d20c6ea6e,4bae883feddc4e8b1c2593c848b7f434b125b6e4
ThreatIntel/APT3/Recorded Future - Research Concludes Chinese Ministry of State Security Behind APT3.pdf,84d44dc4ddd3411fab34282a414c679d,0bf6922d2a819d5cc318cd64bb2e06479cd70bb0
ThreatIntel/APT3/Symantec - Buckeye cyberespionage group shifts gaze from US to Hong Kong.pdf,e438c2d91fbdfc7da6c1a847dc7b584d,b2eb0232d2a0ed9df230b85ea6f251c7ee719394
ThreatIntel/APT33/FireEye-APT33.pdf,aa641679375ad1705142c2a8e84b6900,c4b845157dfc1e684201948c82a6991ee8f9b568
ThreatIntel/APT33/FireEye-OVERRULED.pdf,b1bc788bec94c11bc8ce655012eb3baa,50b3d8de21c45d34a8d82ffe0507bdb60259b187
ThreatIntel/APT33/Symantec-Elfin.pdf,8ef6eb807824a89791b2deb0e0057cd6,aae7c744e65167ff78bfcfe945574a313c32a543
ThreatIntel/summit_archive_1536260992.pdf,a18f12a5dc7c1ac76b57ff210bbe196d,2dca6eeb812ae1fa81a5aaa2c84072cf9813bf55
`
Meeas-MBP15:SEC642 justin$ pwd
/Volumes/SEC642
Meeas-MBP15:SEC642 justin$ bitfit.py -v .
Error: I can't find a VERSION-*.txt file in .. Make sure the file exists, has a filename extension of
".txt" and is readable, then try again.
Meeas-MBP15:SEC642 justin$ ls -l
total 6030168
drwxrwxrwx@ 1 justin staff 4096 May 23 14:38 Optional Software
-rwxrwxrwx@ 1 justin staff 91736 Aug 5 07:44 SEC642 Student Instructions.pdf
-rwxrwxrwx 1 justin staff 3087342102 Jul 12 11:44 SamuraiWTF-3.4.vmwarevm.zip
-rwxrwxrwx 1 justin staff 3407 Aug 5 08:31 VERSION-SEC642-16-1.txt
Meeas-MBP15:SEC642 justin$ python
Python 2.7.11 (default, Mar 10 2016, 09:47:20)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
When in validation mode, if the VERSION txt file is not consistent with bitfit.py output, refuse to validate and display an error message instead
can assign to me
update readme.md to reflect "-t" flag
can't assign this to myself - I'll do this today or tomorrow
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.