1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php help

Discussion in 'Hire a Freelancer' started by nemoku, Dec 21, 2009.

  1. nemoku

    nemoku BANNED BANNED

    Joined:
    Dec 3, 2009
    Messages:
    50
    Likes Received:
    0
    Maybe someone can help me? This script sending automated message to account friends -> friends (dating portal one.lt) I need help with it.. One.lt has limit (400 messages per dunno how many hours). Any can help make it use multiple account?

    Script:

    Code:
    [COLOR=#000000][COLOR=#0000BB]<?php
    [/COLOR][COLOR=#FF8000]/*********************************************/
    //
    //      CONFIG
    //
    /*********************************************/
    /*********************************************/
    [/COLOR][COLOR=#0000BB]$startPage[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]10[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]$lastPage[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]12[/COLOR][COLOR=#007700];
    
    
    [/COLOR][COLOR=#0000BB]$login[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"in-blood"[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]$password[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"hacked"[/COLOR][COLOR=#007700];
    
    [/COLOR][COLOR=#0000BB]$msg[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]'Kestas says: "sveiki"'[/COLOR][COLOR=#007700];
    
    
    [/COLOR][COLOR=#FF8000]/*********************************************/
    //
    //   END OF CONFIG
    //
    /*********************************************/
    /*********************************************/
    
    
    
    
    //DON"T EDIT ANYTHING BELOW
    [/COLOR][COLOR=#0000BB]set_time_limit[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]120[/COLOR][COLOR=#007700]);
    class [/COLOR][COLOR=#0000BB]Bot[/COLOR][COLOR=#007700]{
    
    
    [/COLOR][COLOR=#FF8000]/*
    **
    **   LOGIN
    **
    */
    [/COLOR][COLOR=#0000BB]   function [/COLOR][COLOR=#0000BB]Login[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$login[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$password[/COLOR][COLOR=#007700])
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$ch [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_init[/COLOR][COLOR=#007700]();
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_URL[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'http://w31.one.lt/logon.do'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_USERAGENT[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_POST[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_POSTFIELDS[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'username='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$login[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'&password='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$password[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_REFERER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]'http://w31.one.lt'[/COLOR][COLOR=#007700]); 
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_RETURNTRANSFER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_FOLLOWLOCATION[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEFILE[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
            [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEJAR[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$site [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_exec [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   if ([/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]))
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$error [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'Error #' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]': ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_error[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]false[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#0000BB]$error[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       else 
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]true[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }[/COLOR][COLOR=#0000BB]   
    
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_close [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    
    
    [/COLOR][COLOR=#FF8000]/*
    **
    **   LOGOUT
    **
    */
    [/COLOR][COLOR=#0000BB]   function [/COLOR][COLOR=#0000BB]Logout[/COLOR][COLOR=#007700]()
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$ch [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_init[/COLOR][COLOR=#007700]();
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_URL[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'http://w31.one.lt/logoff.do'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_USERAGENT[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_RETURNTRANSFER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_FOLLOWLOCATION[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEFILE[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEJAR[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$site [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_exec [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   if ([/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]))
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$error [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'Error #' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]': ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_error[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]false[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#0000BB]$error[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       else 
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#FF8000]//echo $site;
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]true[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }[/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_close [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    
    
    
    
    
    [/COLOR][COLOR=#FF8000]/*
    **
    **   SendMSG
    **
    */
    [/COLOR][COLOR=#0000BB]   function [/COLOR][COLOR=#0000BB]SendMsg[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$profile[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$msg[/COLOR][COLOR=#007700])
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$ch [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_init[/COLOR][COLOR=#007700]();
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_URL[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'http://w31.one.lt/saveCommentaryMessage.do'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_USERAGENT[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_POST[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_POSTFIELDS[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'forUserId='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$profile[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'&msg='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$msg[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_REFERER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]'http://w31.one.lt/'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_RETURNTRANSFER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_FOLLOWLOCATION[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEFILE[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEJAR[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    
    
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$site [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_exec [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   if ([/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]))
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$error [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'Error #' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]': ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_error[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]false[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#0000BB]$error[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       else 
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]true[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_close [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    
    
    
    [/COLOR][COLOR=#FF8000]/*
    **
    **   Get Profiles
    **
    */[/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   function [/COLOR][COLOR=#0000BB]GetProfiles[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700])
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$ch [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_init[/COLOR][COLOR=#007700]();
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_URL[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'http://w31.one.lt/navigate.do?st.view=4&st.id=community.distantfriends.list&st.friends.page='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$page[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_USERAGENT[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_RETURNTRANSFER[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_FOLLOWLOCATION[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEFILE[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]           [/COLOR][COLOR=#0000BB]curl_setopt[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]CURLOPT_COOKIEJAR[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]dirname[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]__FILE__[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'/tmp.txt'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$site [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]curl_exec [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   if ([/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]))
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$error [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'Error #' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_errno[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]': ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]curl_error[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]false[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#0000BB]$error[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       else 
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#FF8000]//echo $site;
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   return [/COLOR][COLOR=#0000BB]$site[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]       [/COLOR][COLOR=#0000BB]   }[/COLOR][COLOR=#0000BB]   
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]curl_close [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$ch[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    }[/COLOR][COLOR=#FF8000]//end of class
    
    
    
    
    
    
    
    [/COLOR][COLOR=#0000BB]$nextPage[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$_GET[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'p'[/COLOR][COLOR=#007700]];
    if([/COLOR][COLOR=#0000BB]$nextPage[/COLOR][COLOR=#007700])
    [/COLOR][COLOR=#0000BB]   {[/COLOR][COLOR=#0000BB]$p[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$nextPage[/COLOR][COLOR=#007700];}
    else
    [/COLOR][COLOR=#0000BB]   {[/COLOR][COLOR=#0000BB]$p[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$startPage[/COLOR][COLOR=#007700];}
    
    
    
    if([/COLOR][COLOR=#0000BB]$p[/COLOR][COLOR=#007700]<=[/COLOR][COLOR=#0000BB]$lastPage[/COLOR][COLOR=#007700])
    {
    
    [/COLOR][COLOR=#0000BB]$bot[/COLOR][COLOR=#007700]=new [/COLOR][COLOR=#0000BB]Bot[/COLOR][COLOR=#007700]();
    [/COLOR][COLOR=#0000BB]$bot[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]Login[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$login[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$password[/COLOR][COLOR=#007700]);
    
    [/COLOR][COLOR=#0000BB]$src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$bot[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]GetProfiles[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$p[/COLOR][COLOR=#007700]);
    
    [/COLOR][COLOR=#0000BB]$dom [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000BB]DomDocument[/COLOR][COLOR=#007700];
    @[/COLOR][COLOR=#0000BB]$dom[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]loadHTML[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$src[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]$xpath [/COLOR][COLOR=#007700]= new [/COLOR][COLOR=#0000BB]DOMXPath[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$dom[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]$profs [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$xpath[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]evaluate[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'//div'[/COLOR][COLOR=#007700]);
    for ([/COLOR][COLOR=#0000BB]$i [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]$i  [/COLOR][COLOR=#007700]< [/COLOR][COLOR=#0000BB]$profs[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]length[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB]$i[/COLOR][COLOR=#007700]++)
    [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$prof [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$profs[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]item[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$i[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$class [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$prof[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]getAttribute[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'class'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$id [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$prof[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]getAttribute[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'uid'[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   if([/COLOR][COLOR=#0000BB]$class[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]'photoW ' [/COLOR][COLOR=#007700]&& [/COLOR][COLOR=#0000BB]$id[/COLOR][COLOR=#007700]!=[/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700])
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   {
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#DD0000]"http://w31.one.lt/navigate.do?st.id=community.friendcommentary.page&st.friend=[/COLOR][COLOR=#0000BB]$id[/COLOR][COLOR=#DD0000]"[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   echo [/COLOR][COLOR=#DD0000]"<br>"[/COLOR][COLOR=#007700];
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#FF8000]//echo $id.' ['.$j++.']<br>';
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]$bot[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]SendMsg[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$id[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$msg[/COLOR][COLOR=#007700]);
    [/COLOR][COLOR=#0000BB]   [/COLOR][COLOR=#0000BB]   }
    [/COLOR][COLOR=#0000BB]   }
    
    
    
    
    [/COLOR][COLOR=#0000BB]$bot[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]Logout[/COLOR][COLOR=#007700]();
    echo [/COLOR][COLOR=#DD0000]'<meta http-equiv="refresh" content="0;url=?p='[/COLOR][COLOR=#007700].++[/COLOR][COLOR=#0000BB]$p[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">'[/COLOR][COLOR=#007700];
    }
    else
    {
    echo [/COLOR][COLOR=#DD0000]'DONE'[/COLOR][COLOR=#007700];
    }
    
    
    [/COLOR][COLOR=#0000BB]?>
    [/COLOR][/COLOR]
     
  2. Kaimi

    Kaimi Newbie

    Joined:
    Dec 6, 2009
    Messages:
    35
    Likes Received:
    230
    Home Page:
    Try this:
    Replace
    Code:
    $login="in-blood";
    $password="hacked";
    
    With
    Code:
    $file = file('accounts.txt');
    $delimiter = ';';
    
    
    foreach ($file as $pair) 
    {
    list($login, $password) = explode($delimiter, trim($pair));
    
    And add } at the end of the script. Don't forget to place account list in accounts.txt with proper delimiter
     
    • Thanks Thanks x 1