# jpg.vbs

**URL:** <https://boards.straightdope.com/t/jpg-vbs/77369>\
**Category:** Factual Questions\
**Created:** [August 21, 2001, 5:18pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369 "2001-08-21T17:18:08Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![carnivorousplant](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/carnivorousplant/32/3563_2.png) [@carnivorousplant](https://boards.straightdope.com/u/carnivorousplant)\
**Post date:** [August 21, 2001, 8:31pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/21 "2001-08-21T20:31:08Z")

</div>

So send me email from that address and I’ll send it to you.  
🙂

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [August 21, 2001, 8:38pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/22 "2001-08-21T20:38:16Z")

</div>

Isn’t it possible to create a VBS file containing an image, which brings up the image (among other things) when the script is run? If that’s the case, then anyone who looked at the jpeg should really consider checking their hard drive for any more double-extension files that magically appeared there.

---

<div class="post-metadata">

**Author:** ![carnivorousplant](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/carnivorousplant/32/3563_2.png) [@carnivorousplant](https://boards.straightdope.com/u/carnivorousplant)\
**Post date:** [August 21, 2001, 8:42pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/23 "2001-08-21T20:42:14Z")

</div>

> [@](#):
>
> \*Originally posted by Chronos \*  
> \*\* checking their hard drive for any more double-extension files \*\*

You got it. 🙂

---

<div class="post-metadata">

**Author:** ![evilhanz](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@evilhanz](https://boards.straightdope.com/u/evilhanz)\
**Post date:** [August 21, 2001, 8:49pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/24 "2001-08-21T20:49:49Z")

</div>

I just got the file. It isn’t a virus at all. The .vbs extension merely causes the image to launch itself into an editor. If you don’t believe it, just drop the “.vbs” extension from the file name and double-click it.

Well, that was a whole lot of nothing! 🙂

---

<div class="post-metadata">

**Author:** ![xash](https://avatars.discourse-cdn.com/v4/letter/x/c6cbf5/32.png) [@xash](https://boards.straightdope.com/u/xash)\
**Post date:** [August 22, 2001, 5:46am UTC](https://boards.straightdope.com/t/jpg-vbs/77369/25 "2001-08-22T05:46:04Z")

</div>

**Chronos** is correct. There may well be a legitimate .jpg file contained within the file, but the malicious code is run before the .jpg image is displayed, followed by the .jpg image being displayed, so the average user will not suspect any foul play, since what seemed like an image file was indeed an image file, but unknown to them it also ran some malicious code before the image itself was displayed.

**evilhanz** is also correct. it could just be a simple script set to launch the image in a viewer, so i’m not saying that the file you guys have includes malicious code, all i’m saying that it is possible that it does and if it does you might not even notice it 'coz all that you’ll see is the image itself.

now, **evilhanz** , it’s also unlikely, though possible, that the script is only set to launch the .jpg image in a viewer. This is because if you take any .jpg file without a .vbs extension and double click it, it will automatically launch in a viewer anyways, so the .vbs script is rather redundant.

So, to sum it up, the .vbs script in this particular case might not be malicious, but it is very likely that any file sent to you via email with a .vbs extension has malicious code.

**Anthracite** , you could probably try to forward the mail with the attachment to another email address that will allow you to download it as-is.

---

<div class="post-metadata">

**Author:** ![evilhanz](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@evilhanz](https://boards.straightdope.com/u/evilhanz)\
**Post date:** [August 22, 2001, 1:40pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/26 "2001-08-22T13:40:23Z")

</div>

**xash** - I examined a copy of the file. The original was found in a PrintShop directory and not sent via email - the normal distribution path for malicious scripts. After looking at the file every which way, I concluded that there is no code. If you examine the file with a hex editor, you’ll see properly defined image headers. It is a legitimate image file.

This is one of those rare instances where a .vbs file does what it’s supposed to. 🙂

---

<div class="post-metadata">

**Author:** ![xash](https://avatars.discourse-cdn.com/v4/letter/x/c6cbf5/32.png) [@xash](https://boards.straightdope.com/u/xash)\
**Post date:** [August 22, 2001, 1:48pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/27 "2001-08-22T13:48:53Z")

</div>

so that lays it to rest then…thanks **evilhanz**.

**evilhanz** , your name suggests that we now get together and write some malicious code 🙂 and spread it via dopefest while no one’s lookin’ 🙂

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [August 22, 2001, 2:24pm UTC](https://boards.straightdope.com/t/jpg-vbs/77369/28 "2001-08-22T14:24:19Z")

</div>

Being as it is a VBS file I can see no reason to jave the JPG part in the name other than to trick other people into thinking it is JPG.

To mail it through hotmail can’t you just change the extension? Then hotmail will not scan it but you still get to see the insides.

PCWORLD just did a review of antivirus software and I believe it was Panda that came out on top  
[Article on Panda](http://www.pcworld.com/downloads/file_description/0,fid,5068,00.asp) [Article on AV software](http://www.pcworld.com/features/article/0,aid,55803,00.asp)

[Previous page](https://boards.straightdope.com/t/jpg-vbs/77369.md?page=1)
