Anti-SQL Injection Function
2
If you're using passwords of any type on your site, it is best to keep them random. That way they cannot be easily guessed at by intruders.
First, it's good to know a little about ASCII characters. Every character your keyboard can type is actually represented by a number. So the letter A is represented by 65. The letter Z is represented by 90. So all you need to do is generate a series of random numbers, each number between 65 and 90. That would give you a way to find the equivalent letters.
If you want to include numbers too, those are found between spots 48 and 57. I wouldn't use the spots between 57 and 65 - those are odd characters like colons.
So let's say you want to create a 7 character password that contains a random assortment of letters and numbers. You could do something like this:
4
This is a great little script that you can put on a friend's flash drive. It won't do any harm to their computer...it's just funny to watch. Put these 2 files in the "root" of the flash drive, cd, or any type of media/external drive. When they plug it in it will run the autorun script which then runs the shutdown script and restarts their computer! You will get a few laughs out of it...guaranteed!
2
To get the name of the computer/host
2
To create a shortcut to an url you can do as follows
2
If you want to create a shortcut programatically use the code below. Found somewhere on net
6
This class is a MySQL database access wrapper. It can:
- Connect to a MySQL server
- Execute SQL queries and retrieve single value results or return result rows into arrays
- Return the last inserted table row identifier, the number of result rows and the number of affected rows
- Count the number of executed queries
- Lock and unlock tables
- Escape text literal values or like patterns
- Retrieve database access errors
- Connect to a MySQL server
- Execute SQL queries and retrieve single value results or return result rows into arrays
- Return the last inserted table row identifier, the number of result rows and the number of affected rows
- Count the number of executed queries
- Lock and unlock tables
- Escape text literal values or like patterns
- Retrieve database access errors
5
This script demonstrates the use of the Speech API via VBScript. Simply type in the word or phrase that you want to the computer to speak and click OK. Useful for vocalizing the results of a function or literally reading a text file to the user.
Note: To successfully run this code you MUST have the Speech API installed. The Speech API is installed during a complete Office install. If the required libraries are not present on your system, search Microsoft.com for the speech API SDK download. See this page for help on setting up Text To Speech: http://support.microsoft.com/kb/306902/
Note: To successfully run this code you MUST have the Speech API installed. The Speech API is installed during a complete Office install. If the required libraries are not present on your system, search Microsoft.com for the speech API SDK download. See this page for help on setting up Text To Speech: http://support.microsoft.com/kb/306902/
8
This routine will get an image stored in a SQL database (IBM Informix shown here) as a BLOB and return it to the screen.
To place this on an HTML page simply add
I have an MD5 hashed version as well, but can't share that...(So you can have encrypted id's passed)
Have fun,
Jeremy
To place this on an HTML page simply add
I have an MD5 hashed version as well, but can't share that...(So you can have encrypted id's passed)
Have fun,
Jeremy
4
This was an update someone else's snippet...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.
Just my $.02...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.
Just my $.02...
9
This script demonstrates the user of a procedure that forces the currently executing script to execute under the WScript scripting host. This forces the output from WScript.Echo statements to be displayed message box dialog. This functionality may be useful in situations where the default scripting host is set to cscript.exe and/or the programmer uses a common set of code to program for wscript.exe and cscript.exe.
Typical usage would see the ForceWScript procedure called at the beginning of a script.
Typical usage would see the ForceWScript procedure called at the beginning of a script.









