Advertisement
natta25

Validator provider

Mar 30th, 2022
1,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.40 KB | None | 0 0
  1. <?php
  2. ?php
  3. $Black  = "\033[0;30m"; # Black
  4. $Red    = "\033[0;31m"; # Red
  5. $Green  = "\033[0;32m"; # Green
  6. $Yellow = "\033[0;33m"; # Yellow
  7. $Blue   = "\033[0;34m"; # Blue
  8. $Purple = "\033[0;35m"; # Purple
  9. $Cyan   = "\033[0;36m"; # Cyan
  10. $White  = "\033[0;37m"; # White
  11. $normal = "\033[0m";
  12. $banner = "$Green $$$$$$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$ __$$\ $$ |$$ | $$ | $$ | $$ | $$ |\__| $$ | $$ | $$ / \__| $$$$$$\ $$ |$$ |$$\ $$\ $$ | $$$$$$\ $$$$$$\ $$ | $$ |$$$$$$\ $$ |$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ | $$ __$$\ $$ |$$ |$$ | $$ |$$ | \____$$\ $$ __$$\ \$$\ $$ |\____$$\ $$ |$$ |$$ __$$ | \____$$\\_$$ _| $$ __$$\ $$ __$$\ $$ | $$$$$$$$ |$$ |$$ |$$ | $$ |$$ | $$$$$$$ |$$ | \__| \$$\$$ / $$$$$$$ |$$ |$$ |$$ / $$ | $$$$$$$ | $$ | $$ / $$ |$$ | \__| $$ | $$\ $$ ____|$$ |$$ |$$ | $$ |$$ |$$ __$$ |$$ | \$$$ / $$ __$$ |$$ |$$ |$$ | $$ |$$ __$$ | $$ |$$\ $$ | $$ |$$ | \$$$$$$ |\$$$$$$$\ $$ |$$ |\$$$$$$ |$$ |\$$$$$$$ |$$ | \$ / \$$$$$$$ |$$ |$$ |\$$$$$$$ |\$$$$$$$ | \$$$$ |\$$$$$$ |$$ | \______/ \_______|\__|\__| \______/ \__| \_______|\__| \_/ \_______|\__|\__| \_______| \_______| \____/ \______/ \__| Forrmat example : 25088xxx without +1 $normal" . $Yellow;
  13. echo $banner;
  14. echo "Input List : ";
  15. $getlist = trim(fgets(STDIN));
  16. $inilist = preg_split('/\n|\r\n?/', trim(file_get_contents($getlist)));
  17. for ($i = 0; $i < count($inilist); $i++) { # code...
  18.     $ch = curl_init();
  19.     curl_setopt($ch, CURLOPT_URL, "https://api.telnyx.com/anonymous/v2/number_lookup/+1" . $inilist[$i]);
  20.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  21.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  22.     curl_setopt($ch, CURLOPT_HEADER, 0);
  23.     curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
  24.     curl_setopt($ch, CURLOPT_TIMEOUT, 0);
  25.     curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
  26.     $response = curl_exec($ch);
  27.     $get      = json_decode($response);
  28.     if ($get->data->carrier->name != '') {
  29.         printf($Green . " [ $i / " . count($inilist) . " ] " . "-=Cellular=> " . $inilist[$i] . " | =-Provider=> " . $get->data->carrier->name . "$normal\n");
  30.         file_put_contents("clear.txt", $inilist[$i] . " | " . $get->data->carrier->name . PHP_EOL, FILE_APPEND);
  31.     } else {
  32.         printf($Red . " [ $i / " . count($inilist) . " ] " . "-=Cellular=> " . $inilist[$i] . " | INVALID $normal\n");
  33.         file_put_contents("invalid.txt", $inilist[$i] . " | INVALID" . PHP_EOL, FILE_APPEND);
  34.     }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement