Bitcoin Forum
May 02, 2024, 12:29:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitmixer.io mixer api per creare un mixer personale  (Read 1073 times)
babo (OP)
Legendary
*
Offline Offline

Activity: 3584
Merit: 4121



View Profile WWW
May 05, 2017, 09:20:52 AM
 #1

avendo a disposizione delle api m sono chiesto se non aveva senso, per giocare, creare un mixer che usasse quelle api

Code:
function fetch( $url, $z=null ) {
  $ch =  curl_init();

  $useragent = isset($z['useragent']) ? $z['useragent'] : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2';

  curl_setopt( $ch, CURLOPT_URL, $url );
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  curl_setopt( $ch, CURLOPT_AUTOREFERER, true );
  curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
  curl_setopt( $ch, CURLOPT_POST, isset($z['post']) );

  if( isset($z['post']) )         curl_setopt( $ch, CURLOPT_POSTFIELDS, $z['post'] );
  if( isset($z['refer']) )        curl_setopt( $ch, CURLOPT_REFERER, $z['refer'] );

  curl_setopt( $ch, CURLOPT_USERAGENT, $useragent );
  curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, ( isset($z['timeout']) ? $z['timeout'] : 5 ) );
  curl_setopt( $ch, CURLOPT_COOKIEJAR,  $z['cookiefile'] );
  curl_setopt( $ch, CURLOPT_COOKIEFILE, $z['cookiefile'] );

  $result = curl_exec( $ch );
  curl_close( $ch );
  return $result;
}

alla fine il pezzo piu complesso é questo, cioe una funzione che memorizza i cookie (bitmixer.io vuole che tu rimandi i cookie che ti spediscono loro)

e usare questa funzione per fare il fetch dell indirizzo a cui spedire i btc da mixare
e con cookie e indirizzo fare il fetch della lettera di garanzia

se qualcuno vuole vederlo sta in

http://www.crypto-coins.xyz/mixer/

a causa di troppo prove (senza finalizzare) potrebbe dare l errore appunto di aver creato troppe richieste senza finalizzarle

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
1714609774
Hero Member
*
Offline Offline

Posts: 1714609774

View Profile Personal Message (Offline)

Ignore
1714609774
Reply with quote  #2

1714609774
Report to moderator
1714609774
Hero Member
*
Offline Offline

Posts: 1714609774

View Profile Personal Message (Offline)

Ignore
1714609774
Reply with quote  #2

1714609774
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714609774
Hero Member
*
Offline Offline

Posts: 1714609774

View Profile Personal Message (Offline)

Ignore
1714609774
Reply with quote  #2

1714609774
Report to moderator
1714609774
Hero Member
*
Offline Offline

Posts: 1714609774

View Profile Personal Message (Offline)

Ignore
1714609774
Reply with quote  #2

1714609774
Report to moderator
1714609774
Hero Member
*
Offline Offline

Posts: 1714609774

View Profile Personal Message (Offline)

Ignore
1714609774
Reply with quote  #2

1714609774
Report to moderator
babo (OP)
Legendary
*
Offline Offline

Activity: 3584
Merit: 4121



View Profile WWW
May 07, 2017, 10:07:15 AM
 #2

ho creato un repo github con tutto il progetto
cosi chiunque puo metterlo su e provarlo e ispezionarlo, tanto per me era un esperimento Smiley


https://github.com/blackout314/bitmixer_mixer

edit: attenzione alla licenza, GPL 3 Affero.. sono uno che distribuisce sempre il suo codice (per poter dare ad altri la possibilita di studiare o usarlo) ma se qualcuno non rispetta la licenza, saranno gli avvocati FSF a farvi il buco del culo modalita ruota di carro

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!