Re: How to store a virus in MySQL?
Posted by: Eus Kevin
Date: February 22, 2007 08:04AM

Computer virus by definition is just a computer program.
In turn, a computer program consists of binary codes.
So, it would be the same thing to store either a JPG image, a program, an OGG song, or a computer virus.

Now, your problem is how you can insert a binary data.
The easiest way is to utilizing a C program or PHP script that calls function:
mysql_real_escape_string() [http://dev.mysql.com/doc/refman/4.1/en/mysql-real-escape-string.html]
That function will return an escaped binary data that is ready to be inserted to your table using INSERT INTO... statement.

Well, tell me if you have a problem with that.

Options: ReplyQuote


Subject
Written By
Posted
Re: How to store a virus in MySQL?
February 22, 2007 08:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.