Results 1 to 12 of 12

Thread: All "Cheaters" check in here to go back to the straight and narrow...

  1. #1
    No Too Xtreme
    Join Date
    Jun 2006
    Location
    Upstate, NY
    Posts
    490

    All "Cheaters" check in here to go back to the straight and narrow...

    I manage a bunch of clients, so touching all of them isn't practicle. That being said, I still have to make changes, like when our TEAM CAPTAIN MovieMan tells me I gotta get all my boxes off the "cheating" crunchers. Ok, here is the easy way:

    @echo off
    REM The next line checks to see if the "updates" folder exists and creates it if it does not.
    if not exist c:\updates md c:\updates
    REM the next line checks to see if boincupd.txt exists and exits the script if it does
    if exist c:\updates\boincupd.txt exit

    REM The next line stops the BOINC service from running
    net stop BOINC
    REM The next line runs a java script that kills boincmgr.exe using a .js included below:
    CScript s:\KillProc.js boincmgr.exe
    REM The next line copies the original cruncher files that you have placed at \\machinename\share\folder\ and overwrites any current files
    copy \\machinename\share\folder\boinc.* "C:\Program Files\BOINC" /y
    REM The next line creates that boincupd.txt so this won't run but once
    dir "c:\Program Files\BOINC" > c:\updates\boincupd.txt
    REM The next line starts your crunchers back up with stock files
    net start BOINC

    REM The next line is just your exit point if the files exist.
    :EXIT

    Copy and paste the above into notepad and save it as a .CMD file. This will make it execute when run. CALL the file from your logon script if you use one. i.e. if you save it as S:\boincupd.CMD then your logon script would say:

    CALL "S:\boincupd.cmd"


    Below is the .js file you will need to kill the running boincmgr. follow the directions inside the /*//////////////// lines... Keep in mind that you must place this .js file on a share that everyone can access since your logon script is going to call the .CMD that is going to call this .js on EVERY MACHINE.


    /*////////////////////////////////////////////////////////////////////
    FileName: KillProc.js

    Copy this script to dir in path (C:\, C:\Winnt or C:\Windows,...)
    From command line:
    C:\>KillProc notepad.exe


    Sript assumes:
    - WMI (WinXP, Win2K or WinNT with WMI core),
    - User running it must have administrative privileges.
    */////////////////////////////////////////////////////////////////////
    var oShell = new ActiveXObject("Wscript.Shell");
    var oArgs = WScript.Arguments;
    var sArgsAry = new Array();
    var sArgsLine = "";


    // --- Make sure there are comand line parameters:
    if (oArgs.length==0) {
    sMsg = "Usage: \n\tC:\\>KillProc notepad.exe [winword.exe ...]"
    WScript.Echo(sMsg);
    WScript.Quit();



    }


    // --- Collect script arguments (if any):
    for (var i=0; i<oArgs.length ; i++) {
    // Collect passed arguments
    sArgsLine += "\"" + oArgs(i) + "\" ";
    sArgsAry[sArgsAry.length] = oArgs(i)


    }


    // --- Ensure that CScript.exe is the host:
    if (!isCScript()) {
    var sMsg = "CScript.exe must be used to run this script.\n\n";
    sMsg += "To set CScript as the default host:\n\n";
    sMsg += "C:\\>WScript //H:CScript";
    WScript.Echo(sMsg);
    WScript.Quit();


    }


    // --- Kill process(es):
    for (var i=0; i<sArgsAry.length ; i++) {
    WScript.Echo("Killing (if any): " + sArgsAry[i]);
    KillProcess(sArgsAry[i]);


    }


    function KillProcess(sProg) {
    try { var oWMI = GetObject("winmgmts:{impersonationLevel=impersonat e,(Debug)}");
    } catch(e) { return; }
    var sQuery = "select * from win32_process where name='" + sProg + "'";
    try { var oEnm = new Enumerator(oWMI.execquery(sQuery));
    } catch(e) { return; }

    for (;!oEnm.atEnd();oEnm.moveNext()) { oEnm.item().terminate(); }



    }


    function isCScript() { return (/cscript.exe$/i).test(WScript.FullName); }

    // Branimir


    If you have any questions, please feel free to ask me although I am not a scripting or Java expert.
    Last edited by RSmura; 09-11-2006 at 10:45 AM.
    Hey, You! Know anyone that died of Cancer or Aids? Do something about it. Crunch for World Community Grid. Join Xtreme Systems in helping fight the most important war in human history. The war on disease. WCG needs YOU!

    World Community Grid Registration

  2. #2
    Xtreme Addict
    Join Date
    Mar 2006
    Location
    Puerto Rico
    Posts
    1,728
    What the hell i s this?

    Space for Rent

  3. #3
    V3 Xeons coming soon!
    Join Date
    Nov 2005
    Location
    New Hampshire
    Posts
    36,363
    Quote Originally Posted by Jose
    What the hell i s this?
    Nothing you have to worry about my friend..a script for the guy with 20+ machines to put them all back to the stock BOINC client..

    Rob: Thanks my friend for doing this!
    AND: I am NOT the team captain! I admit I was acting like one today but that was by circumstance and thats all.
    Last edited by Movieman; 09-11-2006 at 10:53 AM.
    Crunch with us, the XS WCG team
    The XS WCG team needs your support.
    A good project with good goals.
    Come join us,get that warm fuzzy feeling that you've done something good for mankind.

    Quote Originally Posted by Frisch View Post
    If you have lost faith in humanity, then hold a newborn in your hands.

  4. #4
    No Too Xtreme
    Join Date
    Jun 2006
    Location
    Upstate, NY
    Posts
    490
    Jose, if it looks like greek to you, es por que yo no hablo Espanol. Estudio por seis años en mi escuela, pero no tengo un opportunidad para hablar con la gente. Y, no tengo un teclado Espanol...
    Last edited by RSmura; 09-11-2006 at 11:13 AM.
    Hey, You! Know anyone that died of Cancer or Aids? Do something about it. Crunch for World Community Grid. Join Xtreme Systems in helping fight the most important war in human history. The war on disease. WCG needs YOU!

    World Community Grid Registration

  5. #5
    Xtreme Addict
    Join Date
    Mar 2006
    Location
    Puerto Rico
    Posts
    1,728
    anos :rolf: What about you having six ass holes ?

    Space for Rent

  6. #6
    No Too Xtreme
    Join Date
    Jun 2006
    Location
    Upstate, NY
    Posts
    490
    yeah, if I had a keyboard that did ennyay (how do you spell N with a tilde?) it wouldn't have said anus! That is why I added the last sentence since I knew you were going to give me crap about having six anuses...

    EDIT: There, I fixed años! It says six years now and not six anuses.... NICE!
    Last edited by RSmura; 09-11-2006 at 11:14 AM.
    Hey, You! Know anyone that died of Cancer or Aids? Do something about it. Crunch for World Community Grid. Join Xtreme Systems in helping fight the most important war in human history. The war on disease. WCG needs YOU!

    World Community Grid Registration

  7. #7
    Xtreme Cruncher
    Join Date
    Jun 2006
    Posts
    612
    Code:
    brot@brotkastn ~ $ emerge =sci-misc/boinc-5.2.14 -av
    
    These are the packages that would be merged, in order:
    
    Calculating dependencies... done!
    [ebuild   R   ] sci-misc/boinc-5.2.14  USE="X -server -unicode" 0 kB
    
    Total size of downloads: 0 kB
    
    Would you like to merge these packages? [Yes/No]
    Read this as an advert for gentoo
    gentoo amd64/2008.0-beta, gcc-4.2.3, glibc-2.7-r2, kernel 2.6.25 x86_64
    I crunch, and you should too. STATS

  8. #8
    Xtreme Cruncher
    Join Date
    Mar 2005
    Location
    venezuela caracas
    Posts
    6,460
    bueno hay varias personas con las que puedes hablar, asi que si quieres me puedes agregar al msn para que practiques tu español y no pierdas tus 6 anos de estudio JAJAJAJAJAJA
    Incoming new computer after 5 long years

    YOU want to FIGHT CANCER OR AIDS join us at WCG and help to have a better FUTURE

  9. #9
    Xtreme Guru
    Join Date
    Mar 2004
    Location
    steelcity.pa.usa
    Posts
    3,522
    nice batch skills
    STARSCREAM
    3570k @ 4.6 GHz | Asus P8Z77-V LK | G.Skill F3-12800CL8D-8GBXM | ASUS GeForce GTX550 Ti
    Corsair Neutron GTX 240GB | Corsair Force GT 120GB | SK hynix 128GB | Samsung 830 64GB
    WD Black 640GB (3) | Seagate 7200rpm 1TB | Dell Perc H310 xflashed to LSI 9211-8i
    Corsair AX750 | CoolerMaster Hyper 212 | Antec P280 | Dell Ultrasharp U2410 | BenQ XL2420T
    ROCCAT Savu | Filco Majestouch-2 TKL w/Cherry MX Reds
    MEGATRON
    3770k @ 4.5GHz | Asus Sabertooth Z77 | G.Skill F3-12800CL8D-8GBXM
    SK hynix 128GB | Mushkin Enhanced Chronos 60GB | WD Red 3TB (4) | Seagate 7200rpm 3TB (2)
    WD Green 2TB (3) | Seagate 7200rpm 1TB | Dell Perc H310 xflashed to LSI 9211-8i (2)
    Corsair AX650 | Corsair H80i

  10. #10
    Xtreme Cruncher
    Join Date
    Dec 2002
    Location
    NW Ohio
    Posts
    3,334
    batch FTW!!


    btw, mine is changed over. The only other optimized one i have is my laptop, but thats running QMC.
    Donate to XtremeSystems!

    Workstation: Intel Core i7 4770, Asus Maximus VI Gene, 32GB Corsair Dominator Platinum DDR3-1866, eVGA SC GTX Titan, 256GB Crucial M4, Corsair HX850, Corsair H100i. Corsair Carbide 350D
    Fileserver: 2x AMD Opteron 2425HE, Supermicro H8DME-2, 24GB DDR2-667, Supermicro 846TQ 24bay Chassis, Redundant 920w, 256 Crucial M4 boot, 20TB Storage
    Notebook Asus Zenbook UX32VD-DH71, Intel Core i7 3517u, 10GB DDR3-1600, 256GB Crucial M4, Geforce GT 620M

  11. #11
    Xtreme Cruncher
    Join Date
    Oct 2005
    Posts
    480
    I thought I could do up a nice batch file, very nice job makes anything I would do look like ez logo on the old green screen appleII lol


    Custom Avi By: Martijn, Custom Calvin V.S. EN by:RSmura

  12. #12
    No Too Xtreme
    Join Date
    Jun 2006
    Location
    Upstate, NY
    Posts
    490
    Quote Originally Posted by leviathan18
    bueno hay varias personas con las que puedes hablar, asi que si quieres me puedes agregar al msn para que practiques tu español y no pierdas tus 6 anos de estudio JAJAJAJAJAJA
    mucho gusto y gracias. en MSN, soy RobATSmuraDOTcom.
    Hey, You! Know anyone that died of Cancer or Aids? Do something about it. Crunch for World Community Grid. Join Xtreme Systems in helping fight the most important war in human history. The war on disease. WCG needs YOU!

    World Community Grid Registration

Bookmarks

Bookmarks

Posting Permissions

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