diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-21 21:25:23 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-21 21:25:23 +0100 |
commit | ccf995b748d180d561ef31595f31dd4eb3e2be5c (patch) | |
tree | efa8c38ad65eca69320abe6d2fd7ab15e71847f0 | |
parent | added some domains (diff) | |
download | short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar.gz short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar.bz2 short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar.lz short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar.xz short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.tar.zst short-domain-finder-ccf995b748d180d561ef31595f31dd4eb3e2be5c.zip |
Diffstat (limited to '')
-rw-r--r-- | es.php | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -1,39 +0,0 @@ -#!/usr/bin/env php -<?php -// queries samoanic (ws tld) www service whois that has no limits and no captchas. run from commandline with -// $ php ws.php -// and not from browser/server, you will get a 504 gateway timeout or php sock will kill itself ˘~˘ -header("Content-type: text/plain"); -$znaki = array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", -"n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z"); -foreach($znaki as $znak1) { - foreach($znaki as $znak2) { - $postdata = http_build_query( - array( - 'userid' => '', - 'xs' => "", - 'notfromwhois' => '', - 'domain' => $znak1.$znak2, - 'tld' => "WS" - ) - ); - - $opts = array('http' => - array( - 'method' => 'POST', - 'header' => 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', - 'content' => $postdata - ) - ); - - $context = stream_context_create($opts); - - $result = file_get_contents('http://samoanic.ws/whois.dhtml', false, $context); - if (strpos($result, 'Congratulations') !== false) { - echo $znak1.$znak2.".ws <-- FREE\n"; - } else { - echo $znak1.$znak2.".ws <-- REGISTERED\n"; - } - } -} -?> |