Jump to content
GMS, SMS, and WMS User Forum
Sign in to follow this  
Hydrology

Batch File Created For Graphics Display, Security Risk

Recommended Posts

I have just upgraded to GMS 10.4 and I am having a compatibility issue with GMS and our Network security.  Apparently with 10.4, whenever a graphics file, like an aerial photograph, is displayed, the program creates a temporary batch file that it executes and then erases.  This happens for each aerial file you have in your project, and the batch files are created each time you pan or zoom your display.  These batch files are considered security risks by our security software, and I get a pop-up asking me to allow/not allow the batch file to run each time I move my display.  Each batch file has a different random name for each time the display is redrawn, so we cannot add an exception to our security software for the batch file.  A typical name is C\Temp\GMS_21380\img00247_image2.out.bat.  I have 9 aerial files in my project so I have to click OK on the security pop ups 100 or more times during a working session with GMS.  Is there any way to have GMS not produce these batch files.

Share this post


Link to post
Share on other sites

I had a similar problem with an other program. Our IT managed to avoid it be generating a rule to allow the execution of bat files generated by specified program xxx. For this they needed a unique file hash of a bat file generated by the program. I just checked the net and the file hash can be obtained either with Windows Powerhell ('Search programs and files/powershell') or with 7-zip by right clickin on file name, CRC, and select encrypition (see image attached). Maybe your IT can go from here and find out how to determine the program that generated the file and then generate the rule. Or then our IT used some other method than file hash for that.

 

Wishes, Heimo

7Zip.jpg

Share this post


Link to post
Share on other sites

I will try to see if they can do this.  Since this type of program behavior fits a classic malware attack profile, anyone running GMS has been banished to a trailer behind the office where there is no internet connection or connection to the server.  So now we have no direct access to the project files on the server, and we are not allowed to put anything developed on this computer back on the server.  We have never had this problem with previous versions of GMS, so I will see if we can go back to an older version of GMS.  Below is a typical script from the batch files.

 

REM -- Merge images including a created background color image.

REM -- Created a 1 pixel image with display extents.

"c:\software\hydrologic\gms 10.4 64-bit\gdalbin\gdalwarp.exe" --config GDAL_DATA "c:\software\hydrologic\gms 10.4 64-bit\gdalbin"  -of GTiff -dstalpha -te 6005738.0000000000000 2110135.0000000000000 6021445.0000000000000 2120129.0000000000000 -ts 1 1 "R:\Temp\GMS_19140\im00005_action1out.tif" -overwrite "R:\Temp\GMS_19140\im00031_image2out_image1merge1onePixel.tif"

REM -- Give the 1 pixel image the background color.

"c:\software\hydrologic\gms 10.4 64-bit\gdalbin\gdaldem.exe" --config GDAL_DATA "c:\software\hydrologic\gms 10.4 64-bit\gdalbin"  color-relief "R:\Temp\GMS_19140\im00031_image2out_image1merge1onePixel.tif" "R:\Temp\GMS_19140\im00031_image2out.tif_image1merge2map.txt" "R:\Temp\GMS_19140\im00031_image2out_image1merge3Background.tif"

REM -- Combine 1 or more images using current display view.

"c:\software\hydrologic\gms 10.4 64-bit\gdalbin\gdalwarp.exe" --config GDAL_DATA "c:\software\hydrologic\gms 10.4 64-bit\gdalbin"  -of GTiff -te 6005738.0000000000000 2110135.0000000000000 6021445.0000000000000 2120129.0000000000000 -ts 1614 1027 "R:\Temp\GMS_19140\im00031_image2out_image1merge3Background.tif" "R:\Temp\GMS_19140\im00005_action1out.tif" -overwrite "R:\Temp\GMS_19140\im00031_image2out.tif"

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...