Skip to content

Instantly share code, notes, and snippets.

@blackhalt
Last active December 15, 2015 06:59
Show Gist options
  • Save blackhalt/5219962 to your computer and use it in GitHub Desktop.
Save blackhalt/5219962 to your computer and use it in GitHub Desktop.
Interneta balsotājs. Parastais
<?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