Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo ' Domain : ';
- $tld = trim(fgets(STDIN));
- // array of possible top-level domains
- // string of possible characters
- $char = "0123456789abcdefghijklmnopqrstuvwxyz";
- // start output
- echo "<p>\n";
- // main loop - this gives 1000 addresses
- for ($j = 0; $j < 30000; $j++) {
- // choose random lengths for the username ($ulen) and the domain ($dlen)
- $ulen = mt_rand(2, 5);
- $dlen = mt_rand(2, 6);
- // reset the address
- $a = "";
- // get $ulen random entries from the list of possible characters
- // these make up the username (to the left of the @)
- $a .= "http://";
- for ($i = 1; $i <= $ulen; $i++) {
- $a .= substr($char, mt_rand(0, strlen($char)), 1);
- }
- // wouldn't work so well without this
- // now get $dlen entries from the list of possible characters
- // this is the domain name (to the right of the @, excluding the tld)
- for ($i = 1; $i <= $dlen; $i++) {
- $a .= substr($char, mt_rand(0, strlen($char)), 1);
- }
- // need a dot to separate the domain from the tld
- $a .= ".";
- // finally, pick a random top-level domain and stick it on the end
- $a .= $tld;
- // done - echo the address inside a link
- echo "". $a. "\n";
- }
- // tidy up - finish the paragraph
- echo "Silahkan Copy Dan Notify Sendiri KONTOLLLLL!!\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement