Skip to main content

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.

image

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.6.tar.gz (174.0 kB view hashes)

Uploaded Source

Built Distributions

libinjection_python-1.1.6-cp310-cp310-win_amd64.whl (84.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

libinjection_python-1.1.6-cp310-cp310-musllinux_1_1_x86_64.whl (212.1 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

libinjection_python-1.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

libinjection_python-1.1.6-cp310-cp310-macosx_11_0_arm64.whl (87.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

libinjection_python-1.1.6-cp310-cp310-macosx_10_9_x86_64.whl (85.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

libinjection_python-1.1.6-cp39-cp39-win_amd64.whl (85.5 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

libinjection_python-1.1.6-cp39-cp39-musllinux_1_1_x86_64.whl (215.6 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

libinjection_python-1.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (211.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

libinjection_python-1.1.6-cp39-cp39-macosx_11_0_arm64.whl (87.5 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

libinjection_python-1.1.6-cp39-cp39-macosx_10_9_x86_64.whl (86.2 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

libinjection_python-1.1.6-cp38-cp38-win_amd64.whl (85.5 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

libinjection_python-1.1.6-cp38-cp38-musllinux_1_1_x86_64.whl (219.7 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

libinjection_python-1.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

libinjection_python-1.1.6-cp38-cp38-macosx_11_0_arm64.whl (87.6 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

libinjection_python-1.1.6-cp38-cp38-macosx_10_9_x86_64.whl (86.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page