首页 > 系统相关 >Kali Linux 下搭建ctfd靶场(报错解决)

Kali Linux 下搭建ctfd靶场(报错解决)

时间:2023-06-18 22:45:04浏览次数:61  
标签:py read Kali CTFd ctfd 报错 usr pip line

  1. 准备环境:

    • 获取一台运行Linux的服务器或虚拟机,确保具备足够的计算资源和网络连接。
    • 安装所需的软件和依赖项,如Python、pip等。
  2. 安装CTFd:

    • 打开终端并使用以下命令克隆CTFd的GitHub存储库

    • git clone https://github.com/CTFd/CTFd.git
    • 进入克隆的CTFd目录:

      cd CTFd
    • 安装CTFd的依赖项:

      pip install -r requirements.txt

如果报错

 

ERROR: Exception:
Traceback (most recent call last):                                                                    
  File "/usr/lib/python3/dist-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher  
    yield                                                                                             
  File "/usr/lib/python3/dist-packages/pip/_vendor/urllib3/response.py", line 561, in read            
    data = self._fp_read(amt) if not fp_closed else b""                                               
           ^^^^^^^^^^^^^^^^^^                                                                         
  File "/usr/lib/python3/dist-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read        
    return self._fp.read(amt) if amt is not None else self._fp.read()                                 
           ^^^^^^^^^^^^^^^^^^                                                                         
  File "/usr/lib/python3/dist-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read     
    data = self.__fp.read(amt)                                                                        
           ^^^^^^^^^^^^^^^^^^^                                                                        
  File "/usr/lib/python3.11/http/client.py", line 465, in read                                        
    s = self.fp.read(amt)                                                                             
        ^^^^^^^^^^^^^^^^^                                                                             
  File "/usr/lib/python3.11/socket.py", line 706, in readinto                                         
    return self._sock.recv_into(b)                                                                    
           ^^^^^^^^^^^^^^^^^^^^^^^                                                                    
  File "/usr/lib/python3.11/ssl.py", line 1278, in recv_into                                          
    return self.read(nbytes, buffer)                                                                  
           ^^^^^^^^^^^^^^^^^^^^^^^^^                                

  

这种情况可能是由于网络连接不稳定或无法访问依赖项的存储库引起的。

解决:

更换源:

将pip的默认源更换为国内源,以加快下载速度。可以使用以下命令将pip源更换为清华大学的源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  运行服务

 

根据日志信息,CTFd 已成功启动并正在运行。您可以通过访问 http://127.0.0.1:4000/ 在本地主机上访问 CTFd 平台。

 最后可以进行个性化调试

TRANSLATE with x English
Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian  
  TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back

标签:py,read,Kali,CTFd,ctfd,报错,usr,pip,line
From: https://www.cnblogs.com/lusuo/p/17489921.html

相关文章

  • git报错 failed: The TLS connection was non-properly terminated.
    问题现象:kali@kali:~$gitclonehttps://www.github.com/FluxionNetwork/fluxion.gitCloninginto'fluxion'...fatal:unabletoaccess'https://www.github.com/FluxionNetwork/fluxion.git/':gnutls_handshake()failed:TheTLSconnectionwasnon......
  • 安装openvas时候的报错 bash: openvas-setup: command not found
     由于kali官方默认没有安装openvas,但是kali源中有,需要我们使用apt命令手动安装。 错误一kali@kali:~$openvas-setupbash:openvas-setup:commandnotfound错误原因openvas官方在新版本中改名gvm解决方法 因此openvas命令改为gvm。 错误二kali@kali:~$sudogvm-setupER......
  • kali windows 壁纸收藏 & 虚拟机下载
               链接:https://pan.baidu.com/s/1n9qf6h0wDGhcOt5dj-DdTg提取码:ny2s该虚拟机是用官方iso镜像文件创建的Vm虚拟机文件,解压导入Vmware即可,win登录密码abdal。本人做了一点优化和汉化。......
  • Azure Blob Storage Java SDK使用SAS Token授权读取文件403报错
    问题描述代码如下,内容十分简单,只是listpath的操作。点击查看代码DataLakeServiceClientdataLakeServiceClient=newDataLakeServiceClientBuilder().endpoint(blob).sasToken(sasToken).buildClient();DataLakeFileSystemClienttestFs=dataLakeServic......
  • OPCDA注册后 winform运行却报错
    此错误原因为未注册dll但是我已经注册了之所以会出现这个问题是因为平台不兼容将目标平台改成x86即可 ......
  • 执行存储过程报错:User does not have access to metadata required to determine stor
    在执行存储过程中,报错详细信息如下:java.sql.SQLException:Userdoesnothaveaccesstometadatarequiredtodeterminestoredprocedureparametertypes.Ifrightscannotbegranted,configureconnectionwith"noAccessToProcedureBodies=true"tohavedrivergener......
  • mysql:报错Incorrect string value:’\xF0\x9F\x94\xA6\xF0\x9F…’
     一,报错信息:1,报错:Incorrectstringvalue:'\xF0\x9F\x94\xA6\xF0\x9F...'forcolumn'content'atrow1报错的原因:字符串中包含了emoji表情:如:......
  • git push 到 github 报错:10054
    解决方式:终端也要设置代理exporthttps_proxy=http://127.0.0.1:33210http_proxy=http://127.0.0.1:33210all_proxy=socks5://127.0.0.1:33211......
  • SpringBoot项目报错解决:“Error starting ApplicationContext. To display the condit
    SpringBoot项目报错:ErrorstartingApplicationContext.Todisplaytheconditionsreportre-runyourapplicationwith'debug'enabled.以下方案80%可以帮助您解决这些个‘可恶的’问题目录一、编译出问题二、代码格式导致的编译出问题三、请求接口重复四、......
  • Kali的安装
    Kali的安装##KaliLinux是基于Debian的Linux发行版。设计用于数字取证操作系统,每一季度更新一次,由OffensiveSecurityLtd维护和资助。KaliLinux是带有附加工具的更新版本的BackTrack。KaliLinux是一个源自Debian的Linux发行版,专为取证和渗透测试而设计选择典型稍后......