Skip to content

Instantly share code, notes, and snippets.

View ctubio's full-sized avatar
💾
apply patch? [n]: yyyyyyyyyyyyyyy

Carles Tubio ctubio

💾
apply patch? [n]: yyyyyyyyyyyyyyy
View GitHub Profile
@ctubio
ctubio / tor_curl.php
Last active September 5, 2015 03:38 — forked from zachflower/tor_curl.php
How To Anonymize PHP cURL Requests Using Tor
<?php
$ip = '127.0.0.1';
$port = '9051';
$auth = 'PASSWORD';
$command = 'signal NEWNYM';
$fp = fsockopen($ip,$port,$error_number,$err_string,10);
if(!$fp) { echo "ERROR: $error_number : $err_string";
return false;