Re: A comment on using CPU resources

From: Security (security_at_sustainedhits.com)
Date: 07/09/05

  • Next message: Jeroen van Rijn: "A comment on using CPU resources, addendum."
    To: <bugtraq@securityfocus.com>
    Date: Sat, 9 Jul 2005 14:12:42 -0400
    
    

    > I had an issue with my Firefox browser. The browser was static, yet it
    > was
    > using 70% or 80% of the CPU of the system.
    > It got me to thinking. Java is a programming language. What would
    > prevent
    > companies from running a java script on your computer while you are
    > viewing
    > their page that uses your CPU to do some computing for them? Instead of
    > selling (or in addition to selling) advertising the company could also
    > sell
    > CPU to other companies.

    I was thinking something along these same lines the other day.

    The only drawbacks I could figure (and possible solutions to) are:

     - Not all clients will be executing the java (security problems, lack of
    java, etc.)
     - Not all clients will complete the execution of the java (could be avoided
    by having smaller code blocks executed in series or parallel with a
    push/pull on the clientside when the block completes.) This would occur if
    the user hits back or closes the browser, and utilizing a onclose() or
    onblur() or whatnot will help although not all clients will honor these.
     - Not all users will like this, should they find out you are doing it what
    kind of legal trouble could you get into (if any)?

    You'd need a lot of people running this for any reasonable amount of CPU
    cycles being available to you, and some very intuitive code to deal with
    running for an unknown amount of time (before the user clicks something).

    Another thing to think of, flash animation clicks that are handled by the
    movie won't stop java. The user can click an item in the flash movie without
    changing the current document's href, which will leave your java threads
    running. This is a way to ensure your code is executed for at least as long
    as it takes to load the flash, if the user waits at least that long.

    Just my $0.02, as I said I was putting some thought into this just the other
    day, although I hadn't considered selling the CPU cycles.

    Chris @ Sustained Hits


  • Next message: Jeroen van Rijn: "A comment on using CPU resources, addendum."

    Relevant Pages

    • Re: Opening Tree Lists and other DOM
      ... unfortunately there just aren't enough PPC users for them to ... Your best hope is that a better browser becomes available in the near ... Right now, if you can't make NetFront work, nothing else will. ... subset of JavaScript, while NetFront supports Java, JavaScript and Flash ...
      (microsoft.public.pocketpc)
    • Re: What happened? My "https applets" stopped working
      ... Had to install Office, Photoshop, etc. So over ... They don't work in either browser, ... LIke the test games at the Java site. ... > contains two JAR files. ...
      (comp.lang.java.help)
    • Re: IE & applets
      ... using a version that is too new for the browser. ... IE's version of Java ... >> has been the central issue in multiple lawsuits against MS by Sun. ... to download version 1.1 from Sun and use it to create your applet. ...
      (comp.lang.java.help)
    • Re: What happened? My "https applets" stopped working
      ... They don't work in either browser, ... LIke the test games at the Java site. ... > I install thngs all the time so I didnt think it would mess up the JAva. ... Did the applets stopped working after Jan 1st (that would be a typical ...
      (comp.lang.java.help)
    • Re: What happened? My "https applets" stopped working
      ... I will look at the Java encryption thing now. ... They don't work in either browser, ... I can work around one of the applets, and not see wht I'm posting to ... > contains two JAR files. ...
      (comp.lang.java.help)