You are here: Home » Справка и подсказки » Решение проблемы с ошибкой sqlmap в BlackArch (Arch Linux) «cx_Oracle.DatabaseError: DPI-1047: Oracle Client library cannot be loaded: libclntsh.so: cannot open shared object file: No such file or directory.»

Решение проблемы с ошибкой sqlmap в BlackArch (Arch Linux) «cx_Oracle.DatabaseError: DPI-1047: Oracle Client library cannot be loaded: libclntsh.so: cannot open shared object file: No such file or directory.»

Если при любой попытке использования sqlmap, например:

sqlmap -h

Вы получаете ошибку:

Traceback (most recent call last):
  File "sqlmap.py", line 35, in <module>
    from lib.controller.controller import start
  File "/opt/sqlmap/lib/controller/controller.py", line 12, in <module>
    from lib.controller.action import action
  File "/opt/sqlmap/lib/controller/action.py", line 8, in <module>
    from lib.controller.handler import setHandler
  File "/opt/sqlmap/lib/controller/handler.py", line 32, in <module>
    from plugins.dbms.oracle.connector import Connector as OracleConn
  File "/opt/sqlmap/plugins/dbms/oracle/connector.py", line 9, in <module>
    import cx_Oracle
cx_Oracle.DatabaseError: DPI-1047: Oracle Client library cannot be loaded: libclntsh.so: cannot open shared object file: No such file or directory. See https://oracle.github.io/odpi/doc/installation.html for help

То скачайте и установите пакет https://blackarch.org/tmp/oracle-instantclient-basic-12.2.0.1.0-1-x86_64.pkg.tar.xz следующими командами:

wget https://blackarch.org/tmp/oracle-instantclient-basic-12.2.0.1.0-1-x86_64.pkg.tar.xz
sudo pacman -U oracle-instantclient-basic-12.2.0.1.0-1-x86_64.pkg.tar.xz

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *