hacked_emails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
dl 0
loc 30
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A random_banner() 0 16 1
1
<?php
2
ini_set("memory_limit", "10240M");
3
require_once __DIR__ . '/../autoloader.php';
4
use phpspider\core\requests;
5
use phpspider\core\selector;
6
7
/* Do NOT delete this comment */
8
/* 不要删除这段注释 */
9
10
hacked_emails::random_banner();
11
exit;
12
class hacked_emails
13
{
14
    // Colors
15
    // green - yellow - blue - red - white - magenta - cyan - reset
16
    public static $color_g = "\033[92m";
17
    public static $color_y = "\033[93m";
18
    public static $color_b = "\033[94m";
19
    public static $color_r = "\033[91m";
20
    public static $color_w = "\033[0m";
21
    public static $color_m = "\x1b[35m";
22
    public static $color_c = "\x1b[36m";
23
    public static $end = "\x1b[39m";
24
    public static $bold = "\033[1m";
25
26
    public static function random_banner()
27
    {
28
        $banners = file_get_contents("banners.txt");
29
        $banners = explode('$$$$$AnyShIt$$$$$$', $banners);
30
        $banner = $banners[count($banners)-1];
31
        $banner_to_print = self::$color_g;
32
        $banner_to_print .= $banner;
33
        $banner_to_print .= self::$end;
34
35
        $name = self::$color_b."Hacked Emails By ".self::$bold."@seatle -".self::$color_m." V0.1".self::$color_g;
36
        $banner_to_print = str_replace("{Name}", $name, $banner_to_print);
37
        $description = self::$color_c."Know the dangers of email credentials reuse attacks.".self::$color_g;
38
        $banner_to_print = str_replace("{Description}", $description, $banner_to_print);
39
	    $loaded = self::$color_b."Loaded ".self::$color_y."14".self::$color_b." website.".self::$color_g;
40
        $banner_to_print = str_replace("{Loaded}", $loaded, $banner_to_print);
41
        echo $banner_to_print;
42
    }
43
}
44
45
$html = requests::get('http://www.qiushibaike.com/article/118914171');
46
//echo $html;
47
//exit;
48
$data = selector::select($html, "div.author", "css");
49
echo $data;
50