首页 > 系统相关 >【Python】Centos7安装dirsearch

【Python】Centos7安装dirsearch

时间:2023-05-17 12:11:45浏览次数:52  
标签:dirsearch 1.1 Python openssl Centos7 ln usr soft datas

一、升级Openssl1.1.1

 1、官网下载源码:https://www.openssl.org/

2、安装

# ./config --prefix=/datas/soft/openssl-1.1.1 no-zlib
# make
# make install

3、新版配置

# ln -s /datas/soft/openssl-1.1.1/include/openssl /usr/include/openssl
# ln -s /datas/soft/openssl-1.1.1/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
# ln -s /datas/soft/openssl-1.1.1/bin/openssl /usr/bin/openssl
# echo "/datas/soft/openssl-1.1.1/lib" >> /etc/ld.so.conf
# ldconfig

4、查看版本(查看版本遇到报错

# openssl version

openssl: error while loading shared libraries: libssl.so.46: cannot open shared object file: No such file or directory

# ln -s /datas/soft/openssl-1.1.1/lib/libssl.so.1.1 /usr/lib64/libssl.so.46    #通过创建软连接方式解决

# openssl version
openssl: error while loading shared libraries: libcrypto.so.44: cannot open shared object file: No such file or directory

# ln -s /datas/soft/openssl-1.1.1/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.44    #通过创建软连接方式解决

# openssl version
OpenSSL 1.1.1-pre8 (beta) 20 Jun 2018

【说明】有些参考文档是创建下面的软链,我这边报错的名称不一样,但是创建软链的源文件是一致的,所以可以根据具体报错提示哪个共享库文件不存在,创建对应的软链:

# ln -s /datas/soft/openssl-1.1.1/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1 # ln -s /datas/soft/openssl-1.1.1/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1   

二、安装 LibreSSL

1、安装

# wget https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.2.tar.gz
# tar xzvf libressl-2.8.2.tar.gz
# cd libressl-2.8.2
# ./config
# make
# make install

2、验证Openssl版本(再次遇到报错

# openssl version
openssl: symbol lookup error: openssl: undefined symbol: EVP_mdc2, version OPENSSL_1_1_0

# sudo ldconfig
# openssl version
LibreSSL 2.8.2 

 

三、安装Python3.7(dirsearch最低版本需要3.7)

1、官网下载python3.7软件包:https://www.python.org/ftp/python

2、安装

# tar -zxvf python-3.7.2.tgz
# mkdir -p /datas/soft/python3.7
# ./configure --prefix=/datas/soft/python3.7 --with-openssl=/datas/soft/openssl-1.1.1
# make
# make install

3、创建软链

# ln -s /datas/soft/python3.7/bin/python3 /usr/local/bin/python37
# ln -s /datas/soft/python3.7/bin/pip3 /usr/local/bin/pip37

4、运行,查看openssl版本

[root@localhost ~]# python37
Python 3.7.2 (default, May 16 2023, 19:40:14)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.1.1d  10 Sep 2019'

 

 四、安装dirsearch

1、git下载:https://gitcode.net/mirrors/maurosoria/dirsearch?utm_source=csdn_github_accelerator 

2、使用

# pip37 install --upgrade pip  # 升级pip

# python37 dirsearch.py -u aipo-learning.0752sc.cn -e php

Failed to install dirsearch dependencies, try doing it manually. # 安装依赖报错

# pip37 install -r requirements.txt  # 手动安装

 

 参考文档:

 CentOS7下安装python3.7

CentOS7升级OpenSSL

python3.7安装后ssl问题

Could not build the ssl module! 原因与解决方法

centos7下dirsearch目录扫描工具安装使用

 

标签:dirsearch,1.1,Python,openssl,Centos7,ln,usr,soft,datas
From: https://www.cnblogs.com/lanse1993/p/17408037.html

相关文章

  • < Python全景系列-3 > Python控制流程盘点及高级用法、神秘技巧大揭秘!
    欢迎来到我们的系列博客《Python全景系列》!在这个系列中,我们将带领你从Python的基础知识开始,一步步深入到高级话题,帮助你掌握这门强大而灵活的编程语法。无论你是编程新手,还是有一定基础的开发者,这个系列都将提供你需要的知识和技能。 这是系列第三篇,在这篇文章中我们将全面深......
  • python 使用企业微信发邮件加加图形化界面
    importsysfromPyQt5.QtWidgetsimportQApplication,QWidget,QLabel,QLineEdit,QTextEdit,QPushButtonimportrequests,base64,hashlibimportsmtplibimportosimportglobfromemail.mime.textimportMIMETextfromemail.mime.multipartimportMIMEMultipa......
  • generate a 3D chart in Python using the CSV data
    Here's an example of how you could use Matplotlib to create a 3D scatter plot from your CSV data:   importpandasaspdimportmatplotlib.pyplotaspltfrommpl_toolkits.mplot3dimportAxes3D#LoadtheCSVdataintoaPand......
  • 用Python开发输入法后台
    首先,安装PIME,github地址:https://github.com/EasyIME/PIME下载安装PIME-1.3.0-stable-setup.exe,就可以得到一个输入法,后端是python,在安装目录下‘C:\ProgramFiles(x86)\PIME\’,python目录就是运行脚本。入口点是'server.py',其中安装目录下的‘PIMELauncher.exe’是负责前后台......
  • python 项目报错 Fatal Python error: _enter_buffered_busy: could not acquire lock
    FatalPythonerror:_enter_buffered_busy:couldnotacquirelockfor<_io.BufferedWritername=''>atinterpretershutdown,possiblyduetodaemonthreadsPythonruntimestate:finalizing(tstate=0x00005654c4008a40)Currentthread0x00007fc......
  • Python学习
    3-13字符串类型字符串类型:str   1.定义格式:       变量='内容'           打印一行       变量="内容"           打印一行       变量='''内容'''或者三引号           可以通过回车的方式换行,且打印出......
  • python环境搭建,使用conda工具
    开发环境搭建安装miniConda:conda和miniConda和Anaconda的区别安装pycharm:pycharm创建项目并使用base环境作为开发环境pycharm的interpreter是什么安装jupyter:jupyter的快捷键conda的虚拟环境命令:condacreatecondaact......
  • 基于”python+requests模块“接口自动化的基本方法使用
    1,接口自动化测试1.1概念接口测试:是对系统或者组件之间的接口进行测试,主要是校验数据的交换,传递和控制管理过程,以及相互逻辑依赖关系。接口自动化测试:让程序代替人为对接口项目进行自动验证测试的过程1.2实现方式1,工具(jmeter,postman)2,代码(python-requests)1.3测试工具缺点......
  • 关于centos7操作系统RX-DRP值每隔30s加1问题
    现象如下图所示:RX-DRP每隔30s,自动+1原因分析CentOS7系列操作系统在处理LLDP等不能直接解析的二层数据帧的过程中,会将ifconfigeth0或者netstat-i等输出信息中的rx_drop值增加。其主要特点为每隔30s(上层交换机LLDP数据帧发送频率)加1、但是采用tcpdump等软件抓包过程的过程中rx......
  • python中提供正则支持的re模块
    1re模块的作用个人觉得就是按照给定的条件,在文本中去寻找匹配对应的字符re模块十分强大,提供的正则规则也非常多,网上有很多辅助和测试工具,现在有ai就更加方便了,不过一些基础的使用最好还是了解下2正则表达式个人理解,正则表达式就是寻找、匹配的规则或者条件,它是一个字符串的......