-
Notifications
You must be signed in to change notification settings - Fork 6
/
[perl]_cpanel_user_finder.txt
62 lines (50 loc) · 2.23 KB
/
[perl]_cpanel_user_finder.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/perl
#############################################
# Coded By Mauritania Attacker
###########################################
use LWP::Simple;
print "
****************************************************
* Cpanel User Finder *
****************************************************
* Coded by Mauritania Attacker *
****************************************************";
print "\n\nIP of Server -> ";
chomp ($ip = <>);
print "Output -> ";
chomp ($out = <>);
print "\n[~] Downloading Data ....\n";
sleep(1);
$URL = "http://www.dedicatedornot.com/xml/".$ip;
$content = get($URL);
@name = split(/<sites>/,$content);
$name = @name[1];
@name = split(/<\/sites>/,$name);
$name = @name[0];
$name =~ s/<site>//g;
$name =~ s/<\/site>//g;
$name =~ s/www.//g;
$name =~ s/^.com//g;
$name =~ s/^\s+//g;
open(IP,">ip.txt");
print IP "$name";
close(IP);
sleep(1);
print "[~] Parsing Data ...\n";
chomp ($data_file = "ip.txt");
sleep(1);
open(DAT, $data_file) || die("Could not open file!");
@raw_data=<DAT>;
foreach $res (@raw_data)
{
chomp($res);
$line=$res;
my $new_line = substr( $line, 0,10);
#my $new_line=$line;
$new_line =~ s/\.//g;
$new_line =~ s/^\s+//g;
open(DA, ">>$out") || print "Can't Open File. Try chmod 777 directory<br><br>";
print DA "$new_line\n";
close(DA);
} open(add,">>$out");print add "Greetz to AnonGhost";close(add);
print "[~] Done .\n"