Ankündigung

Einklappen
Keine Ankündigung bisher.

Autosurfer und Cronjob

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Scriptangebot Autosurfer und Cronjob

    Ich hatte mal einen Cronjobservice auf JS geschrieben, was ich ca. 6 Monate lang genutzt hatte. Hier eine modifizierte Version, mit der man auch andere Sachen machen kann .

    Hier der Code
    PHP-Code:
    //  -- Cronjob and Sitesurfer
    //  --
    //  -- Optimized Version: Runs only when IE is not busy...
    //  -- How to use:
    //  -- Change the webadresses in the array and save it as "xxxxxxxx.js". 
    //  -- Just rightClick and open with WindowsScriptingHost or start it with the taskmanager
    //  -- Tips: You can set Line 19 to false, so the script runs in background

    var sites    =      new Array(    
                    
    "http://www.website1.com",
                    
    "http://www.website2.com",
                    
    "http://www.website3.com"
                    
    )
    try{
        for(
    i=i10 i++){
            
    //Sart the Array randomly
            
    sites.sortrandOrd )
            
    WScript.sleep(3000)
            var 
    ieobj WScript.createobject("internetexplorer.application");
            
    ieobj.visible=true;    
                for(
    y=sites.length y++)
                    {
                    if(
    ieobj.Busy)
                        {
                        
    WScript.sleep(GetRandom(3,5));
                            if(
    ieobj.Busy){WScript.sleep(GetRandom(3,5));}
                                if(
    ieobj.Busy){WScript.sleep(GetRandom(3,5));}
                        }
                    
    // Navigate randomly throw ArrayList
                    
    ieobj.navigate(sites[y]);
                    
    WScript.sleep(GetRandom(1,3));
                    }
            
    ieobj.quit();
            
    WScript.sleep(GetRandom(1,5));
            }
        }
        catch(
    error){
        
    //WScript.Echo("Abgevrochen");
        
    }

    // Helper functions....
    function randOrd(){
        return (
    Math.round(Math.random())-0.5);
        }    

    function 
    GetRandomminmax ){
        if( 
    min max ){return( -);}
        if( 
    min == max ) {return( min );}    
        
    rand1 =  min parseIntMath.random() * ( max-min+));
        if(
    rand1 == 1){ return 5000;}
        if(
    rand1 == 2){ return 7000;}
        if(
    rand1 == 3){ return 90000;}
        if(
    rand1 == 4){ return 13000;}
        if(
    rand1 == 5){ return 20000;}
        
    //else
        
    return 5000;
        } 
Lädt...
X