在kali linux上安装sqliv时出现问题(用于漏洞检测)

在kali linux上安装sqliv时出现问题(用于漏洞检测)

目前我想安装这个库来查找Web应用程序中的漏洞,并以这种方式能够保护我已经创建的那些漏洞,问题是我已经遵循了几个教程,但没有一个教程给我提供了正确安装的解决方案,因为我使用 git clone 下载了 github 存储库,然后在下载的文件夹中执行了 pip install -rrequirements.txt,但它标记了许多我不明白的错误,它们如下:

 ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a4ntt7oq/lxml_05cf691aefd241ac8c79286fb90037c2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a4ntt7oq/lxml_05cf691aefd241ac8c79286fb90037c2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vrc61fd1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/lxml                                                                         
         cwd: /tmp/pip-install-a4ntt7oq/lxml_05cf691aefd241ac8c79286fb90037c2/                 
    Complete output (568 lines):                                                               
    Building lxml version 4.3.0.                                                               
    Building without Cython.                                                                   
    Using build configuration of libxslt 1.1.34                                                
    running install                                                                            
    running build                                                                              
    running build_py                                                                           
    creating build                                                                             
    creating build/lib.linux-x86_64-3.9                                                        
    creating build/lib.linux-x86_64-3.9/lxml                                                   
    copying src/lxml/sax.py -> build/lib.linux-x86_64-3.9/lxml                                 
    copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.9/lxml                            
    copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.9/lxml                      
    copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.9/lxml                           
    copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.9/lxml                          
    copying src/lxml/builder.py -> build/lib.linux-x86_64-3.9/lxml                             
    copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.9/lxml                       
    copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.9/lxml                        
    copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.9/lxml                      
    creating build/lib.linux-x86_64-3.9/lxml/includes                                          
    copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.9/lxml/includes          
    creating build/lib.linux-x86_64-3.9/lxml/html                                              
    copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.9/lxml/html                      
    copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.9/lxml/html                
    copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.9/lxml/html               
    copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.9/lxml/html                  
    copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.9/lxml/html                 
    copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.9/lxml/html              
    copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.9/lxml/html               
    copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.9/lxml/html                     
    copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.9/lxml/html                
    copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.9/lxml/html                   
    copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.9/lxml/html                      
    copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.9/lxml/html             
    copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.9/lxml/html                  
    creating build/lib.linux-x86_64-3.9/lxml/isoschematron                                     
    copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.9/lxml/isoschematron
    copying src/lxml/etree.h -> build/lib.linux-x86_64-3.9/lxml                                
    copying src/lxml/etree_api.h -> build/lib.linux-x86_64-3.9/lxml                            
    copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.9/lxml                           
    copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.9/lxml                       
    copying src/lxml/includes/__init__.pxd -> build/lib.linux-x86_64-3.9/lxml/includes         
    copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.9/lxml/includes              
    copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.9/lxml/includes      
    copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.9/lxml/includes          
    copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.9/lxml/includes            
    copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.9/lxml/includes       
    copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.9/lxml/includes         
    copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.9/lxml/includes         
    copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.9/lxml/includes        
    copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.9/lxml/includes             
    copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.9/lxml/includes         
    copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.9/lxml/includes           
    copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.9/lxml/includes       
    copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.9/lxml/includes             
    copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.9/lxml/includes        
    copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.9/lxml/includes             
    copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.9/lxml/includes         
    copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.9/lxml/includes       
    creating build/lib.linux-x86_64-3.9/lxml/isoschematron/resources                           
    creating build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/rng                       
    copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/rng                                                            
    creating build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl                       
    copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl                                                                
    copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl                                                                
    creating build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1  
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1             
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1                
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1                                                                                              
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1          
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1              
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.9/lxml/isoschematron/resources/xsl/iso-schematron-xslt1                          
    running build_ext                                                                          
    building 'lxml.etree' extension                                                            
    creating build/temp.linux-x86_64-3.9                                                       
    creating build/temp.linux-x86_64-3.9/src                                                   
    creating build/temp.linux-x86_64-3.9/src/lxml                                              
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.9 -c src/lxml/etree.c -o build/temp.linux-x86_64-3.9/src/lxml/etree.o -w   
    src/lxml/etree.c: In function ‘__Pyx_modinit_type_init_code’:                              
    src/lxml/etree.c:230559:32: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’                                                                               
    230559 |   __pyx_type_4lxml_5etree_Error.tp_print = 0;                                     
           |                                ^                                                  
        
                                                  ^                     
    Compile failed: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1            
    cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit5gpi5g5o.c -o tmp/xmlXPathInit5gpi5g5o.o                                                                             
    cc tmp/xmlXPathInit5gpi5g5o.o -lxml2 -o a.out                                              
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1                     
    ----------------------------------------                                                   
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a4ntt7oq/lxml_05cf691aefd241ac8c79286fb90037c2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a4ntt7oq/lxml_05cf691aefd241ac8c79286fb90037c2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vrc61fd1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/lxml Check the logs for full command output.

应该注意的是,我尝试安装的操作系统是 Kali linu suu 最新的稳定版本,并且是在使用 virtualbox 创建的虚拟机中。

Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    import pip
ImportError: No module named pip

相关内容