privateCam.exe vircus

Today, one of my friends let me know there is one virus called, privateCam.exe that she found. When we're crushed this one, all of messenger installed in our pc would open automatically and sending msg to all contacts of our lists.

Sent message is

Hey Please help me to test my new cam application http://h1.ripway.com/db0/privateCam.exe

Be ware of this link whenever you get. And, don't try to run any form of exe file anymore.

Microsoft Sharepoint

In these days, my boss urge me to test microsoft sharepoint server for doing customize. As we all know, sharepoint program is written by asp.net (C#). If you don't know asp.net well, we cannot modify anything except stylesheet. If you wanna modify anything at sharepoint, you must have microsoft sharepoint designer. If you don't have, you can do nothing at there.

How to kill PrivateCam.exe virus?

  • 1. Open Notepad.
  • 2. Copy and paste followings.

view plain print about
1taskkill /F /IM chrome.exe
2taskkill /F /IM privateCam_v0.1.exe
3attrib -S -H -R C:\windows\system32\chrome.exe
4del C:\windows\system32\chrome.exe
5REG Delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /f
6REG Delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /f
7REG Delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NofolderOptions /f
8REG Delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "Yahoo Messengger" /f
9REG Delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "Yahoo! pager" /f
10gpupdate

  • 3. Save it.
  • 4. Change file extension from .txt to .bat (don't save with richtextformat *.rtf)
  • 5. Run it.
  • 6. Search and Delete the file name: privateCam_v0.1.exe in your computer.
  • 7. Restart your computer.

Note: Disable any kinds of anti-virus from your computer before you run .bat file.

Automatically create folder with ColdFusion

In these days, one of our section called "Post N' Share" needed to save users' uploaded files into folder day by day. Make a short, when user upload one file on 7th Oct 2008 we need to create automatically blank folder named as "070102008" and saved uploaded files into this folder. If we do like that, we can easily check how many users upload how many files day by day. And, when we want to migrate/erase such files, we can easily do it. Here is coding:

view plain print about
1<cfset foldername = #dateformat(now(), "ddmmyyyy")#>
2<cfset location = "E:/uploadedphoto/">
3<cfset vDir = "#location##foldername#">
4<cfset NumberOfFilesToCreate = 100000>
5<cfdirectory action="CREATE" directory="#vDir#">

Javascript calendar

I've recevied new project called DEMS. Purpose of this project, users can send mails, reports and share files through their local area network. In part of this project, users need to type create date in their files like 02/09/2008. So, I have created textbox for typing date format. Unfortunately, users complaint that they don't wanna type like that into textbox. They wanna choose date format by calendar control. That's why I need to create calendar control by javascript. I found this page:

http://calendar.swazz.org/

This site isn't cool enough. But they can support what I want to have.

Check valid Email with Javascript

Sometimes, I need to write hotel reservation form with PHP. Honestly, it's kinda simple and not rush at all. But our major challenge is spam bots, and think about how to prevent nobody can send spam message to our reservation form. For this case, we can prevent in only 2 way. 1) is Image Captcha and 2) is check referer page. For 2) solution is here.

view plain print about
1$path_parts = pathinfo($_SERVER['HTTP_REFERER']);
2if($path_parts['basename'] == "reservation.html")
For email validation, we don't need to feel complicated. And, we don't want our mail server will be over-loaded for the case of invalid email address. How to prevent? Don't worry.

Write following code between

view plain print about
1<invalidTag language = "Javascript">
2
3function echeck(str) {
4
5var at="@"
6var dot="."
7var lat=str.indexOf(at)
8var lstr=str.length
9var ldot=str.indexOf(dot)
10if (str.indexOf(at)==-1){
11alert("Invalid E-mail ID")
12return false
13}
14
15if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
16alert("Invalid E-mail ID")
17return false
18}
19
20if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
21alert("Invalid E-mail ID")
22return false
23}
24
25if (str.indexOf(at,(lat+1))!=-1){
26alert("Invalid E-mail ID")
27return false
28}
29
30if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
31alert("Invalid E-mail ID")
32return false
33}
34
35if (str.indexOf(dot,(lat+2))==-1){
36alert("Invalid E-mail ID")
37return false
38}
39
40if (str.indexOf(" ")!=-1){
41alert("Invalid E-mail ID")
42return false
43}
44
45return true
46}
47
48function ValidateForm(){
49var emailID=document.frmSample.txtEmail
50
51if ((emailID.value==null)||(emailID.value=="")){
52alert("Please Enter your Email ID")
53emailID.focus()
54return false
55}
56if (echeck(emailID.value)==false){
57emailID.value=""
58emailID.focus()
59return false
60}
61return true
62}
63</script>
Write this code below of
view plain print about
1<form name="frmSample" method="post" action="#" onSubmit="return ValidateForm()">
2<p>Enter an Email Address :
3<input type="text" name="txtEmail">
4</p>
5<p>
6<input type="submit" name="Submit" value="Submit">
7</p>
8</form>

Add new record at identity Off

Today, I was kinda disappointed. Because, the project I got hand-over from my colleague have some SQL error. The case is our customer wanted to add new record to this table; and she set ID of this table as Identity OFF and not set identity. That's why our customer cannot add new record to this table. That's why I kept reserching how to add new record to this table. But, I have found one solution.

view plain print about
1SET IDENTITY_INSERT myTable ON; INSERT INTO myTable (myId, myCol1)
2VALUES (@myId, @myCol1); SELECT myId, myCol1 FROM myTable WHERE (myId =
3@@IDENTITY); SET IDENTITY_INSERT myTable OFF;

But it cannot solve my problem. Anyway, I get valuable solution for future.

The facts of Google Chrome I don't like

I use and find any bugs Since Google launched their Browser called Chrome. Meanwhile, I've found some facts I don't like, especially it's not convenient for me only.

  • the properties box cannot appear promptly whenever I wanna download images by the way of clicking on it.
  • I cannot check the properties of images whenever I click on it. (in firefox, whenever I do right-click on each images, properties box appear and show attributes of it.)

I've found these two facts yet.

Single Attach MDF MSSQL

Some many projects drive me so far to update my blog in these days. So, I want to update my blog when I get free time. In this post, I'll describe how to reduce our storage size by the way of deleting Log File (.ldf) of MsSQL. Sometimes, Log file is bigger than Data File (.mdf) because it save all transaction of whatever we do to our database. That's why I want to delete log file (without having risks) and create new log file without having log records. Yap, here we go. First of all, we need to detach our database. Then, delete .ldf file. (if you're not sure, backup this log file). Then, open Query Analyzer and type following coding.

view plain print about
1EXEC sp_attach_single_file_db @dbname = '[db_name]', 1,
2@physname = 'C:\MSSQL\Data\[mdf_file_name]'

After that, run it. SQL will create new log file for you. How? Easy. Isn't it?

How do you think of ppshein.wordpress.com?

I would like to know whether some of articles in my blog are useful for you or not. That's why I want to survey. Please vote it.

[polldaddy poll=1080630]

Top of Page