Sunday, March 14, 2010

How to remove the jwgkvsq.vmx worm virus

The jwgkvsq.vmx is a worm-type virus, which spreads via USB/portable drives and through the network. It also makes autorun.inf file on your USB device as well as a hidden system folder called RECYCLER which contains the jwgkvsq.vmx file. I’m not sure if this is an old virus, but it seems it’s been spreading a lot lately. And most anti-virus doesn’t detect this, but for those who does, it can’t remove it.

It is also known as:

  • W32/Confi
  • W32/Conficker.worm!inf
  • Win32/Conficker.B – CA

It exploits Microsoft Windows vulnerability:
Microsoft Security Bulletin MS08-067 – Critical
Vulnerability in Server Service Could Allow Remote Code Execution (958644)
Published: October 23, 2008

Symptoms:

  • ‘Show hidden files and folders’ doesn’t work. You can check this by going to a folder, then click Tools, then Folder Options, then View tab. Select the ‘Show hidden files and folders’ then click Apply, then Ok. Open Folder Options again, if it reverted back to ‘Do not show hidden files and folders’ then you have this virus.
  • Evey time you plug in a USB device on your computer, it creates an autorun.inf file, and a RECYCLER folder with the jwgkvsq.vmx virus file.
  • You can’t access anti-virus websites an other popular websites like microsoft.com or yahoo.com
  • Windows won’t boot into Safe Mode. This happens on extreme cases. When you try to boot into Safe Mode, your computer restarts/shuts down

Side-effects

  • Since this is a worm, system slowdown may (or may not) happen.
  • Quickly spreads through networked computers and USB devices. Which includes flash drives, portable external hard drives, mobile phones, mp3 players, and anything that can be plugged into a USB port.
  • Won’t let you access some websites.

Now let’s go back to the topic. Remember that this guide will only help you remove the jwgkvsq.vmx virus.

Click through the link to continue…

Here is a quick step to remove this virus from your computer, and from your USB devices.

Preparation:

  • Download FixDownadup.exe (File name may be D.exe) from Symantec.com
  • Download anti-Downadup-EN.zip from BitDefender.com (just in case the first one doesn’t work).
  • Download Process Explorer and AutoRuns from Sysinternals (we may or may not use this).
  • Download MoSo Force Delete (just in case we need to delete something that can’t be deleted).
  • You can also download Unlocker Assistant for a force download. (I like it)

Now let’s start…

Removing the jwgkvsq.vmx virus from your computer

  1. Disconnect your computer from the network, if it is connected. Removing the network cable from your PC should do the trick.
  2. Just run the FixDownadup.exe we downloaded from Symantec. It should clean the virus of the PC. This works if the infection is in a low-level state. Meaning you have anti-virus software already running and the infection is isolated.
  3. After scanning you should see a report popup, and an option to go to Microsoft website to patch your computer with a critical security update.
  4. Restart your computer. When you’re back on the desktop, check your programs/softwares if it is still running.
  5. Turn of System Restore to delete all entries, which sometimes contains remnants of the virus. To do this:
    1. Right-click My Computer, select Properties.
    2. Click System Restore tab.
    3. Check ‘Turn off System Restore on all drives’. Click Apply, then Ok.
    4. Restart your computer.
    5. Then, uncheck ‘Turn off System Restore on all drives’ to enable it again.

Removing the jwgkvsq.vmx virus from your USB device


  1. First. Start your computer on Safe Mode
    1. Shut down your computer
    2. Turn it back on, before the Windows loading screen comes up, press F8. Or just press it repeatedly after starting your computer
    3. Select Safe Mode on the menu by pressing the arrow keys and hitting Enter.
  2. Plug your USB device. Notice that the autorun.inf won’t run in safe mode.
  3. Enable the ‘Show hidden files and folders’. Instructions are listed on the Symptoms section above.
  4. Delete autorun.inf file. It is usually located on the root of the USB drive.
  5. Delete the hidden/system folder RECYCLER.
    1. If you can’t delete it, you have to disable it’s function (for external/portable hard drives). Right-click on the Recycle Bin icon on your desktop, then select Properties. Select ‘Configure drives independently’. Then tab to the external drive, and check ‘Do not move files to the Recycle Bin.’ Hit Apply, then Ok’
    2. If it is a flash drive or other USB device, use MoSo Force Delete, we’ve downloaded earlier on this guide.

Just in case the virus registered itself on the registry. Open the Run dialog box from the start menu, then type regedit. Then search for the file name jwgkvsq.vmx. If you found an entry, just press DEL to delete it.

If your computer is in a network, better check all the other computers connected to it. Also download and install the automatic update (Microsoft vulnerability) which I’ve posted at the beginning of this post.

In extreme cases, your computer won’t initiate Safe Mode and after using the removal tool above, your system may report a missing .dll file or something.

Credits (and for reference refer) to these two sites:
http://tuxvoid.blogspot.com/
http://arpeex.blogspot.com/

For any additional support or inquiry regarding this problem, just leave a comment here, and I’ll reply as soon as I can.

Wednesday, March 3, 2010

Adding JavaScript function on PageLoad event in ASP.NET

Sometimes we need to call a specific javascript function during the pageload. We can call the function on the body onload event. However, sometimes we cannot define body especially when we use Master/Content pages. Then we can call the function using the following code sequence.
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}

addLoadEvent(nameOfTheDesiredFunctionToBeCalled);

function nameOfTheDesiredFunctionToBeCalled()
{
//function definition here
}


---------------------------------------------------------------------------
For calling on body pageload simply add the code on body tag
<body onload="theDesiredFunction()">

----
----

</body>

Wednesday, February 24, 2010

How to Enable Host Based Authentication in PostgreSQL

The PostgreSQL server by default works for localhost and you cannot connect to the server remotely or using ip address. To enable ip or remote connection you have to do the followings:
1. Open the file C:\Program Files\PostgreSQL\8.4\data\pg_hba.conf (Supposing Postgre to be installed in Program Files)
2. Find this text # IPv4 local connections:
3. Find this line "host all all 127.0.0.1/32 md5" line
4. Add this line after the Step 3 line:
host all all 192.168.10.0/24 md5
Supposing that you are the ip series: 192.168.10.x
if you are using 192.168.0.x then the entry might be :
host all all 192.168.0.0/24 md5
5. Reload the congifuration OR restart the server from Start->All Programs->PostgreSQL ->Restart Server

Get Value From Invisible Column in Gridview

Sometimes we want to store any ID in the GridView and not to show to the user. Ok, but problem arises when we want to get the invisible value from the selected row.

Basically, Microsoft have decided that hidden columns in DataGrids were almost always used to store primary keys of records, and that maintaining them in ViewState represented a security risk. Therefore, in the GridView object introduced in v2, hidden columns have been removed from ViewState by default, which is why the columns themselves are still there (otherwise you
couldn't reference them in the CodeFile), but their values are blank.

Fortunately, there is an easy workaround. Simply set the column(s) to Visible immediately before invoking the GridView's DataBind() method, and then hide them again immediately after. E.g.
MyGridView.DataSource =
MyGridView.Columns[x].Visible = true;
MyGridView.DataBind();
MyGridView.Columns[x].Visible = false;

Now you can get the values of all columns after the GridView having selected:

GridViewRow row = gvCodeDetails.SelectedRow;

for (int count = 0; count < row.Cells.Count; count++)
{
Response.Write("Count: " + count + " " + row.Cells[count].Text + "<br />");
}
This code is for getting and displaying all columns of any selected GridView row; you will use that one you need.

It seems good but sometimes it causes problems. I do not find any value of the hidden field, found blank instead. However, here is a rather better way I find to be more effective.

Keep the columns you want to store hidden in the DataKeyNames facility.

if you wan't to hide two columns then you can set multiple columns in the DataKeyNames like:
Write column names separated by comma at the gridview properties DataKeyNames field.

Alternatively you can write manually on the source view

DataKeyNames="Column1, Column2"

then you can access it this way:

string key1 = GridView1.DataKeys[rowIndex].Values[0].ToString(); //first key
string key2 = GridView1.DataKeys[rowIndex].Values[1].ToString(); //second key

In this way you can retrieve the values from the gridview.

Tuesday, February 23, 2010

Error: ASP.NET Not Installed

Error: ASP.NET Not Installed OR some other problem when you install IIS after installing ASP.NET or Visual Studio

This error occurs when ASP.NET is not installed correctly on the computer that you are trying to debug. This might mean that ASP.NET was never installed or that ASP.NET was installed first and IIS was installed later.

To reinstall ASP.NET

  • From a command prompt window, run the following command:

    \WINDOWS\Microsoft.NET\Framework\version\aspnet_regiis -i
where version represents the version number of the .NET Framework installed on your computer, such as v1.0.370. You can determine the framework version by looking in the \WINDOWS\Microsoft.NET\Framework directory.