Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ?php
- $Black = "\033[0;30m"; # Black
- $Red = "\033[0;31m"; # Red
- $Green = "\033[0;32m"; # Green
- $Yellow = "\033[0;33m"; # Yellow
- $Blue = "\033[0;34m"; # Blue
- $Purple = "\033[0;35m"; # Purple
- $Cyan = "\033[0;36m"; # Cyan
- $White = "\033[0;37m"; # White
- $normal = "\033[0m";
- $banner = "$Green $$$$$$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$ __$$\ $$ |$$ | $$ | $$ | $$ | $$ |\__| $$ | $$ | $$ / \__| $$$$$$\ $$ |$$ |$$\ $$\ $$ | $$$$$$\ $$$$$$\ $$ | $$ |$$$$$$\ $$ |$$\ $$$$$$$ | $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ | $$ __$$\ $$ |$$ |$$ | $$ |$$ | \____$$\ $$ __$$\ \$$\ $$ |\____$$\ $$ |$$ |$$ __$$ | \____$$\\_$$ _| $$ __$$\ $$ __$$\ $$ | $$$$$$$$ |$$ |$$ |$$ | $$ |$$ | $$$$$$$ |$$ | \__| \$$\$$ / $$$$$$$ |$$ |$$ |$$ / $$ | $$$$$$$ | $$ | $$ / $$ |$$ | \__| $$ | $$\ $$ ____|$$ |$$ |$$ | $$ |$$ |$$ __$$ |$$ | \$$$ / $$ __$$ |$$ |$$ |$$ | $$ |$$ __$$ | $$ |$$\ $$ | $$ |$$ | \$$$$$$ |\$$$$$$$\ $$ |$$ |\$$$$$$ |$$ |\$$$$$$$ |$$ | \$ / \$$$$$$$ |$$ |$$ |\$$$$$$$ |\$$$$$$$ | \$$$$ |\$$$$$$ |$$ | \______/ \_______|\__|\__| \______/ \__| \_______|\__| \_/ \_______|\__|\__| \_______| \_______| \____/ \______/ \__| Forrmat example : 25088xxx without +1 $normal" . $Yellow;
- echo $banner;
- echo "Input List : ";
- $getlist = trim(fgets(STDIN));
- $inilist = preg_split('/\n|\r\n?/', trim(file_get_contents($getlist)));
- for ($i = 0; $i < count($inilist); $i++) { # code...
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://api.telnyx.com/anonymous/v2/number_lookup/+1" . $inilist[$i]);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
- curl_setopt($ch, CURLOPT_TIMEOUT, 0);
- curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
- $response = curl_exec($ch);
- $get = json_decode($response);
- if ($get->data->carrier->name != '') {
- printf($Green . " [ $i / " . count($inilist) . " ] " . "-=Cellular=> " . $inilist[$i] . " | =-Provider=> " . $get->data->carrier->name . "$normal\n");
- file_put_contents("clear.txt", $inilist[$i] . " | " . $get->data->carrier->name . PHP_EOL, FILE_APPEND);
- } else {
- printf($Red . " [ $i / " . count($inilist) . " ] " . "-=Cellular=> " . $inilist[$i] . " | INVALID $normal\n");
- file_put_contents("invalid.txt", $inilist[$i] . " | INVALID" . PHP_EOL, FILE_APPEND);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement