P22DX

Fake Result

Mar 22nd, 2018
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.69 KB | None | 0 0
  1. <?php
  2. /*
  3.  * Copyright (C) 2019  <Cvar1984>
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License
  7.  * as published by the Free Software Foundation; either version 2
  8.  * of the License, or (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. class Faker {
  20.     protected $name;
  21.     protected $address;
  22.     protected $phone;
  23.     protected $card;
  24.     protected $ccv;
  25.     protected $date;
  26.  
  27.     function __construct() {
  28.         $str = file_get_contents('http://namegenerators.org/fake-name-generator-us/');
  29.         preg_match_all('/<div class="col2">(.*?)<\/div>/s',$str, $matches);
  30.         self::setName(str_replace('</span>', '', str_replace('<span class="name">', '', $matches[1][3])));
  31.         self::setAddress($matches[1][8]);
  32.         self::setPhone($matches[1][9]);
  33.         self::setCard(trim($matches[1][14]));
  34.         self::setCcv($matches[1][16]);
  35.         self::setDate($matches[1][15]);
  36.     }
  37.  
  38.     private function setName($var)
  39.     {
  40.         $this->name=$var;
  41.     }
  42.     private function setAddress($var)
  43.     {
  44.         $this->address=$var;
  45.     }
  46.     private function setPhone($var)
  47.     {
  48.         $this->phone=$var;
  49.     }
  50.     private function setCard($var)
  51.     {
  52.         $this->card=$var;
  53.     }
  54.     private function setCcv($var)
  55.     {
  56.         $this->ccv=$var;
  57.     }
  58.     private function setDate($var)
  59.     {
  60.         $this->date=$var;
  61.     }
  62.     public function getName() {
  63.         return $this->name;
  64.     }
  65.     public function getAddress() {
  66.         return $this->address;
  67.     }
  68.     public function getPhone() {
  69.         return $this->phone;
  70.     }
  71.     public function getCard() {
  72.         return $this->card;
  73.     }
  74.     public function getCcv() {
  75.         return $this->ccv;
  76.     }
  77.     public function getDate() {
  78.         return $this->date;
  79.     }
  80.  
  81. }
  82. $fake=new Faker();
  83. ob_start();
  84. echo "===============INFO===============\n";
  85. echo '[NAME : '.$fake->getName()."]\n";
  86. echo '[ADDRESS : '.$fake->getAddress()."]\n";
  87. echo '[PHONE : '.$fake->getPhone()."\n";
  88. echo "================CC================\n";
  89. echo '[CARD NUMBER : '.$fake->getCard()."]\n";
  90. echo '[CCV : '.$fake->getCcv()."\n";
  91. echo '[EXP-DATE : '.$fake->getDate()."]\n";
  92. print(ob_get_clean());
Add Comment
Please, Sign In to add comment