File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ 1 . [ ** V1.1.7 - File Scanner & Readme - ` aa3379b ` ** ] ( https://github.com/0xGrayy/malwareSniffer/commit/aa3379bd69c182a7946a82674a42d1fa6ce9829b )
121 . [ ** V1.1.7 - File Scanner - ` 34c4c55 ` ** ] ( https://github.com/0xGrayy/malwareSniffer/commit/34c4c552c02d1e6413b15132813dac4f187350c3 )
231 . [ ** V1.1.6 - Edited Readme & new changelog - ` fc0e0ac ` ** ] ( https://github.com/0xGrayy/malwareSniffer/commit/fc0e0accbfbf4dbfb26fb48fabc4f94c84f46138 )
341 . [ ** V1.1.6 - Edited Readme - ` d3df0be ` ** ] ( https://github.com/0xGrayy/malwareSniffer/commit/d3df0be198ba1e3065886103f477872420ab49b1 )
Original file line number Diff line number Diff line change 11{
22 "name" : " malwaresniffer" ,
3- "version" : " 1.1.7 " ,
3+ "version" : " 1.1.8 " ,
44 "main" : " index.js" ,
55 "scripts" : {
66 "test" : " echo \" Error: no test specified\" && exit 1" ,
77 "build" : " npx tsc" ,
88 "start" : " node dist/index.js" ,
99 "autobuild" : " npx tsc -w" ,
1010 "autostart" : " cls && npx tsc && node dist/index.js" ,
11- "push" : " git add . && git commit -m \" V1.1.7 - File Scanner & Readme \" && git push" ,
11+ "push" : " git add . && git commit -m \" V1.1.8 \" && git push" ,
1212 "changelog" : " git log --pretty=format:\" 1. [**%s - `%h`**](https://github.com/0xGrayy/malwareSniffer/commit/%H)\" > CHANGELOG.md"
1313 },
1414 "keywords" : [],
15- "author" : " " ,
16- "license" : " ISC" ,
17- "description" : " " ,
15+ "author" : [
16+ " RlxChap2" ,
17+ " 0xGrayy"
18+ ],
19+ "license" : " MIT" ,
20+ "description" : " New Feature that using AI with (VirusTotal) to detect the malwares" ,
1821 "dependencies" : {
1922 "axios" : " ^1.7.9" ,
2023 "chalk" : " ^5.4.1" ,
Original file line number Diff line number Diff line change @@ -53,14 +53,15 @@ export async function scanFile(filePath: string): Promise<void> {
5353
5454 console . log ( chalk . cyan ( `📁 File Size: ${ fileSizeMB . toFixed ( 2 ) } MB` ) ) ;
5555
56- // Calculate file hash (SHA-256)
56+ // Calculate file hash (SHA-256) to check for duplicates
5757 const fileBuffer = fs . readFileSync ( filePath ) ;
5858 const fileHash = crypto
5959 . createHash ( "sha256" )
6060 . update ( fileBuffer )
6161 . digest ( "hex" ) ;
6262 console . log ( chalk . cyan ( `🔑 SHA-256: ${ fileHash } ` ) ) ;
6363
64+ // Start Timer for scan
6465 const startTime = moment ( ) ;
6566
6667 // First check if the file has been previously scanned using its hash
You can’t perform that action at this time.
0 commit comments