Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- | Subdomain Checker BY SecurityTrails.COM
- |
- | Web based
- | ?domain=&api=
- | Gunakan dengan bijak
- |
- |
- |
- | ^_^ Thanks you all
- |
- By SangPujaan
- */
- $domain = $_GET['domain'];
- $apikey = $_GET['api'];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://api.securitytrails.com/v1/domain/'.$domain.'/subdomains?children_only=false');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
- $headers = array();
- $headers[] = 'Apikey: '.$apikey; //Api key : ymV8m8oh4ZyKLC81SOBgDyVLGUjlVyVb
- $headers[] = 'Accept: application/json';
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- preg_match_all('/"(.+)",/', $result, $x);
- for ($i = 0; $i < sizeof($x[1]); $i++) {
- echo $x[1][$i].".".$domain."<br>";
- }
- ?>
Add Comment
Please, Sign In to add comment