My batch code coming up as virus please help!!

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rasil
Posts: 12
Joined: 23 Apr 2020 13:05

My batch code coming up as virus please help!!

#1 Post by rasil » 31 Oct 2020 10:36

hello everyone,

I have a coded batch file called docx but when i convert it to a exe file windows defender immediately flags it as malicious :!: . I did a virus total scan and it came up with several warnings and errors. I was considering creating a download link because the code is very long (1109 lines to be exact) but many people wouldn't download it (witch is totally understandable) so i have just copy pasted the code below with all the links to the mentioned products/websites.

LINKS:
(Please right click on the links and open in a new tab)
Virus total scan link: https://www.virustotal.com/gui/file/182 ... /detection
Bat2exe product link: https://misterslimm.wordpress.com/slimm-solutions/
Docx original website link: https://docxofficial.netlify.app/download.html

DOCX CODE

Code: Select all

@echo off
if not exist runfapp.fapp exit
del runfapp.fapp
setlocal  ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
title Docx
color f0
mode 80,25
if exist allsyscheck.dev goto mainmenu
if exist offsyscheckonn.dev goto colortest
if exist noguidev.dev goto nogui
:deveploroptions
if not exist devmenu.bat goto errornodevmenufile
if not exist dev.ini goto testiftheresafilethere
if exist dev.ini goto devoption
:testiftheresafilethere
if not exist error_codes.txt goto infonofiles
if exist error_codes.txt goto testprofile
:testprofile
if exist debug_part1.deb goto debuggingmode
if exist debug_part2.deb goto debuggingmode
if exist debug_part3.deb goto debuggingmode
if exist debug_part4.deb goto debuggingmode
if exist debug_part5.deb goto debuggingmode
if not exist profile.sgf goto makeprofile
if exist profile.sgf goto test1
:test1
if not exist doxgui.bat goto errornofile
if exist doxgui.bat goto colortest
:colortest
if not exist color1.sgf goto colortest1 
if exist color1.sgf goto makecolor1

:colortest1
if not exist color2.sgf goto colortest2
if exist color2.sgf goto makecolor2

:colortest2
if not exist color3.sgf goto colortest3 
if exist color3.sgf goto makecolor3

:colortest3
if not exist color4.sgf goto colortest4 
if exist color4.sgf goto makecolor4

:colortest4
if not exist color5.sgf goto colortest5 
if exist color5.sgf goto makecolor5

:colortest5
if not exist color6.sgf goto colortest6 
if exist color6.sgf goto makecolor6

:colortest6
if not exist color7.sgf goto colortest7 
if exist color7.sgf goto makecolor7

:colortest7
if not exist color8.sgf goto colortest8 
if exist color8.sgf goto makecolor8

:colortest8
if not exist color9.sgf goto makeprofile 
if exist color9.sgf goto makecolor9

:makecolor1
color f4
goto main

:makecolor2
color f1
goto main

:makecolor3
color f7
goto main

:makecolor4
color f2
goto main

:makecolor5
color f3
goto main

:makecolor6
color f5
goto main

:makecolor7
color f6
goto main

:makecolor8
color f8
goto main

:makecolor9
color f9
goto main


:makeprofile
del color1.sgf
cls
del color2.sgf
cls
del color3.sgf
cls
del color4.sgf
cls
del color5.sgf
cls
del color6.sgf
cls
del color7.sgf
cls
del color8.sgf
cls
del color9.sgf
cls
del profile.sgf
del guiprofile.sgf
cls
echo.
echo `````````````````````````````````````````````
echo `            First time setup               `
echo `                                           `       
echo `  We would like to ask you some questions. `                        
echo `  this program has a varsav feature.       `
echo `  please anwser these questions correctly. `
echo `                                           `
echo `        press any key to continue          `
echo `                                           `
echo `````````````````````````````````````````````
echo.
pause>nul
goto makename

:makename
cls
echo.
echo ``````````````````````````                        
echo `         Name           `
echo `                        `
echo `   please enter your    `
echo `    username below!     `
echo `                        `
echo ``````````````````````````
set /p name=":"
ping localhost -n 1 > nul
cls
goto makegui

:makegui
cls
echo.
echo ``````````````````````````                        
echo `         Gui            `
echo `                        `
echo ` Do you want graphical  `
echo `    user interface?     `
echo `          y/n           `
echo `   recommended option   `
echo `          is y          `
echo `                        `
echo ``````````````````````````
Set /p guioption=:
if /i '%guioption%'=='y' goto makecolour
if /i '%guioption%'=='n' goto nogui
goto errorgui1

:nogui
cls
echo.
echo ``````````````````````````                        
echo `         Gui            `
echo `                        `
echo ` Do you want graphical  `
echo `    user interface?     `
echo `          y/n           `
echo `   recommended option   `
echo `          is y          `
echo `                        `
echo ``````````````````````````
echo.
echo -this is not recommended are you sure? y/n
Set /p guioption=:
if /i '%guioption%'=='n' goto makegui
ping localhost -n 1 > nul
cls
(

echo user-defined-option.*&graphical`interface_option-user&chose''no

)>guiprofile.sgf
goto makecolour

:makecolour
cls
echo ```````````````````````````
echo `1) red                   `
echo `2) blue                  `
echo `3) white(not recommended)`    
echo `4) green                 ` 
echo `5) cyan (aqua)           `
echo `6) purple                `
echo `7) yellow                `
echo `8) gray(not recommended) `
echo `9)light blue             `
echo ```````````````````````````
ping localhost -n 1 > nul
echo.
Set /p coloroption=:
if /i '%coloroption%'=='1' goto red
if /i '%coloroption%'=='2' goto blue
if /i '%coloroption%'=='3' goto white
if /i '%coloroption%'=='4' goto green
if /i '%coloroption%'=='5' goto cyan
if /i '%coloroption%'=='6' goto purple
if /i '%coloroption%'=='7' goto yellow
if /i '%coloroption%'=='8' goto grey
if /i '%coloroption%'=='9' goto lightblue
goto errorcolor

:red
(

echo f4

)>color1.sgf
goto saveprofile
:blue
(

echo f$

)>color2.sgf
goto saveprofile
:white
(

echo fc

)>color3.sgf
goto saveprofile
:green
(

echo %nff

)>color4.sgf
goto saveprofile
:cyan
(

echo %nrff

)>color5.sgf
goto saveprofile
:purple
(

echo %nrfr

)>color6.sgf
goto saveprofile
:yellow
(

echo %rfrf

)>color7.sgf
goto saveprofile
:grey
(

echo %nrfrf

)>color8.sgf
goto saveprofile
:lightblue
(

echo %rff

)>color9.sgf
goto saveprofile
:saveprofile
cls
color F2
echo.
echo ``````````````````````````                        
echo `         Done!          `
echo `                        `
echo `   Saving your profile  `
echo ` please wait until done `
echo `  Do not close program  `
echo ``````````````````````````
ping localhost -n 2 > nul
ping localhost -n 2 > nul
ping localhost -n 2 > nul
ping localhost -n 2 > nul
(

echo %name%

)>profile.sgf
goto testprofile

:main
if not exist guiprofile.sgf goto mainmenu
if exist guiprofile.sgf goto nogui


:mainmenu
if exist color8.sgf goto colorerrorcannotsee
goto mainmenu1

:debugingfis
if %debug_part1%==$docx_file$ goto debugcortsct
if exist debugcrt.deb goto wronentrypointerror
cls
echo -an error occurd 
echo -error code:4WQ3C
echo -press any key to exit
pause>nul
exit
:debugcortsct
if %debug_part5%==$docx_file$ goto cooolrcchheckd
if exist debugcrt.deb goto wronentrypointerror2
cls
echo -an error occurd 
echo -error code:4WQ5C
echo -press any key to exit
pause>nul
exit
:wronentrypointerror2
cls
echo -an unknown error occurd 
echo -error code:4WQ4C
echo -press any key to exit
pause>nul
exit
:wronentrypointerror
cls
echo -an unknown error occurd 
echo -error code:4WQ2C
echo -press any key to exit
pause>nul
exit
:cooolrcchheckd
cls
color %debug_part3%
goto customisemmenu
:customisemmenu
cls
goto %debug_part4%
del docx.doc
del doxgui.doc
set /p name=<profile.sgf
cls
echo.
echo `````````````````````````````````````````````
echo `            %debug_part2%                  `
echo `                                           `       
echo `  1)Create a new document                  `                        
echo `  2)open a document              ```````````
echo `  3)delete a document            `Running  `
echo `  4)help                         ` varsav  `
echo `  5)exit                         ` v3.02   `
echo `  6)delete profile               `         `
echo `````````````````````````````````````````````
echo.
Set /p menu=:
if /i '%menu%'=='1' goto newdoc
if /i '%menu%'=='2' goto opendoc
if /i '%menu%'=='3' goto deletedoc
if /i '%menu%'=='4' goto help
if /i '%menu%'=='5' goto exit
if /i '%menu%'=='6' goto delprofile
goto errormenuw
:mainmenu1
cls
del docx.doc
del doxgui.doc
set /p name=<profile.sgf
cls
echo.
echo `````````````````````````````````````````````
echo `            Welcome %name%                 `
echo `                                           `       
echo `  1)Create a new document                  `                        
echo `  2)open a document              ```````````
echo `  3)delete a document            `Running  `
echo `  4)help                         ` varsav  `
echo `  5)exit                         ` v3.02   `
echo `  6)delete profile               `         `
echo `  7)Encrypt
echo `````````````````````````````````````````````
echo.
Set /p menu=:
if /i '%menu%'=='1' goto newdoc
if /i '%menu%'=='2' goto opendoc
if /i '%menu%'=='3' goto deletedoc
if /i '%menu%'=='4' goto help
if /i '%menu%'=='5' goto exit
if /i '%menu%'=='6' goto delprofile
if /i '%menu%'=='7' goto encryptmenu
goto errormenuw
:help
cls
echo -sorry at the moment this is work in progress
echo -please get a upgraded virsion for this feature to work
echo -press any key to go back to main menu!
pause>nul
goto mainmenu
:delprofile
cls
echo.
echo ``````````````````````````                        
echo ` Are you sure you want  `
echo ` to delete your profile `
echo ` you cannot rollback    `
echo `       changes!         `
echo `         y/n            `
echo ``````````````````````````
Set /p menu=:
if /i '%menu%'=='y' goto deleteconferm
if /i '%menu%'=='n' goto mainmenu
:deleteconferm
cls
echo.
echo ``````````````````````````                        
echo `  deleteing all your    `
echo `   profile content      `
echo `        %name%          `
echo `     please wait        `
echo `please dont close program`
echo ``````````````````````````
ping localhost -n 2 > nul
ping localhost -n 2 > nul
ping localhost -n 2 > nul
ping localhost -n 2 > nul
del color1.sgf
cls
del color2.sgf
cls
del color3.sgf
cls
del color4.sgf
cls
del color5.sgf
cls
del color6.sgf
cls
del color7.sgf
cls
del color8.sgf
cls
del color9.sgf
cls
del profile.sgf
cls
del guiprofile.sgf
cls
del manifest.dll
cls
del infoptiono.dll
cls
del infoption.dll
cls
del falesafe.fsav
Cls
del colorpr.dll
Cls
echo.
echo `````````````````````````
echo ` Successfully deleted  `
echo `````````````````````````
echo.
pause
goto testiftheresafilethere
:deletedoc
cls
echo.
echo ``````````````````````````                        
echo ` enter a name for the   `
echo ` document you want to   `
echo `       delete           `
echo `       %name%           `
echo `                        `
echo ``````````````````````````
set /p delete=":"
if not exist %delete%.doc goto errornofilename2
if exist %delete%.doc goto proseed2
:proseed2
Cls
echo.
echo `````````````````````````
echo ` Successfully deleted  `
echo `````````````````````````
echo.
del %delete%.doc
echo.
pause
goto main
:opendoc
cls
echo.
echo ``````````````````````````                        
echo `  name of the document  `
echo `        %name%          `
echo `                        `
echo `  Hit enter after done  `
echo `                        `
echo ``````````````````````````
set /p load=":"
if not exist %load%.doc goto errornofilename
if exist %load%.doc goto proseed
:proseed
cls
set /p doc=<%load%.doc
echo.
echo `````````````````````````
echo ` this is your document `
echo `````````````````````````
echo.
echo %doc%
echo.
pause
goto main

