Bitcoin Forum
June 27, 2024, 10:44:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [24] 25 »
461  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 10:16:47 PM
I get these error messages:

Notice: Undefined index: currency in /hp/ca/aa/gh/www/LandOfDogecoin/index.php on line 522

Warning: Invalid argument supplied for foreach() in /hp/ca/aa/gh/www/LandOfDogecoin/index.php on line 622

Warning: Invalid argument supplied for foreach() in /hp/ca/aa/gh/www/LandOfDogecoin/index.php on line 651

Thanks for your fast and nice support Wink


Your PHP and OPENSSL Version is?
462  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 12, 2014, 06:07:18 PM
I think we should wait one week, see if they pay out, and continue from there

I know a lot of people may have only recently checked to lower their limit so Microwallet would pay out. But it's been longer than a week that they haven't. Mine's been set to go for longer than a week as it is. I don't remember the exact day, I guess I should have written it down, but it's probably closer to 2 weeks right now, that they haven't sent out anything. Maybe someone can say the last time they received a payment and see what the last day they paid out was. But I know it's been longer than a week.

I've been posting in this thread for the past couple of days, and their site says 24 hours for payments too. MW obviously doesn't care that that lie has been on their site for a week.

The last payment was 2014-10-30 (12 days ago)

https://blockchain.info/address/1JA4GGzsGbNnu4SksU49YF9FkA12MRVQWN
463  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 01:54:39 PM
Thank you NeedItFindIt for your kind help.
Unfortunately, still don't work (commenting or uncommenting that line)
https://104.28.29.86/api/v1/ goes to a Cloudflare error. Faucet remains unworking.



Ofc that when you open in the browser https://104.28.29.86/api/v1/ it goes to Cloudflare error.

But the script opens connection to 104.28.29.86:443 and then replaces Host: faucetbox.com

Then CURLOPT_SSL_VERIFYPEER disables the https domain check.

plumber-curl.php
Code:
<?php

        $params 
array_merge(array("api_key" => ''"currency" => 'BTC'));

        
$ch curl_init('https://104.28.29.86/api/v1/');

        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$params);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);

        
curl_setopt($chCURLOPT_HTTPHEADER, array('Host: faucetbox.com'));

        
$response json_decode(curl_exec($ch), true);

        
curl_close($ch);

        
print_r($response);

?>


Returns:
Code:
Invalid API method

So it works for me.
464  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 01:28:53 PM
NeedItFindIt: I am using FaucetInABox Script (only template is modified).

Try this if you want:

Make a backup of:
Code:
libs/faucetbox.php

Then open:
Code:
libs/faucetbox.php

Replace:
Code:
    public function __exec($method, $params = array()) {
        $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency));

        $ch = curl_init($this->api_base . $method);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $response = json_decode(curl_exec($ch), true);
        $this->last_status = $response['status'];
        curl_close($ch);

        return $response;
    }

By:
Code:
    public function __exec($method, $params = array()) {
        $params = array_merge($params, array("api_key" => $this->api_key, "currency" => $this->currency));

        $ch = curl_init('https://104.28.29.86/api/v1/');
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: faucetbox.com'));
        //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $response = json_decode(curl_exec($ch), true);
        $this->last_status = $response['status'];
        curl_close($ch);

        return $response;
    }

If it still does not work then uncomment
Code:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Wait max 3 days for the DNS and restore the original file.
465  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 01:00:27 PM
I am more confused now. Banned ??

The script is not getting the right answer from the old host = probably banned (from the old host)

You missed answering the question:
What is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?
466  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 12:11:12 PM
My faucet still not working  Huh

Error connecting to FaucetBOX.com API.


Try to run this on the server and report the result. https://bitcointalk.org/index.php?topic=844119.msg9513928#msg9513928

Also what is using your faucet "modified microfaucet" or "faucet in a box" script or custom script?
467  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 01:11:43 AM
Cloudflare does not allow direct IP access.

By direct access I mean replacing:
Code:
fsockopen('ssl://faucetbox.com', 443);

With:
Code:
fsockopen('ssl://104.28.29.86', 443);

This is for the modified MicroFaucet Websites.


The "Faucet in a Box" script is using CURL and needs different approach.
468  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 12:51:39 AM
But that's because it uses the Cloudflare nameservers. Real IP of Faucetbox.com is 185.25.151.163.  He have other sites running in that ip.

Right, but if you want to make your website work before the DNS kicks in you have to choose one of them.

If you choose the real one 185.*.*.* and he moves in a week ... your website will stop again.
469  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 12, 2014, 12:39:40 AM
104.28.29.86 is a Cloudflare DNS.

It is DNS response.

C:\Users\LOL>ping faucetbox.com

Pinging faucetbox.com [104.28.29.86] with 32 bytes of data:
Reply from 104.28.29.86: bytes=32 time=31ms TTL=51
Reply from 104.28.29.86: bytes=32 time=29ms TTL=51
...
470  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 11, 2014, 11:46:40 PM
There are also some DB encoding issues. Roman-САТОШ became Roman-?Huh??


Update guys. I believe the migration is complete and the tests went fine. FaucetBOX.com should work again as soon as DNS updates. At least I hope so Smiley

Some faucets are working. Mine, unfortunately, not yet.

If it uses fsockopen you can put (temporary) directly the new IP instead of the domain name Wink

Actually I see the same issue appearing that MW had a week ago. PHP 5.4 and older are unable to connect using the domain name.

Here is my debug tool made to work with FaucetBox.

plumber-diag-tool-fb.php
Code:
<?php

  
echo '<pre>';
  echo 
'Plumber FB Diagnostic Tool 0.9b by NeedIfFindIt'."\n";
  echo 
"\n";
  echo 
'PHP Version: '.phpversion()."\n";
  echo 
'OPENSSL Version: '.OPENSSL_VERSION_TEXT."\n";
  echo 
'allow_url_fopen: '.((ini_get('allow_url_fopen')==1)?'Success':'<b style="color:red;">Fail</b>: Unable to connect. Solution:'."\n".'- Ask your host to enable allow_url_fopen')."\n";
  echo 
'DNS Response: '.((gethostbyname('faucetbox.com')=='faucetbox.com')?'<b style="color:red;">Fail</b>: Unable to resolve ':gethostbyname('faucetbox.com'))."\n";

  
$http_dns_ok=true;

  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTP ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: faucetbox.com\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('faucetbox.com'80$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' DNS: Unable to resolve'."\n";
      
$http_dns_ok=false;
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'Moved Permanently')!==false) {
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact support@faucetbox.com'."\n";
    }
  }

  
$ip_ok=false;
  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS - IP method ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: faucetbox.com\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://104.28.29.86'443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'Invalid API key')!==false) {
      
$ip_ok=true;
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact support@faucetbox.com'."\n";
    }
  }

  
$gethostbyname_ok=false;
  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: faucetbox.com\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://'.gethostbyname('faucetbox.com'), 443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'Invalid API key')!==false) {
      
$gethostbyname_ok=true;
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact support@faucetbox.com'."\n";
    }
  }

  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: faucetbox.com\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://faucetbox.com'443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      if (
$http_dns_ok) {
        echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure - Solution(s):'."\n";
        if (
version_compare(PHP_VERSION'5.5.0')<0) {
          echo 
'- Upgrade to PHP 5.5+ with OPENSSL 1.0.1+'."\n";
        }
        if (
$gethostbyname_ok) {
           echo 
'- Use the gethostbyname method'."\n";
        }
        if ((
$ip_ok)&&(!$gethostbyname_ok)) {
           echo 
'- Use the IP method'."\n";
        }
      } else {
        echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' DNS: Unable to resolve'."\n";
      }
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'Invalid API key')!==false) {
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact support@faucetbox.com'."\n";
    }
  }

  echo 
"\n";
  echo 
'If you are unable to help yourself please kindly post all the content above at: <a href="https://bitcointalk.org/index.php?topic=844119.0;all">https://bitcointalk.org/index.php?topic=844119.0;all</a>'."\n";
  echo 
'<b>Don\'t forget to delete this file.</b>';
  echo 
'</pre>';

?>


And sample result:
Code:
Plumber FB Diagnostic Tool 0.9b by NeedIfFindIt

PHP Version: 5.3.27
OPENSSL Version: OpenSSL 0.9.8zb 6 Aug 2014
allow_url_fopen: Success
DNS Response: 104.28.29.86

--- Trying FSOCKOPEN - HTTP ---
Success

--- Trying FSOCKOPEN - HTTPS - IP method ---
Success

--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---
Success

--- Trying FSOCKOPEN - HTTPS ---
Fail: (0)  SSL negotiation failure - Solution(s):
- Upgrade to PHP 5.5+ with OPENSSL 1.0.1+
- Use the gethostbyname method
471  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 11, 2014, 11:08:51 PM
It is totally absurd week in this "business".

There are already 30.5 BTC stuck in MW address (almost enough for a small car) and the faucet owners continue to add to this amount. Land Of Bitcoin stopped responding long time ago.
https://blockchain.info/address/1JY32Go7JmDXNoVt9hpzQvfMA9Q4jxW1B6

At the same time FaucetBox makes a fail while moving their server. And send to their users the accumulated amount twice Grin
https://bitcointalk.org/index.php?topic=844119.msg9513036#msg9513036

I bet this is not a type of promotion.
472  Economy / Micro Earnings / Re: [ANN] FaucetBOX.com - free API & faucet script, create your own crypto faucet on: November 11, 2014, 10:03:53 PM
Your faucets also got 9000+ hits from us during the last few days.

FaucetBox List

The most concerning thing is that white testing 1-2 days ago one of the faucets kept returning "Unknown Error". Allowing me to rerty 1 or 2 times before it returned success message.

When I checked the FaucetBox website I found 3 payment in a row from that faucet  Shocked Shocked Shocked

You really have to check your soft/api etc.


The other LOL thing is that today you have paid TWICE to the same users and I still see the amount as pending in FaucetBox Shocked

Just compare the top addresses:
https://blockchain.info/tx-index/2bc4e56a11a5d0778317404008b2a58a87d142635623b6b2853dacb287476470

https://blockchain.info/tx-index/102ce970ffea743285e14c73cd4de42edafd0459f563dbb65de5b4373eb40481

Yep, I was able to keep quiet about that  Roll Eyes Roll Eyes Roll Eyes Thanks for the free coffee, but FIX it or you will repeat the MtGox story!
473  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 08, 2014, 02:26:09 PM
What happend to MW

from past 3 or 4 days back they kept that they had a bug in API, they will solve on that day itself, but still now no payments from them, Please MW people, respond, will this site going to continue or closed??

lm already waiting 7 days and still no payment from mw...

send mail to admin mw , no response.
asked in this thread also no response.

all no respon. wkwkwk

The good news is that they didn't steal the BTC (yet) Grin

Correct if I'm wrong but this is the address where all the BTC go when the faucet owners make a payment.
https://blockchain.info/address/1JY32Go7JmDXNoVt9hpzQvfMA9Q4jxW1B6
So there are 28 BTC to be spread, lol  Shocked Shocked Shocked quite alot for 9 days of inactivity.


TLS/SSL support added and forced for users.

And for the API calls it gives back an error instead of a lame redirect:
http://www.microwallet.org/api/v1/balance

(Also this will never store more than like 50 USD total balance of all users anyways, it's called cache and micro for a reason.)

Never say never ... 28 BTC is almost 10 000 USD  Cheesy
474  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 07, 2014, 10:17:00 PM
If there is a bug in the Blockchain.info API FaucetBox is also affected?
Has anyone received a payments over FaucetBox to his real Bitcoin Wallet (Electrum,Coinbase,Xapo etc.)?

Yes, but they are paying to 10-20 addresses at a time 1, 2 or 3 times a day. Pretty dusty and wasteful but they are new in the business and are trying make a good impression.

MW have to combine tons of inputs and outputs in order to keep the fees low. And probably they don't have good strategy to do it (I'm just speculating).
475  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 07, 2014, 04:13:35 PM
Did you guys got less page views in the last 1 or 2 weeks?


i have lost like half page views. Just to check if the problem is only with me or everybody is suffering the same.

(people avoiding a little land of bitcoin afraid of not getting paid)

With little bit of sniffing at adbit you can find that it happens with more than 95% of the microwallet faucets  Sad
476  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 07, 2014, 10:13:56 AM
Any idea how it calculates averages?

My rewards are 100*70, 250*29, 500

and its giving me a average of "Your current average: 8"

Find:
Code:
$totalAmount += $reward;

Replace with:
Code:
$totalAmount += $reward*$multiplier;

Yes, I like Beer  Wink
477  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 06, 2014, 11:33:55 PM
Here it is my Plumber MW Diagnostic Tool  Shocked

If there are ppl still not able to make their faucets flow.

plumber-diag-tool.php
Code:
<?php

  
echo '<pre>';
  echo 
'Plumber MW Diagnostic Tool 0.9b by NeedIfFindIt'."\n";
  echo 
"\n";
  echo 
'PHP Version: '.phpversion()."\n";
  echo 
'OPENSSL Version: '.OPENSSL_VERSION_TEXT."\n";
  echo 
