Last active
December 15, 2015 06:59
-
-
Save blackhalt/5219962 to your computer and use it in GitHub Desktop.
Interneta balsotājs. Parastais
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Šis ir standarta TOR, bet var būt ari cits proxy vai pat proxy lista cikls : | |
define("PROX", "127.0.0.1:9050"); | |
$ch = curl_init(); | |
# POSTējamie dati. Pirmais = lauks, otrs = vertība | |
$data = array( | |
'voteid' => '3', | |
'pollid' => '709', | |
'poll' => 'Balsot', | |
); | |
curl_setopt($ch, CURLOPT_PROXY, PROX); | |
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); | |
curl_setopt($ch, CURLOPT_URL, 'Kautkādalapa.lv/kautkādsid=kautkas'); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | |
curl_exec($ch); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment