Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Colors {
- private $foreground_colors = array();
- private $background_colors = array();
- public function __construct() {
- // Set up shell colors
- $this->foreground_colors['black'] = '0;30';
- $this->foreground_colors['dark_gray'] = '1;30';
- $this->foreground_colors['blue'] = '0;34';
- $this->foreground_colors['light_blue'] = '1;34';
- $this->foreground_colors['green'] = '0;32';
- $this->foreground_colors['light_green'] = '1;32';
- $this->foreground_colors['cyan'] = '0;36';
- $this->foreground_colors['light_cyan'] = '1;36';
- $this->foreground_colors['red'] = '0;31';
- $this->foreground_colors['light_red'] = '1;31';
- $this->foreground_colors['purple'] = '0;35';
- $this->foreground_colors['light_purple'] = '1;35';
- $this->foreground_colors['brown'] = '0;33';
- $this->foreground_colors['yellow'] = '1;33';
- $this->foreground_colors['light_gray'] = '0;37';
- $this->foreground_colors['white'] = '1;37';
- $this->background_colors['black'] = '40';
- $this->background_colors['red'] = '41';
- $this->background_colors['green'] = '42';
- $this->background_colors['yellow'] = '43';
- $this->background_colors['blue'] = '44';
- $this->background_colors['magenta'] = '45';
- $this->background_colors['cyan'] = '46';
- $this->background_colors['light_gray'] = '47';
- }
- public function getColoredString($string, $foreground_color = null, $background_color = null) {
- $colored_string = "";
- if (isset($this->foreground_colors[$foreground_color])) {
- $colored_string .= "\033[" . $this->foreground_colors[$foreground_color] . "m";
- }
- if (isset($this->background_colors[$background_color])) {
- $colored_string .= "\033[" . $this->background_colors[$background_color] . "m";
- }
- $colored_string .= $string . "\033[0m";
- return $colored_string;
- }
- public function getForegroundColors() {
- return array_keys($this->foreground_colors);
- }
- public function getBackgroundColors() {
- return array_keys($this->background_colors);
- }
- }
- $colors = new Colors();
- //Login with your email & app password you have been generated before.
- $username = 'xxxx@gmail.com';
- $password = 'xxxxxx'; //Use generate password you have been generated before.
- //Which folders or label do you want to access? - Example: INBOX, All Mail, Trash, labelname
- $imapmainbox = "xxxx";
- // ALL for all Email - UNSEEN for unseen email.
- $messagestatus = "ALL";
- $imapaddress = "{imap.gmail.com:993/imap/ssl/novalidate-cert}";
- $hostname = $imapaddress . $imapmainbox;
- $connection = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());
- $emails = imap_search($connection,$messagestatus);
- $totalemails = imap_num_msg($connection);
- echo "
- ╔═╗┬─┐┌─┐┌┬┐┬┌┬┐ ╔═╗┌─┐┬─┐┌┬┐ ╔═╗┬─┐┌─┐┌┐ ┌┐ ┌─┐┬─┐
- ║ ├┬┘├┤ │││ │ ║ ├─┤├┬┘ ││ ║ ╦├┬┘├─┤├┴┐├┴┐├┤ ├┬┘
- ╚═╝┴└─└─┘─┴┘┴ ┴ ╚═╝┴ ┴┴└──┴┘ ╚═╝┴└─┴ ┴└─┘└─┘└─┘┴└─";
- echo $colors->getColoredString("Configuration 1", "black", "green") . "\n";
- echo $colors->getColoredString("1. Go to https://myaccount.google.com/u/8/security", "black", "green") . "\n";
- echo $colors->getColoredString("2. [!!REMEMBER!!] 2-Step Verification must Enabled!", "black", "green") . "\n";
- echo $colors->getColoredString("3. If 2-Step Verification has been Enabled , go to https://myaccount.google.com/u/8/apppasswords", "black", "green") . "\n";
- echo $colors->getColoredString("4. Change the Setting to", "black", "green") . "\n";
- echo $colors->getColoredString("[*]Select App -> Mail", "black", "green") . "\n";
- echo $colors->getColoredString("[*]Select Device -> Other Custom Name", "black", "green") . "\n";
- echo $colors->getColoredString("[*]Input Custom Name ( Whatever you want )", "black", "green") . "\n";
- echo $colors->getColoredString("[*]Generate", "black", "green") . "\n";
- echo $colors->getColoredString("The App Password will be show'in like this xxxx xxxx xxxx xxxx ( 16 Character of password )", "black", "green") . "\n";
- echo $colors->getColoredString("Login into script using your email & password from App Password", "black", "green") . "\n";
- echo $colors->getColoredString("Enjoy!", "black", "green") . "\n";
- echo $colors->getColoredString("Usage : php ccgrab.php ", "black", "green") . "\n";
- echo "\n[+] Total Credit Card will be Grabbed: " . $totalemails . "\n";
- if($emails) {
- rsort($emails);
- foreach($emails as $email_number) {
- $header = imap_fetch_overview($connection,$email_number,0);
- $message = imap_fetchbody($connection,$email_number,1.1);
- if ($message == "") {
- $message = imap_fetchbody($connection, $email_number, 1);
- }
- $status = ($header[0]->seen ? 'read' : 'unread');
- $subject = $header[0]->subject;
- $from = $header[0]->from;
- $date = $header[0]->date;
- $card = 'Card';
- $msgs = explode("Card Number", $message);
- preg_match_all('!\d+!',$msgs[1], $CardNumber);
- echo $CardNumber[0][0]. "|" .$CardNumber[0][1]. "|" .$CardNumber[0][4]. " [☑ Ready for check]".PHP_EOL;
- }
- }
- imap_close($connection);
- echo ("\nThank you for using Syshack Grabber!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement