summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Šijanec <sijanecantonluka@gmail.com>2019-04-11 00:47:25 +0200
committerGitHub <noreply@github.com>2019-04-11 00:47:25 +0200
commitefe86adc3dc8bca98147ea953432671d748a8546 (patch)
tree6ce0aa945e18e02202f3f7747cc41f7bcc0ed483
parentCreated nl.sh (diff)
downloadshort-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar.gz
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar.bz2
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar.lz
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar.xz
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.tar.zst
short-domain-finder-efe86adc3dc8bca98147ea953432671d748a8546.zip
Diffstat (limited to '')
-rw-r--r--ws.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/ws.php b/ws.php
new file mode 100644
index 0000000..7c5c246
--- /dev/null
+++ b/ws.php
@@ -0,0 +1,39 @@
+#!/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";
+ }
+ }
+}
+?>