kali安装vulhub遇到的问题及解决方法(docker及docker镜像源更换)
kali安装vulhub:
提示:项目地址
https://github.com/vulhub/vulhub
项目安装:
git clone https://github.com/vulhub/vulhub.git
安装docker
提示:普通用户请使用sudo:
首先安装 https 协议、CA 证书
apt-get install -y apt-transport-https ca-certificates
安装 docker
apt-get update #先更新
apt install docker.io
查看版本,是否安装成功。 docker -v 启动 docker systemctl start docker 显示 docker 信息 docker ps -a
`┌──(root㉿192)-[~/Desktop]
└─# docker -v
Docker version 20.10.25+dfsg1, build b82b9f3┌──(root㉿192)-[~/Desktop]
└─# systemctl start docker
`—
安装docker-compose:
提示:kali新版系统自带的pip是从git下载的 按上述pip下载docker-compose会报错
报错提示:
┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeDownloading https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.8/114.8 kB 594.8 kB/s eta 0:00:00
Collecting PyYAML<6,>=3.10 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 796.0 kB/s eta 0:00:00Installing build dependencies ... doneGetting requirements to build wheel ... errorerror: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.│ exit code: 1╰─> [54 lines of output]running egg_infowriting lib3/PyYAML.egg-info/PKG-INFOwriting dependency_links to lib3/PyYAML.egg-info/dependency_links.txtwriting top-level names to lib3/PyYAML.egg-info/top_level.txtTraceback (most recent call last):File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>main()File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in mainjson_out['return_val'] = hook(**hook_input['kwargs'])^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheelreturn hook(config_settings)^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheelreturn self._get_build_requires(config_settings, requirements=[])^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 297, in _get_build_requiresself.run_setup()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 313, in run_setupexec(code, locals())File "<string>", line 271, in <module>File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 103, in setupreturn distutils.core.setup(**attrs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 184, in setupreturn run_commands(dist)^^^^^^^^^^^^^^^^^^File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 200, in run_commandsdist.run_commands()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commandsself.run_command(cmd)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 974, in run_commandsuper().run_command(command)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 989, in run_commandcmd_obj.run()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 321, in runself.find_sources()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 329, in find_sourcesmm.run()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 550, in runself.add_defaults()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/egg_info.py", line 588, in add_defaultssdist.add_defaults(self)File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/command/sdist.py", line 102, in add_defaultssuper().add_defaults()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaultsself._add_defaults_ext()File "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_extself.filelist.extend(build_ext.get_source_files())^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "<string>", line 201, in get_source_filesFile "/tmp/pip-build-env-zbabl_mq/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__raise AttributeError(attr)AttributeError: cython_sources[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.
提示:原因似乎是因为PyYaml版本过高,而docker-compose 仍支持的较低版本的 PyYaml (5.3.1),就不会出现此问题。
解决方案:降级PyYAML到特定版本(如5.3.1)以及可能情况下安装低版本的docker。
使用命令安装低版本的pyyaml。
┌──(root㉿192)-[~/Desktop]
└─# pip install pyyaml==5.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyyaml==5.3.1Downloading https://pypi.tuna.tsinghua.edu.cn/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 kB 849.6 kB/s eta 0:00:00Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyyamlBuilding wheel for pyyaml (setup.py) ... doneCreated wheel for pyyaml: filename=PyYAML-5.3.1-cp311-cp311-linux_x86_64.whl size=44636 sha256=e86de456f1486b49f5cc84b15eb0f666120263c4fc1aa6cfdeaa3888c0a1a01eStored in directory: /root/.cache/pip/wheels/2f/3b/f6/34daeaf2860445f6e0004f86e23aff654a0bbec59683a966e6
Successfully built pyyaml
Installing collected packages: pyyamlAttempting uninstall: pyyamlFound existing installation: PyYAML 6.0.1
ERROR: Cannot uninstall PyYAML 6.0.1, RECORD file not found. Hint: The package was installed by debian.
这里报错提示无法卸载高版本的pyyam,原因是高版本是从apt下载的,pip没有权限卸载。
解决方案
检查包的来源
首先,我们需要确定PyYAML包的来源。如果它是通过系统的包管理器安装的,那么我们应该使用相应的包管理器来卸载它。例如,在Ubuntu上,你可以使用apt命令来卸载:
sudo apt-get remove python3-yaml重装旧版本pyymal
┌──(root㉿192)-[~/Desktop]
└─# pip install pyyaml==5.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyyaml==5.3.1Using cached PyYAML-5.3.1-cp311-cp311-linux_x86_64.whl
Installing collected packages: pyyaml
Successfully installed pyyaml-5.3.1 #无报错
引用https://blog.csdn.net/qq_38614074/article/details/139621698
继续安装docker-compose
┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
Requirement already satisfied: PyYAML<6,>=3.10 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (5.3.1)
Requirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.9.0)
Collecting docker>=5 (from docker[ssh]>=5->docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/26/57c6fb270950d476074c087527a558ccb6f4436657314bfb6cdf484114c4/docker-7.1.0-py3-none-any.whl (147 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.8/147.8 kB 1.8 MB/s eta 0:00:00
Collecting dockerpty<1,>=0.4.1 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz (13 kB)Preparing metadata (setup.py) ... done
Requirement already satisfied: docopt<1,>=0.6.1 in /usr/lib/python3/dist-packages (from docker-compose) (0.6.2)
Collecting jsonschema<4,>=2.5.1 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 kB 4.4 MB/s eta 0:00:00
Collecting python-dotenv<1,>=0.13.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/64/62/f19d1e9023aacb47241de3ab5a5d5fedf32c78a71a9e365bb2153378c141/python_dotenv-0.21.1-py3-none-any.whl (19 kB)
Requirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.31.0)
Collecting texttable<2,>=0.9.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/24/99/4772b8e00a136f3e01236de33b0efda31ee7077203ba5967fcc76da94d65/texttable-1.7.0-py2.py3-none-any.whl (10 kB)
Collecting websocket-client<1,>=0.32.0 (from docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.2/67.2 kB 3.8 MB/s eta 0:00:00
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker>=5->docker[ssh]>=5->docker-compose) (1.26.18)
Requirement already satisfied: paramiko>=2.4.3 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (3.4.0)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (23.2.0)
Collecting pyrsistent>=0.14.0 (from jsonschema<4,>=2.5.1->docker-compose)Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a1/94/9808e8c9271424120289b9028a657da336ad7e43da0647f62e4f6011d19b/pyrsistent-0.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (120 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.0/120.0 kB 2.8 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (68.1.2)
Building wheels for collected packages: dockerptyBuilding wheel for dockerpty (setup.py) ... doneCreated wheel for dockerpty: filename=dockerpty-0.4.1-py3-none-any.whl size=16596 sha256=6b1ed8fa013ad102b4ab2b3807fc5ebd10aa578814db10280b6a189d7aa1b42dStored in directory: /root/.cache/pip/wheels/4b/23/8a/796cda3557ec7067092ef780992049870652e0da656114e937
Successfully built dockerpty
Installing collected packages: texttable, websocket-client, python-dotenv, pyrsistent, dockerpty, docker, jsonschema, docker-composeAttempting uninstall: websocket-clientFound existing installation: websocket-client 1.7.0Uninstalling websocket-client-1.7.0:Successfully uninstalled websocket-client-1.7.0Attempting uninstall: python-dotenvFound existing installation: python-dotenv 1.0.1Uninstalling python-dotenv-1.0.1:Successfully uninstalled python-dotenv-1.0.1Attempting uninstall: jsonschemaFound existing installation: jsonschema 4.19.2
ERROR: Cannot uninstall jsonschema 4.19.2, RECORD file not found. Hint: The package was installed by debian.
提示未成功卸载jsonschema,方法一样 重新卸载
sudo apt-get remove python3-jsonschema #运行
重新安装docker-compose
┌──(root㉿192)-[~/Desktop]
└─# pip install docker-compose -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker-composeUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114 kB)
Requirement already satisfied: PyYAML<6,>=3.10 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (5.3.1)
Requirement already satisfied: distro<2,>=1.5.0 in /usr/lib/python3/dist-packages (from docker-compose) (1.9.0)
Requirement already satisfied: docker>=5 in /usr/local/lib/python3.11/dist-packages (from docker[ssh]>=5->docker-compose) (7.1.0)
Requirement already satisfied: dockerpty<1,>=0.4.1 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.4.1)
Requirement already satisfied: docopt<1,>=0.6.1 in /usr/lib/python3/dist-packages (from docker-compose) (0.6.2)
Collecting jsonschema<4,>=2.5.1 (from docker-compose)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Requirement already satisfied: python-dotenv<1,>=0.13.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.21.1)
Requirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.31.0)
Requirement already satisfied: texttable<2,>=0.9.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (1.7.0)
Requirement already satisfied: websocket-client<1,>=0.32.0 in /usr/local/lib/python3.11/dist-packages (from docker-compose) (0.59.0)
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker>=5->docker[ssh]>=5->docker-compose) (1.26.18)
Requirement already satisfied: paramiko>=2.4.3 in /usr/lib/python3/dist-packages (from docker[ssh]>=5->docker-compose) (3.4.0)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (23.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in /usr/local/lib/python3.11/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (0.20.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (68.1.2)
Installing collected packages: jsonschema, docker-compose
Successfully installed docker-compose-1.29.2 jsonschema-3.2.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#这个警告是提示在root用户操作下的风险 ,不用管
docker启动靶场环境
安装完毕后cd进入到/home/vulhub文件夹下,这里以log4j/CVE-2021-44228为例:
进入对应目录下,使用以下命令启动该漏洞靶场环境
如果你后面docker-compose build又报错:TypeError: kwargs_from_env() got an unexpected keyword argument ‘ssl_version’
解决办法:安装低版本的docker
┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# docker-compose build
Traceback (most recent call last):File "/usr/local/bin/docker-compose", line 8, in <module>sys.exit(main())^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/main.py", line 81, in maincommand_func()File "/usr/local/lib/python3.11/dist-packages/compose/cli/main.py", line 200, in perform_commandproject = project_from_options('.', options)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/command.py", line 60, in project_from_optionsreturn get_project(^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/command.py", line 152, in get_projectclient = get_client(^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/docker_client.py", line 41, in get_clientclient = docker_client(^^^^^^^^^^^^^^File "/usr/local/lib/python3.11/dist-packages/compose/cli/docker_client.py", line 124, in docker_clientkwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# pip install docker==6.1.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting docker==6.1.3Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/be/3032490fa33b36ddc8c4b1da3252c6f974e7133f1a50de00c6b85cca203a/docker-6.1.3-py3-none-any.whl (148 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.1/148.1 kB 626.7 kB/s eta 0:00:00
Requirement already satisfied: packaging>=14.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (24.0)
Requirement already satisfied: requests>=2.26.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (2.31.0)
Requirement already satisfied: urllib3>=1.26.0 in /usr/lib/python3/dist-packages (from docker==6.1.3) (1.26.18)
Requirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python3.11/dist-packages (from docker==6.1.3) (0.59.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from websocket-client>=0.32.0->docker==6.1.3) (1.16.0)
Installing collected packages: dockerAttempting uninstall: dockerFound existing installation: docker 7.1.0Uninstalling docker-7.1.0:Successfully uninstalled docker-7.1.0
Successfully installed docker-6.1.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv ┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# docker-compose up -d
Creating network "cve-2021-44228_default" with the default driver
Pulling solr (vulhub/solr:8.11.0)...
8.11.0: Pulling from vulhub/solr
43c265008fae: Pulling fs layer
af36d2c7a148: Pulling fs layer
2b7b4d10e1c1: Pulling fs layer
f264389d8f2f: Waiting
1a2c46e93f4a: Waiting
f9506bb322c0: Waiting
96f5dad14c2c: Waiting
00cc69e6b3f8: Waiting
7deb39580f8e: Waiting
4f4fb700ef54: Waiting
这里我们等了许久发现根本完成不了启动
解决方法
更换docker源
┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# cd /etc/docker ┌──(root㉿192)-[/etc/docker]
└─# touch daemon.json┌──(root㉿192)-[/etc/docker]
└─# vim daemon.json {
"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]
}
:wq
重新加载源 重新重启docker服务
- [ systemctl daemon-reload ]
- [systemctl restart docker ]
┌──(root㉿192)-[/etc/docker]
└─# systemctl daemon-reload ┌──(root㉿192)-[/etc/docker]
└─# systemctl restart docker
我们看到速度很快 基本就5秒
##引用 https://blog.csdn.net/m0_73615178/article/details/136282974
使用docker-compose查看进程端口 再访问
┌──(root㉿192)-[~/Desktop/vulhub-master/log4j/CVE-2021-44228]
└─# ifconfig
br-76fd4b9f6713: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255inet6 fe80::42:88ff:fe4a:617c prefixlen 64 scopeid 0x20<link>ether 02:42:88:4a:61:7c txqueuelen 0 (Ethernet)RX packets 198 bytes 485887 (474.4 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 273 bytes 66974 (65.4 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255ether 02:42:8a:f5:bc:cf txqueuelen 0 (Ethernet)RX packets 0 bytes 0 (0.0 B)RX errors 0 dropped 0 overruns 0 frame 0TX packets 0 bytes 0 (0.0 B)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500inet 192.168.70.131 netmask 255.255.255.0 broadcast 192.168.70.255inet6 fe80::20c:29ff:fea9:70ef prefixlen 64 scopeid 0x20<link>ether 00:0c:29:a9:70:ef txqueuelen 1000 (Ethernet)RX packets 607076 bytes 621908988 (593.0 MiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 304754 bytes 23586908 (22.4 MiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536inet 127.0.0.1 netmask 255.0.0.0inet6 ::1 prefixlen 128 scopeid 0x10<host>loop txqueuelen 1000 (Local Loopback)RX packets 450 bytes 547951 (535.1 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 450 bytes 547951 (535.1 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0veth1a7f791: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500inet6 fe80::5063:33ff:fe92:2152 prefixlen 64 scopeid 0x20<link>ether 52:63:33:92:21:52 txqueuelen 0 (Ethernet)RX packets 198 bytes 488659 (477.2 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 284 bytes 67840 (66.2 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
本机访问端口192.168.70.131:8973
修改了ip地址
https://blog.csdn.net/ldl345/article/details/137604277
相关文章:
kali安装vulhub遇到的问题及解决方法(docker及docker镜像源更换)
kali安装vulhub: 提示:项目地址 https://github.com/vulhub/vulhub 项目安装: git clone https://github.com/vulhub/vulhub.git 安装docker 提示:普通用户请使用sudo: 首先安装 https 协议、CA 证书 apt-get in…...
开源数字人项目Hallo
硬件条件: gpu最低12G 软件: cuda需支持 Python选择3.10吧,我的版本3.11 源码: GitHub - fudan-generative-vision/hallo: Hallo: Hierarchical Audio-Driven Visual Synthesis for Portrait Image Animation models文件&…...
Linux 命令集
修改主机名/关机/重启 1)hostnamectl 命令 $ hostnamectl # 查看操作系统信息(内核、操作系统发行版本、主机名等) $ hostnamectl set-hostname redhatu8 # 修改主机名2)shutdown 关机 $ shutdown -h now # 马上关机3&#…...
QML 鼠标和键盘事件
学习目标:Qml 鼠标和键盘事件 学习内容 1、QML 鼠标事件处理QML 直接提供 MouseArea 来捕获鼠标事件,该操作必须配合Rectangle 获取指定区域内的鼠标事件, 2、QML 键盘事件处理,并且获取对OML直接通过键盘事件 Keys 监控键盘任意按键应的消…...
WPF引入多个控件库使用
目的 设计开发时有的控件库的一部分符合我们想要的UI样式,另一部分来自另一个控件库,想把两种库的样式做一个整合在同一个控件资源上。单纯通过引用的方式会导致原有样式被覆盖。这里通过设置全局样式的方式来实现。 1.安装控件库nuget包:H…...
【Linux】1w详解如何实现一个简单的shell
目录 实现思路 1. 交互 获取命令行 2. 子串分割 解析命令行 3. 指令的判断 内建命令 4. 普通命令的执行 补充:vim 文本替换 整体代码 重点思考 1.getenv和putenv是什么意思 2.代码extern char **environ; 3.内建命令是什么 4.lastcode WEXITSTATUS(sta…...
单目测距 单目相机测距 图片像素坐标转实际坐标的一种转换方案
需要相机位置固定 原图 红色的点是我们标注的像素点,这些红色的点我们知道它的像素坐标,以及以右下角相机位置为原点的x y 实际坐标数值 通过转换,可以得到整个图片内部其余像素点的实际坐标, 这些红色的点是通过转换关系生成的&…...
ensp防火墙综合实验作业+实验报告
实验目的要求及拓扑图: 我的拓扑: 更改防火墙和交换机: [USG6000V1-GigabitEthernet0/0/0]ip address 192.168.110.5 24 [USG6000V1-GigabitEthernet0/0/0]service-manage all permit [Huawei]vlan batch 10 20 [Huawei]int g0/0/2 [Huawei-…...
【大模型LLM面试合集】大语言模型基础_Word2Vec
Word2Vec 文章来源:Word2Vec详解 - 知乎 (zhihu.com) 1.Word2Vec概述 Word2Vec是google在2013年推出的一个NLP工具,它的特点是能够将单词转化为向量来表示,这样词与词之间就可以定量的去度量他们之间的关系,挖掘词之间的联系。 …...
图论基础概念(详细讲解)
今天,我们讲解一下图论的概念,首先我们知道图是一个什么东西。 图你可以理解成一个网络系统,两个节点之间可能会有边,边链接两个节点,可能是有向(就比如说a只能往b,或者b只能往c),可能是无向&a…...
未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序报错的解决办法
今天在免费云服务器,三丰云上运行c#或python程序,都提示:未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序,PHP程序就直接乱码,odbc_connect(): SQL error: [Microsoft][ODBC ���&…...
《从零开始学习Linux》——开篇
前言 近日笔者新开专栏,《从零开始学习Linux》,Linux水深而且大,学了一圈之后,有懂得有不懂的,一直没有机会整体的全部重新捋一遍,本专栏的目的是,带着大家包括我自己重新学习Linux一遍这些知识…...
3D工艺大师快速生成装配动画,驱动汽车工业装配流程革新
在现代制造业的一般生产流程中,车间装配环节是产品由蓝图迈向市场前至关重要的一道工序。随着产品结构的日益复杂化和个性化需求的不断增长,车间装配工作面临着前所未有的挑战。高精密度的装配要求、错综复杂的组件关系以及频繁变更的生产计划࿰…...
gateway
gateway核心概念 1. 路由(route) 路由是网关中最基础的部分,路由信息包括一个ID、一个目的URI、一组断言工厂、一组Filter组成。如果断言为真,则说明请求的URL 和 配置的路由匹配。 2. 断言(predicates) 断言函数允许开发者去定义匹配Htt…...
第一个ffmpeg程序
在进行使用ffmpeg进行编写程序时,首先要记得进行注册设备(avdevice_register_all ),程序运行时,只需要注册一次就可以 avdevice_register_all 是 FFmpeg 多媒体处理库中的一个函数,其作用是注册所有可用的音…...
论文翻译:Large Language Models for Education: A Survey and Outlook
https://arxiv.org/abs/2403.18105 目录 教育领域的大型语言模型:一项调查和展望摘要1. 引言2. 教育应用中的LLM2.1 概述2.2 学习辅助2.2.1 问题解决(QS) 2.2.2 错误纠正(EC)2.2.3 困惑助手(CH)…...
python为什么慢?(自用)
《Cython系列》1. Cython 是什么?为什么要有 Cython?为什么我们要用 Cython? - 古明地盆 - 博客园 (cnblogs.com) 古明地盆的主页 - 博客园 (cnblogs.com) 我原本认为,python慢的原因是“逐行解释程序并执行”,那么我…...
压缩感知3——重构算法正交匹配追踪算法
算法流程 问题的实质是:AX Y 求解(A是M维,Y是N维且N>>M并且稀疏度K<M)明显X有无穷多解,重构过程是M次采样得到的采样值升维的过程。OMP算法的具体步骤:(1)用X表示信号,初始化残差e0 …...
“好物”推荐+Xshell连接实例+使用Conda创建独立的Python环境
目录 主题:好易智算平台推荐RTX 4090DGPU实例租用演示安装配置torch1.9.1cuda11.1.1环境引言:算力的新时代平台介绍:技术与信任的结晶使用案例:实际使用展示创建实例开始使用连接实例(下文演示使用Xshell连接ÿ…...
浪潮天启防火墙TQ2000远程配置方法SSL-V偏、L2xx 配置方法
前言 本次设置只针对配置V偏,其他防火墙配置不涉及。建议把防火墙内外网都调通后再进行V偏配置。 其他配置可参考:浪潮天启防火墙配置手册 配置SSLVxx 在外网端口开启SSLVxx信息 开启SSLVxx功能 1、勾选 “启用SSL-Vxx” 2、设置登录端口号࿰…...
java八股文面试题
Java八股文面试题通常涵盖了Java语言的基础知识、高级特性、框架应用、数据库操作等多个方面。以下是一些常见的Java面试题及其详细回答,按照不同的主题进行分类: 一、Java基础 面向对象的特征有哪些? 抽象:忽略与当前目标无关的…...
【服务器】在Linux查看运行的Python程序,并找到特定的Python程序
在Linux查看运行的Python程序并找到特定的Python程序 写在最前面1. 使用ps命令查看所有Python进程查看详细信息 2. 使用pgrep命令查找Python进程ID 3. 使用top或htop命令使用top命令使用htop命令 4. 使用lsof命令查找Python进程打开的文件 5. 使用nvidia-smi命令查看GPU使用情况…...
安全防御---防火墙实验1
安全防御—防火墙实验1 一、实验拓扑与要求 要求: 1、DMZ区内的服务器,办公区仅能在办公时间内(9:00-18:00)可以访问,生产区的设备全天可以访问 2、生产区不允许访问互联网,办公区和游客区允许访问互联网 …...
SpringBoot配置Swagger开启页面访问限制
在Spring Boot项目中配置Swagger时,开启页面访问限制通常意味着你希望控制哪些用户或角色可以访问Swagger UI文档页面。由于Swagger UI是一个静态资源,它本身并不直接支持基于角色的访问控制(RBAC)。但是,你可以通过Sp…...
前端代码基本逻辑-vue3
前端vue建立过程 安装nodejs 官网下载安装,并且记住安装路径,记得配置系统变量Path 安装VUE/CLI npm install -g vue/cli --全局安装vue 使用VUE/CLI生成代码框架 vue create your-project-name --我的your-project-name为web 运行项目 cd your-…...
怎么用PPT录制微课?详细步骤解析!
随着信息技术的不断发展,微课作为一种新型的教学形式,因其短小精悍、针对性强等特点,在教育领域得到了广泛的应用。而PPT作为一款常用的演示工具,不仅可以用来制作课件,还可以利用其内置的录屏功能或结合专业的录屏软件…...
Git使用方法
Git是一种分布式版本控制系统,它可以记录和管理软件开发过程中的变更。 Git的基本概念包括以下几个部分: 仓库(Repository):Git用仓库来存储项目的代码和历史记录。一个仓库可以包含多个分支。 分支(Bran…...
HTTP的请求报文和响应报文是怎样的,有哪些常见字段?
http报文分为请求报文和响应报文 请求报文包含:请求行、请求头、空行、、请求体 请求行包含: 方法:即要执行的操作,如get,post、put、delet 资源路径:请求的资源的URL HTTP版本:使用的http协议…...
自注意力简介
在注意力机制中,每个查询都会关注所有的键值对并生成一个注意力输出。如果查询q,键k和值v都来自于同一组输入,那么这个注意力就被称为是自注意力(self-attention)。自注意力这部分理论,我觉得台大李宏毅老师…...
【GameFramework框架】7-2、GameFramework框架是否“过度设计”?
推荐阅读 CSDN主页GitHub开源地址Unity3D插件分享简书地址QQ群:398291828大家好,我是佛系工程师☆恬静的小魔龙☆,不定时更新Unity开发技巧,觉得有用记得一键三连哦。 一、前言 【GameFramework框架】系列教程目录: https://blog.csdn.net/q764424567/article/details/1…...
开发一个网上商城/深圳seo公司
烟道口是开发商在建房子的时候,就已经预留好的,它的作用是用来排放厨房内的油烟。有的业主不知道自己家厨房烟道口的位置,那么厨房的烟道一般在什么位置?厨房烟道口位置可以改吗?也有的业主想要在烟道口贴瓷砖…...
wordpress 搜索 很慢/网站排名优化软件联系方式
欢迎大家关注本博,同时欢迎大家评论交流,可以给个赞哦!!! 在进行Web开发过程中,都会直接或间接的接触到Servlet,比如最基本的基于Servlet的应用、基于Spring技术栈的应用。在依赖Spring技术栈进…...
做网站不给提供ftp/恶意点击软件
第一步:Windows 开启Telnet服务 Windows使用telnet远程登录和控制VMware虚拟机中的Linux系 统:http://blog.csdn.net/tongyuehong137/article/details/45147003 第二步:将redis.conf 配置文件默认127.0.0.1 换成 真实的局域ip,比如…...
wordpress主题屋/进入百度app查看
E此浏览器不支持画布C G Am G F梨花香 缠着衣角掠过熙攘 复悄入红帘深帐C F G听枝头黄鹂逗趣儿 细风绕指淌C G Am G F坐船舫 兰桨拨开雾霭迷茫 不觉已一日过半C G C过眼的葱郁风光 悉数泛了黄Dm G Em褪尽温度的风 无言牵引中 便清晰了在此的眉目F Dm Em暮色的消融 隐约了晦朔葱…...
重庆营销型网站随做的好/网站seo站长工具
关于Arch Linux基本系统的安装,之前已经说过,这里给出链接:http://www.cnblogs.com/freerqy/p/8502838.html现在我们继续为Arch Linux安装桌面,我选择的是安装Xfce桌面,先给出有用的WiKi链接:接着开始正式安…...
先做网站还是做APP/上海短视频推广
单片机中级项目13丨矩阵按键数码管移位显示 /******************************************************************************* * 实 验 名 : 动态显示数码管实验 * 使用的IO : 数码管使用P0,P2.2,P2.3,P2.4键盘使用P1 * 实验效果 : 按矩阵键盘分别显示在数码…...