Search found 7 matches

by kornkaobat
08 Jun 2020 07:47
Forum: DOS Batch Forum
Topic: Risk Remover Batch Antivirus ( Scanner Component )
Replies: 0
Views: 688

Risk Remover Batch Antivirus ( Scanner Component )

This is a fully fletched MD5 malware scanner complete with explanation of the public Source Code and general demonstration of how to use it properly. Explanation & Complete demonstration Video: https://youtu.be/lP_tto5J7Y4 Download: https://riskremove.blogspot.com/p/download.html Source Code: https:...
by kornkaobat
08 Jun 2020 00:28
Forum: DOS Batch Forum
Topic: Batch substring code not working
Replies: 6
Views: 902

Re: Batch substring code not working

...I understand that the first grep returns "036D9462A5", but then what? for /f "tokens=1* delims= " %%a in (disktest.txt) do echo %%a | %~dp0\grep.exe -Eo "^.{10}" | %~dp0\fgrep.exe -i -f - %$base% >nul 1. Seperate contents in disktest.txt into 2 tokens, namely %%a %%b using space as a delimiter: ...
by kornkaobat
05 Jun 2020 10:44
Forum: DOS Batch Forum
Topic: Batch substring code not working
Replies: 6
Views: 902

Re: Batch substring code not working

call :GetUnixTime utimebefore REM Fix %a:~0,10% syntax usage -- Fixed using grep and batch piping for /f "tokens=1* delims= " %%a in (disktest.txt) do echo %%a | %~dp0\grep.exe -Eo "^.{10}" | %~dp0\fgrep.exe -i -f - %$base% >nul call :GetUnixTime utimeafter Fixed using grep powerful command extensi...
by kornkaobat
05 Jun 2020 06:30
Forum: DOS Batch Forum
Topic: Batch substring code not working
Replies: 6
Views: 902

Re: Batch substring code not working

Code: Select all

setlocal EnableDelayedExpansion
for /f "tokens=1* delims= " %%a in (disktest.txt) do set "comp=!%%a!" && %~dp0\fgrep.exe -i %comp:~0,10% %$base% >nul
setlocal DisableDelayedExpansion
Still didn't work ( comp variable contains ECHO is off ) . I do not quite grasp the concept of ENV variable anyways.
by kornkaobat
04 Jun 2020 03:55
Forum: DOS Batch Forum
Topic: Batch substring code not working
Replies: 6
Views: 902

Batch substring code not working

When %VAR:~0,10% is used in the following code, the code doesn't "refresh" the first 10 characters of the %VAR% when new VAR is set using for loop. for /f "tokens=1* delims= " %%a in (disktest.txt) do %~dp0\fgrep.exe -i %a:~0,10% %$base% >nul P.S. The contents in disktest.txt is structured as follow...
by kornkaobat
22 May 2020 05:11
Forum: DOS Batch Forum
Topic: Non-destructive access denied bypass for malware scanner
Replies: 2
Views: 813

Re: Non-destructive access denied bypass for malware scanner

It is only a hobby project but, the original goal is to increase command line compatibility and use as much native windows library as possible.
by kornkaobat
13 May 2020 05:41
Forum: DOS Batch Forum
Topic: Non-destructive access denied bypass for malware scanner
Replies: 2
Views: 813

Non-destructive access denied bypass for malware scanner

I'm doing a batch MD5 malware scanner. Some items (files & directories) were off-limits to fourmilab's http://www.fourmilab.ch/md5/ MD5 Digester : Including both files and directories that were simply "Access Denied" and some files that the MD5 digester cannot open. The goal of fixing this is to mak...