:newdoc
if exist docload10.set goto errorcannotcreateanymoredocs
cls
echo.
echo ``````````````````````````                        
echo `   type your document   `
echo `        %name%          `
echo `                        `
echo `  Hit enter after done  `
echo `                        `
echo ``````````````````````````
set /p namem=":"
cls
echo.
echo ``````````````````````````                        
echo `  please enter a name   `
echo `   for your document    `
echo `       %name%           `
echo `  you will be needing   `
echo `      this later        `
echo ``````````````````````````
set /p savefile=":"
goto nextstep
:nextstep
if not exist %savefile%.doc goto saveingdoc
if exist %savefile%.doc goto errordifferentfilename
:saveingdoc
cls
echo.
echo `````````````````````````
echo ` saveing your document `
echo `````````````````````````
echo.
(

echo %namem%

)>%savefile%.doc



(
ping localhost -n 2 > nul
ping localhost -n 2 > nul
ping localhost -n 2 > nul
del batchaibobtp15.vbs
cls
goto testfilenameifitsgood

:testfilenameifitsgood
cls
if %savefile%==docx goto errorinvalisfilename else goto success1
:success1
cls
if %savefile%==doxgui goto errorinvalisfilename else goto success

:success
cls
del batchaibobtp15.vbs
cls
echo.
echo `````````````````````````
echo `       Success!        `
echo `````````````````````````
echo.
pause
cls
del batchaibobtp15.vbs
cls
goto main

:errornofile
if exist errorgui.dev goto errornofile1
echo x=msgbox("fatal error files required to startup are missing! error code:4WQXA",0+48," ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
exit
:errornofile1
cls
echo -fatal error files required to startup are missing! error code:4WQXA press any key to exit
echo.
pause
exit
:nogui
(

echo falesaveconfig_file

)>falesafe.fsav
call "doxgui.bat"

:errorencryptiondocname
echo x=msgbox("Cannot Find document Wrong Name or missplet",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto encryptmenu
:errorgui1
if exist errorgui.dev goto errorgui11
echo x=msgbox("invalid option please choose a option form the letters given! or visit the help page",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto makegui
:errorencrupysettijgdfgksgfklsfhjg
echo x=msgbox("invalid option please choose a option form the letters given! or visit the help page",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto encryptmenu
:errorgui11
cls
echo -invalid option please choose a option form the letters given! or visit the help page
echo.
pause
goto makegui
:errorcolor
if exist errorgui.dev goto errorcolor1
echo x=msgbox("invalid option please choose a option form the numbers given! or visit the help page",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto makecolour
:errorcolor1
cls
echo -invalid option please choose a option form the numbers given! or visit the help page
echo.
pause
goto makecolour
:errormenuw
if exist errorgui.dev goto errormenuw1
echo x=msgbox("invalid option please choose a option form the numbers given! or visit the help page",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto main
:errormenuw1
cls
echo -invalid option please choose a option form the numbers given! or visit the help page
echo.
pause
goto main
:errornofilename
if exist errorgui.dev goto errornofilename1
echo x=msgbox("Error the file does not exist. error code:4WQ5A",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto opendoc
:errornofilename1
cls
echo -Error the file does not exist. error code:4WQ5A
echo.
pause
goto opendoc

:errornofilename2
if exist errorgui.dev goto errornofilename21
echo x=msgbox("Error the file does not exist. error code:4WQUA",0+48,"ERROR") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs
ping localhost -n 2 > nul
del batchaibobtp15.vbs
goto deletedoc
:errornofilename21
cls
echo -Error the file does not exist. error code:4WQUA
echo.
pause
goto deletedoc
:errorinvalisfilename
if exist errorgui.dev goto errorinvalisfilename1
echo x=msgbox("An error occured durning the rename procress. error code:4WQ9A",0+48,"ERROR") >> "batchaibobtp11.vbs"
start batchaibobtp11.vbs
ping localhost -n 2 > nul
del batchaibobtp11.vbs
del docx.doc
cls
del doxgui.doc
cls
goto newdoc
:errorinvalisfilename1
cls
del docx.doc
cls
del doxgui.doc
cls
echo -An error occured durning the rename procress. error code:4WQ9A
echo.
pause
goto newdoc
:infonofiles
if not exist manifest.dll goto infoo
if exist manifest.dll goto choiceinfo
:infoo
echo x=msgbox("could not locate error_codes.txt file! this means you cannot look up error codes.",0+64,"INFO") >> "batchaibobtp15.vbs"
start batchaibobtp15.vbs 
ping localhost -n 2 > nul
del batchaibobtp15.vbs
(

echo falesaveconfig_file

)>manifest.dll
goto testprofile
:choiceinfo
if not exist infoptiono.dll goto choiceinfo1
if exist infoptiono.dll goto testprofile
:choiceinfo1
if not exist infoption.dll goto thisismain
if exist infoption.dll goto delmainfest
:delmainfest
del manifest.dll
goto infonofiles
:thisismain
cls
echo -do you want info messages? y/n 
echo.
echo         y=yes  n=no 
echo.
echo you can revert any changes by
echo deleteing your profile in main menu!
Set /p menun=:
if /i '%menun%'=='y' goto yesinfo
if /i '%menun%'=='n' goto noinfo
goto choiceinfo
:noinfo
(

echo falesaveconfig_file

)>infoptiono.dll
goto testiftheresafilethere
:yesinfo
(

echo falesaveconfig_file

)>infoption.dll
goto testiftheresafilethere
:errordifferentfilename
if exist errorgui.dev goto errordifferentfilename1
echo x=msgbox("That file already exist please try a different name. error code:4WQBA",0+48,"ERROR") >> "batchaibobtp11.vbs"
start batchaibobtp11.vbs
ping localhost -n 2 > nul
del batchaibobtp11.vbs
goto newdoc
:errordifferentfilename1
cls
echo -That file already exist please try a different name. error code:4WQBA
echo.
pause
goto newdoc
:devoption
if exist prmopendev.dev goto testiftheresafilethere
cls
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
ping localhost -n 1 > nul
set /p devvar=<dev.ini
if %devvar%==dev.bypassing8yes.user.chose8yes goto devmenu
cls
echo -error unable to read dev.ini file 
echo.
echo -your input: %devvar%
echo.
echo -press any key to exit or press y to try again.
Set /p menun=:
if /i '%menun%'=='y' goto devoption
pause>nul
exit
:devmenu
(

echo falesaveconfig_file

)>devmenuaccess.dev
cls
echo -please confgure the devmenu.bat
echo -to continue press any key to exit
echo -if this message pristist 
echo -error code:4WQ2B please check the error_codes.txt file
pause>nul
exit 

:errormmendevoff
echo -an error occurd devmenu.bat not confgured! 
echo -error code:4WQ2B please check the error_codes.txt file
echo -for more info press any key to exit.
pause>nul
exit

:errornodevmenufile
if exist errorgui.dev goto errornodevmenufile1
echo x=msgbox("system files missing please have a look in the error_codes.txt file error code:4WQjA",0+48,"ERROR") >> "batchaibobtp11.vbs"
start batchaibobtp11.vbs
ping localhost -n 2 > nul
del batchaibobtp11.vbs
exit
:errornodevmenufile1
cls
echo -system files missing please have a look in the error_codes.txt file error code:4WQjA
echo.
pause
exit

:colorerrorcannotsee
if exist byscol.ini goto byscolsettingsdection
cls
color f0
if exist colorpr.dll goto mainmenu1
(

echo falesaveconfig_file

)>colorpr.dll
echo -you will not see any written text if you chose color grey 
echo -please refer to the error_codes.txt file and find this error code:
echo -4WQPA
echo.
echo -we have chosen the dafult f0 color.
pause
goto mainmenu1

:byscolsettingsdection
set /p devvarg=<byscol.ini
if %devvarg%==user(.manek;chose-yes goto mainmenu1
cls
echo -error unable to read byscol.ini file 
echo.
echo -your input: %devvarg%
echo.
echo -press any key to exit.
pause>nul
exit



:debuggingmode
if not exist debug.ini goto debuggingmodenotenables
set /p debuggingd=<debug.ini
if %debuggingd%==user.8chose.yeee.o0yes goto correctdebugging
echo -unable to read debug.ini file 
echo -your input %debuggingd%
echo -press any key to exit
pause>nul
exit
:correctdebugging
if not exist debug_part1.deb goto notenoughtilfes
if not exist debug_part2.deb goto notenoughtilfes
if not exist debug_part3.deb goto notenoughtilfes
if not exist debug_part4.deb goto notenoughtilfes
if not exist debug_part5.deb goto notenoughtilfes
cls
echo -entering debugging mode please wait
echo.
echo -screen might look stuck but its not!
ping localhost -n 6 > nul
cls
echo -successfully loded into debuging mode 
echo.
echo -press any key to load files!
pause>nul
cls
echo -loading all scrypt files please wait
echo. 
echo -screen might look stuck but its not!
ping localhost -n 6 > nul
set /p debug_part1=<debug_part1.deb
set /p debug_part2=<debug_part2.deb
set /p debug_part3=<debug_part3.deb
set /p debug_part4=<debug_part4.deb
set /p debug_part5=<debug_part5.deb
goto integritycheckallfilesmeusintegritycheckallfilesmeus
:integritycheckallfilesmeusintegritycheckallfilesmeus
cls 
echo -done loading would you like to integrity
echo -check all scrypt files?
echo -type y/n y=yes n=no
Set /p menu=:
if /i '%menu%'=='y' goto integritycheckallfiles
if /i '%menu%'=='n' goto cuntiunewithoutintegrity
if /i '%menu%'=='Y' goto integritycheckallfiles
if /i '%menu%'=='N' goto cuntiunewithoutintegrity
if /i '%menu%'=='yes' goto integritycheckallfiles
if /i '%menu%'=='no' goto cuntiunewithoutintegrity
if /i '%menu%'=='YES' goto integritycheckallfiles
if /i '%menu%'=='NO' goto cuntiunewithoutintegrity
goto integritycheckallfilesmeus
:cuntiunewithoutintegrity
goto debugingfis

:integritycheckallfiles
cls
echo -checking all files please wait and see your results
ping localhost -n 3 > nul
echo.
if %debug_part1%==$docx_file$ goto debug_part1correct
cls
echo -invalid string entrypoint. %debug_part1%
ping localhost -n 3 > nul
goto debug_part2
:debug_part1correct
cls
echo -successfully loded. %debug_part1%
ping localhost -n 3 > nul
goto debug_part2

:debug_part2
cls
echo -successfully loded. %debug_part2%
ping localhost -n 3 > nul
goto debug_part3

:debug_part3
if %debug_part3%==f4 goto colorcorrectdebug
if %debug_part3%==f1 goto colorcorrectdebug
if %debug_part3%==f7 goto colorcorrectdebug
if %debug_part3%==f2 goto colorcorrectdebug
if %debug_part3%==f3 goto colorcorrectdebug
if %debug_part3%==f5 goto colorcorrectdebug
if %debug_part3%==f6 goto colorcorrectdebug
if %debug_part3%==f8 goto colorcorrectdebug
if %debug_part3%==f9 goto colorcorrectdebug
cls
echo -invalid string colourpoint. %debug_part3%
ping localhost -n 3 > nul
goto debug_part4
:colorcorrectdebug
cls
echo -successfully loded. %debug_part3%
ping localhost -n 3 > nul
goto debug_part4

:debug_part4
if %debug_part4%==makename goto correctwarp
if %debug_part4%==makecolour goto correctwarp
if %debug_part4%==main goto correctwarp
if %debug_part4%==mainmenu1 goto correctwarp
if %debug_part4%==deleteconferm goto correctwarp
if %debug_part4%==delprofile goto correctwarp
if %debug_part4%==deletedoc goto correctwarp
if %debug_part4%==proseed2 goto correctwarp
if %debug_part4%==newdoc goto correctwarp
if %debug_part4%==success goto correctwarp
if %debug_part4%==errornofile goto correctwarp
cls
echo -invalid string warpoint. %debug_part4%
ping localhost -n 3 > nul
goto debug_part5
:correctwarp
cls
echo -successfully loded. %debug_part4%
ping localhost -n 3 > nul
goto debug_part5

:debug_part5
if %debug_part5%==$docx_file$ goto debug_part1correct1
cls
echo -invalid string endpoint. %debug_part5%
ping localhost -n 3 > nul

:debug_part1correct1
cls
echo -successfully loded. %debug_part5%
ping localhost -n 3 > nul
(

echo falesaveconfig_file

)>debugcrt.deb
goto debugingfis

:debuggingmodenotenables
cls
echo -error cannot enable debugging mode 
echo -error code :4WQ1C
echo -press any key
pause>nul
exit

:notenoughtilfes
cls
echo -missing debug part files
echo -error code :4WQ2C
echo -press any key
pause>nul
exit


:integritycheckallfilesmeus
cls
echo -choose y/n try again!
echo -press any key
pause>nul
goto integritycheckallfilesmeusintegritycheckallfilesmeus

:encryptmenu
cls
echo -1)Encrypt a document
echo -2)View a Document
Set /p menu=:
if /i '%menu%'=='1' goto :encryptmenu1
if /i '%menu%'=='2' goto viewdocincrypt
goto errorencrupysettijgdfgksgfklsfhjg
:viewdocincrypt
cls
echo -please type the Document name 
Set /p viewdocnameencrypt=:
if not exist %viewdocnameencrypt%.doc goto incalidnamegtamane
set /p documentencryptcontence=<%viewdocnameencrypt%.doc
(set CHAR[uDFM45]=a) & (set CHAR[H21DGF]=b) & (set CHAR[FDH56D]=c) & (set CHAR[FGS546]=d) & (set CHAR[JUK4JH]=e)
(set CHAR[ERG54S]=f) & (set CHAR[T5H4FD]=g) & (set CHAR[RG641G]=h) & (set CHAR[RG4F4D]=i) & (set CHAR[RT56F6]=j)
(set CHAR[VCBC3B]=k) & (set CHAR[F8G9GF]=l) & (set CHAR[FD4CJS]=m) & (set CHAR[G423FG]=n) & (set CHAR[F45GC2]=o)
(set CHAR[TH5DF5]=p) & (set CHAR[CV4F6R]=q) & (set CHAR[XF64TS]=r) & (set CHAR[X78DGT]=s) & (set CHAR[TH74SJ]=t)
(set CHAR[bCX6DF]=u) & (set CHAR[FG65SD]=v) & (set CHAR[4KL45D]=w) & (set CHAR[GFH3F2]=x) & (set CHAR[GH56GF]=y)
(set CHAR[45T1FG]=z) & (set CHAR[D4G23D]=1) & (set CHAR[GB56FG]=2) & (set CHAR[sF45GF]=3) & (set CHAR[P4FF12]=4)
(set CHAR[F6DFG1]=5) & (set CHAR[56FG4G]=6) & (set CHAR[uSGFDG]=7) & (set CHAR[FKHFDG]=8) & (set CHAR[iFGJH6]=9)
(set CHAR[87H8G7]=0) & (set CHAR[G25GHF]=@) & (set CHAR[45FGFH]=#) & (set CHAR[75FG45]=$) & (set CHAR[54GDH5]=*)
(set CHAR[45F465]=() & (set CHAR[HG56FG]=.) & (set CHAR[DF56H4]=,) & (set CHAR[F5JHFH]=-) & (set CHAR[sGF4HF]= )
(set CHAR[45GH45]=\) & (set CHAR[56H45G]=/)
set Decrypt=%documentencryptcontence%
set Decrypt2=%Decrypt%
set "DecryptOut="
:decrypt2
set char=%Decrypt2:~0,6%
set Decrypt2=%Decrypt2:~6%
set DecryptOut=%DecryptOut%!CHAR[%char%]!
if not "%Decrypt2%"=="" goto decrypt2
set string=%DecryptOut%
set temp_str=%string%
set str_len=0
:lengthloop
if defined temp_str (
set temp_str=%temp_str:~1%
set /A str_len += 1
goto lengthloop )
cls
echo Your document: %DecryptOut%
echo.
echo.
pause
goto mainmenu1

:incalidnamegtamane
cls
echo -that file does not exist make sure that 
echo -you have copied over the document
pause
goto viewdocincrypt
:encryptmenu1
cls
echo -To Make Encrypted Documents 
echo -You need DocEncrypter
echo.
echo -Type the document name you want to encrypt
Set /p encryptdocname=:
if not exist %encryptdocname%.doc goto errorencryptiondocname
if exist docname.ins del "docname.ins"
echo %encryptdocname%>docname.ins
cls
echo -you have successfully configured your document 
echo -now put *docname.ins* and *%encryptdocname%.doc*
echo -where DocEncrypter is located! and run DocEncrypter
echo.
echo -press any key to go to main menu
pause>nul
goto mainmenu1

aGerman
Expert
Posts: 4008
Joined: 22 Jan 2010 18:01
Location: Germany

Re: My batch code coming up as virus please help!!

#2 Post by aGerman » 31 Oct 2020 11:00

rasil wrote:
31 Oct 2020 10:36
Bat2exe
Don't! viewtopic.php?t=5908#p36858
This is NOT a Batch issue, just leave the Batch script a Batch script or use a language that can be compiled.

Steffen

Post Reply