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 hashes)
Close
Hashes for libinjection-python-1.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f4ed1ffc810215d64b9aedbb0e815581d529843c9c0325474971eeeaef7531 |
|
MD5 | ab691cf22b406f0cd24ee1c2e2215ddb |
|
BLAKE2b-256 | 0c71e58ec65a9071dafd62dcb4d4a151b05586ddd04a818e372910dc19c328f8 |