'allow_url_fopen: '.((ini_get('allow_url_fopen')==1)?'Success':'<b style="color:red;">Fail</b>: Unable to connect. Solution:'."\n".'- Ask your host to enable allow_url_fopen')."\n";
  echo 
'DNS Response: '.((gethostbyname('www.microwallet.org')=='www.microwallet.org')?'<b style="color:red;">Fail</b>: Unable to resolve ':gethostbyname('www.microwallet.org'))."\n";

  
$http_dns_ok=true;

  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTP ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: www.microwallet.org\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('www.microwallet.org'80$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' DNS: Unable to resolve'."\n";
      
$http_dns_ok=false;
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'Use HTTPS instead of HTTP.')!==false) {
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact info@microwallet.org'."\n";
    }
  }

  
$ip_ok=false;
  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS - IP method ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: www.microwallet.org\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://104.28.0.112'443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'API key missing')!==false) {
      
$ip_ok=true;
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact info@microwallet.org'."\n";
    }
  }

  
$gethostbyname_ok=false;
  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: www.microwallet.org\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://'.gethostbyname('www.microwallet.org'), 443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'API key missing')!==false) {
      
$gethostbyname_ok=true;
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact info@microwallet.org'."\n";
    }
  }

  echo 
"\n";
  echo 
'--- Trying FSOCKOPEN - HTTPS ---'."\n";
  
$request '';
  
$request .= "GET /api/v1/balance HTTP/1.1\r\n";
  
$request .= "Host: www.microwallet.org\r\n";
  
$request .= "Connection: close\r\n\r\n";
  
$fp = @fsockopen('ssl://www.microwallet.org'443$errno$errstr5);
  if (!
$fp) {
    if (
$errno==0) {
      if (
$http_dns_ok) {
        echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' SSL negotiation failure - Solution(s):'."\n";
        if (
version_compare(PHP_VERSION'5.5.0')<0) {
          echo 
'- Upgrade to PHP 5.5+ with OPENSSL 1.0.1+'."\n";
        }
        if (
$gethostbyname_ok) {
           echo 
'- Use the gethostbyname method'."\n";
        }
        if ((
$ip_ok)&&(!$gethostbyname_ok)) {
           echo 
'- Use the IP method'."\n";
        }
      } else {
        echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr.' DNS: Unable to resolve'."\n";
      }
    } else {
      echo 
'<b style="color:red;">Fail</b>: ('.$errno.') '.$errstr."\n";
    }
  } else {
    @
fputs($fp$request);
    
$response '';
    while (!@
feof($fp)) {
      
$response .= @fgets($fp1024);
    }
    @
fclose($fp);
    if (
stripos($response'API key missing')!==false) {
      echo 
'Success'."\n";
    } else {
      echo 
'<b style="color:red;">Fail</b>: Banned. Solution:'."\n".'- Contact info@microwallet.org'."\n";
    }
  }

  echo 
"\n";
  echo 
'If you are unable to help yourself please kindly post all the content above at: <a href="https://bitcointalk.org/index.php?topic=348060.520">https://bitcointalk.org/index.php?topic=348060.520</a>'."\n";
  echo 
'<b>Don\'t forget to delete this file.</b>';
  echo 
'</pre>';

?>


Sample results:
Code:
Plumber MW Diagnostic Tool 0.9b by NeedIfFindIt

PHP Version: 5.3.27
OPENSSL Version: OpenSSL 0.9.8zb 6 Aug 2014
allow_url_fopen: Success
DNS Response: 104.28.0.112

--- Trying FSOCKOPEN - HTTP ---
Success

--- Trying FSOCKOPEN - HTTPS - IP method ---
Success

--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---
Success

--- Trying FSOCKOPEN - HTTPS ---
Fail: (0)  SSL negotiation failure - Solution(s):
- Upgrade to PHP 5.5+ with OPENSSL 1.0.1+
- Use the gethostbyname method

Code:
Plumber MW Diagnostic Tool 0.9b by NeedIfFindIt

PHP Version: 5.5.1
OPENSSL Version: OpenSSL 1.0.1e 11 Feb 2013
allow_url_fopen: Success
DNS Response: 104.28.0.112

--- Trying FSOCKOPEN - HTTP ---
Success

--- Trying FSOCKOPEN - HTTPS - IP method ---
Success

--- Trying FSOCKOPEN - HTTPS - gethostbyname method ---
Success

--- Trying FSOCKOPEN - HTTPS ---
Success

If you are unable to help yourself please kindly post all the content above at: https://bitcointalk.org/index.php?topic=348060.520
Don't forget to delete this file.
478  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 06, 2014, 08:53:38 PM
please post some useful discussion about Microwallet having Issues regarding IP and API
 

This is the only temp fix I know, but it should work.

Balance Fix:
Replace:
Code:
 $balance = @file_get_contents('https://www.microwallet.org/api/v1/balance?api_key=' . rawurlencode($GLOBALS['settings']['microwallet_api_key']));

With...
Code:
   $balance = @file_get_contents('https://www.microwallet.org/api/v1/balance?api_key=' . rawurlencode($GLOBALS['settings']['microwallet_api_key']));
            $request = '';
            $request .= "GET /api/v1/balance?api_key=".rawurlencode($GLOBALS['settings']['microwallet_api_key'])." HTTP/1.0\r\n";
            $request .= "Host: www.microwallet.org\r\n";
            $request .= "Connection: close\r\n\r\n";
            $fp = @fsockopen('ssl://104.28.0.112', 443);
            if (!$fp) {
              // ??
            }
            @fputs($fp, $request);
            $response = '';
            while (!@feof($fp)) {
                $response .= @fgets($fp, 1024);
            }
            @fclose($fp);
            $balance = explode("\r\n\r\n", $response);
            $balance = $balance[1];

Failure to Send Fix:
Replace:
Code:
$fp = @fsockopen('ssl://www.microwallet.org', 443);
        if (!$fp) {
            return array(
                'success' => false,
                'message' => 'Failed to send.',
                'html' => '<div class="alert alert-danger">Failed to send.</div>',
                'response' => null,
            );

With...
Code:
$fp = @fsockopen('ssl://'.gethostbyname('www.microwallet.org'), 443);
        if (!$fp) {
            return array(
                'success' => false,
                'message' => 'Failed to send.',
                'html' => '<div class="alert alert-danger">Failed to send.</div>',
                'response' => null,
            );



While copying you forgot the // before $balance. This may slowdown the script every 10 minutes because it will try also the old way.

The correct balance code.

Replace:
Code:
$balance = @file_get_contents('https://www.microwallet.org/api/v1/balance?api_key=' . rawurlencode($GLOBALS['settings']['microwallet_api_key']));

With:
Code:
//  $balance = @file_get_contents('https://www.microwallet.org/api/v1/balance?api_key=' . rawurlencode($GLOBALS['settings']['microwallet_api_key']));
            $request = '';
            $request .= "GET /api/v1/balance?api_key=".rawurlencode($GLOBALS['settings']['microwallet_api_key'])." HTTP/1.0\r\n";
            $request .= "Host: www.microwallet.org\r\n";
            $request .= "Connection: close\r\n\r\n";
            $fp = @fsockopen('ssl://104.28.0.112', 443);
            if (!$fp) {
              // ??
            }
            @fputs($fp, $request);
            $response = '';
            while (!@feof($fp)) {
                $response .= @fgets($fp, 1024);
            }
            @fclose($fp);
            $balance = explode("\r\n\r\n", $response);
            $balance = $balance[1];
479  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 04, 2014, 09:34:25 PM
Do you have a hosting environment that your using to test this while your helping others or all locally? If you would like to be setup with a free cpanel let me know. Thanks for showing how great the Bitcoin community can be by helping others.

Thanks but unless it comes with root access (where I can "play" with the server and probably crash it) it is not going to help. Personally I'm using dedicated server that is far away from "standard".

About the "unknown error" I can't help, your IP is probably banned so the PHP version does not matter.
480  Economy / Micro Earnings / Re: [ANN] Microwallet.org - API + free faucet script, start your own faucet! on: November 04, 2014, 07:44:40 PM
Maybe I got what's the issue.

Because of recently discovered bug in the SSL v3 most "new & secure" web hosters decided to remove the backward compatibility (I read about that somewhere few weeks ago  Roll Eyes). Assuming that www.microwallet.org has moved to a better place or upgraded the security at cloudflare.com then we got the issue.

If you are using php 5.4.x or below then it uses php_openssl 0.9.x and it will not work with the domain name. The best option is to use:

Code:
$fp = @fsockopen('ssl://'.gethostbyname('www.microwallet.org'), 443);
If it is too slow then cache the IP somehow and use it directly. Or just go for php 5.5.


If you are using php 5.5.x or php 5.6.x then it uses php_openssl 1.0.x and everything is fine using the original code:

Code:
$fp = @fsockopen('ssl://www.microwallet.org', 443);

Ofc. I may be wrong  Roll Eyes What are your PHP versions?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [24] 25 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!