Libinjection Python Wrapper
Project description
Libinjection-python
Libinjection-python is a wrapper based on Cython for the Libinjection library.
Libinjection Version: v3.10.0(Released on 22 May 2017)
Requirements
- Python 2.7 or 3.4+
- Cython module (install via pip)
Installation
pip install libinjection-python
Usage
-
Check for SQL Injection
>> import libinjection >> libinjection.is_sql_injection("http://testphp.vulnweb.com/main.php?SmallClass=' union select * from news where 1=2 and ''='") {'is_sqli': True, 'fingerprint': 'sUEok', 'token_vector': [{'pos': 0, 'len': 31, 'count': 0, 'type': 115, 'str_open': 0, 'str_close': 39, 'val': b'http://testphp.vulnweb.com/main'}, {'pos': 49, 'len': 5, 'count': 0, 'type': 85, 'str_open': 0, 'str_close': 0, 'val': b'union'}, {'pos': 55, 'len': 6, 'count': 0, 'type': 69, 'str_open': 0, 'str_close': 0, 'val': b'select'}, {'pos': 62, 'len': 1, 'count': 0, 'type': 111, 'str_open': 0, 'str_close': 0, 'val': b'*'}, {'pos': 64, 'len': 4, 'count': 0, 'type': 107, 'str_open': 0, 'str_close': 0, 'val': b'from'}, {'pos': 69, 'len': 4, 'count': 0, 'type': 110, 'str_open': 0, 'str_close': 0, 'val': b'news'}, {'pos': 0, 'len': 0, 'count': 0, 'type': 0, 'str_open': 0, 'str_close': 0, 'val': b''}, {'pos': 0, 'len': 0, 'count': 0, 'type': 0, 'str_open': 0, 'str_close': 0, 'val': b''}]}
-
Check for Cross Site Scripting
>> libinjection.is_xss("http://testphp.vulnweb.com/index.php?name=guest<script>alert('attacked')</script>") {'is_xss': True, 'flag': 0}
License
Copyright (c) 2021 wzhvictor
Licensed under the GNU General Public License v3.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libinjection-python-1.1.5.tar.gz
(148.1 kB
view details)
File details
Details for the file libinjection-python-1.1.5.tar.gz
.
File metadata
- Download URL: libinjection-python-1.1.5.tar.gz
- Upload date:
- Size: 148.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f4ed1ffc810215d64b9aedbb0e815581d529843c9c0325474971eeeaef7531 |
|
MD5 | ab691cf22b406f0cd24ee1c2e2215ddb |
|
BLAKE2b-256 | 0c71e58ec65a9071dafd62dcb4d4a151b05586ddd04a818e372910dc19c328f8 |