当前位置: 首页 > news >正文

Kali 软件管理测试案例

案例1 :显示目录树 tree

┌──(root㉿kali)-[~]
└─# tree --help
usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H  baseHREF][-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore][--gitfile[=]file] [--matchdirs] [--metafirst] [--ignore-case][--nolinks] [--hintro[=]file] [--houtro[=]file] [--inodes] [--device][--sort[=]<name>] [--dirsfirst] [--filesfirst] [--filelimit #] [--si][--du] [--prune] [--charset[=]X] [--timefmt[=]format] [--fromfile][--fromtabfile] [--fflinks] [--info] [--infofile[=]file] [--noreport][--version] [--help] [--] [directory ...]------- Listing options --------a            All files are listed.-d            List directories only.-l            Follow symbolic links like directories.-f            Print the full path prefix for each file.-x            Stay on current filesystem only.-L level      Descend only level directories deep.-R            Rerun tree when max dir level reached.-P pattern    List only those files that match the pattern given.-I pattern    Do not list files that match the given pattern.--gitignore   Filter by using .gitignore files.--gitfile X   Explicitly read gitignore file.--ignore-case Ignore case when pattern matching.--matchdirs   Include directory names in -P pattern matching.--metafirst   Print meta-data at the beginning of each line.--prune       Prune empty directories from the output.--info        Print information about files found in .info files.--infofile X  Explicitly read info file.--noreport    Turn off file/directory count at end of tree listing.--charset X   Use charset X for terminal/HTML and indentation line output.--filelimit # Do not descend dirs with more than # files in them.-o filename   Output to file instead of stdout.------- File options --------q            Print non-printable characters as '?'.-N            Print non-printable characters as is.-Q            Quote filenames with double quotes.-p            Print the protections for each file.-u            Displays file owner or UID number.-g            Displays file group owner or GID number.-s            Print the size in bytes of each file.-h            Print the size in a more human readable way.--si          Like -h, but use in SI units (powers of 1000).--du          Compute size of directories by their contents.-D            Print the date of last modification or (-c) status change.--timefmt <f> Print and format time according to the format <f>.-F            Appends '/', '=', '*', '@', '|' or '>' as per ls -F.--inodes      Print inode number of each file.--device      Print device ID number to which each file belongs.------- Sorting options --------v            Sort files alphanumerically by version.-t            Sort files by last modification time.-c            Sort files by last status change time.-U            Leave files unsorted.-r            Reverse the order of the sort.--dirsfirst   List directories before files (-U disables).--filesfirst  List files before directories (-U disables).--sort X      Select sort: name,version,size,mtime,ctime.------- Graphics options --------i            Don't print indentation lines.-A            Print ANSI lines graphic indentation lines.-S            Print with CP437 (console) graphics indentation lines.-n            Turn colorization off always (-C overrides).-C            Turn colorization on always.------- XML/HTML/JSON options --------X            Prints out an XML representation of the tree.-J            Prints out an JSON representation of the tree.-H baseHREF   Prints out HTML format with baseHREF as top directory.-T string     Replace the default HTML title and H1 header with string.--nolinks     Turn off hyperlinks in HTML output.--hintro X    Use file X as the HTML intro.--houtro X    Use file X as the HTML outro.------- Input options ---------fromfile    Reads paths from files (.=stdin)--fromtabfile Reads trees from tab indented files (.=stdin)--fflinks     Process link information when using --fromfile.------- Miscellaneous options ---------version     Print version and exit.--help        Print usage and this help message and exit.--            Options processing terminator.┌──(root㉿kali)-[~]
└─# dpkg -l | grep tree  
ii  cherrytree                                     0.99.48+dfsg-1                       amd64        hierarchical note taking application
ii  libhtml-tree-perl                              5.07-3                               all          Perl module to represent and create HTML syntax trees
ii  libxml-twig-perl                               1:3.52-2                             all          Perl module for processing huge XML documents in tree mode
ii  libxml-xpathengine-perl                        0.14-2                               all          re-usable XPath engine for DOM-like trees
ii  python3-asciitree                              0.3.3-3                              all          Draw tree structures using (ASCII or Unicode) characters
ii  python3-asttokens                              2.2.1-1                              all          annotate Python asbtract syntax trees with code references (Python 3)
ii  tree                                           2.1.1-1                              amd64        displays an indented directory tree, in color

案例2 :使用dpkg安装软件包

┌──(root㉿kali)-[~] ## 卸载
└─# apt-get remove tree   
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成  ┌──(root㉿kali)-[~]
└─# cd work/doc  ┌──(root㉿kali)-[~/work/doc]
└─# pwd   
/root/work/doc## apt-get download -- 下载指定的二进制包到当前目录
┌──(root㉿kali)-[~/work/doc]
└─# apt-get download tree
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling/main amd64 tree amd64 2.1.1-1 [54.4 kB]
已下载 54.4 kB,耗时 0(200 kB/s)
W: 由于文件'/root/work/doc/tree_2.1.1-1_amd64.deb'无法被用户'_apt'访问,已脱离沙盒并提权为根用户来进行下载。 - pkgAcquire::Run (13: 权限不够)┌──(root㉿kali)-[~/work/doc]
└─# ls -lh                    
总计 56K
-rw-r--r-- 1 root root 54K  6月27日 02:08 tree_2.1.1-1_amd64.deb##  dpkg -i 安装本地软件包
┌──(root㉿kali)-[~/work/doc]
└─# dpkg -i tree_2.1.1-1_amd64.deb 
正在选中未选择的软件包 tree。
(正在读取数据库 ... 系统当前共安装有 428197 个文件和目录。)
准备解压 tree_2.1.1-1_amd64.deb  ...
正在解压 tree (2.1.1-1) ...
正在设置 tree (2.1.1-1) ...
正在处理用于 kali-menu (2023.4.2) 的触发器 ...
正在处理用于 man-db (2.11.2-3) 的触发器 ...┌──(root㉿kali)-[~/work/doc]
└─# which tree
/usr/bin/tree┌──(root㉿kali)-[~/work/doc]
└─# dpkg -l | grep tree 
ii  cherrytree                                     0.99.48+dfsg-1                       amd64        hierarchical note taking application
ii  libhtml-tree-perl                              5.07-3                               all          Perl module to represent and create HTML syntax trees
ii  libxml-twig-perl                               1:3.52-2                             all          Perl module for processing huge XML documents in tree mode
ii  libxml-xpathengine-perl                        0.14-2                               all          re-usable XPath engine for DOM-like trees
ii  python3-asciitree                              0.3.3-3                              all          Draw tree structures using (ASCII or Unicode) characters
ii  python3-asttokens                              2.2.1-1                              all          annotate Python asbtract syntax trees with code references (Python 3)
ii  tree                                           2.1.1-1                              amd64        displays an indented directory tree, in color

案例3 :安装一个集成的开发环境(IDE Visual Studio Code)

## 拿到下载链接
┌──(root㉿kali)-[~/work/doc]
└─#  wget https://az764295.vo.msecnd.net/stable/6c3e3dba23e8fadc360aed75ce363ba185c49794/code_1.81.1-1691620686_amd64.deb
--2023-08-24 15:43:14--  https://az764295.vo.msecnd.net/stable/6c3e3dba23e8fadc360aed75ce363ba185c49794/code_1.81.1-1691620686_amd64.deb
正在解析主机 az764295.vo.msecnd.net (az764295.vo.msecnd.net)... 117.18.232.200
正在连接 az764295.vo.msecnd.net (az764295.vo.msecnd.net)|117.18.232.200|:443... 失败:拒绝连接。## apt-get install -f  这样的方式 会自动解决依赖  dpkg -i 本地安装不会自动解决依赖
┌──(root㉿kali)-[~/work/doc] 
└─# apt-get install -f ./code_1.81.1-1691620686_amd64.deb
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
注意,选中 'code' 而非 './code_1.81.1-1691620686_amd64.deb'

apt-get install

案例4 :安装mtr 路由跟踪工具

window – tracert

linux – traceroute

┌──(root㉿kali)-[~/work/doc]
└─# traceroute --help
Usage:traceroute [ -46dFITnreAUDV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w MAX,HERE,NEAR ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]
Options:-4                          Use IPv4-6                          Use IPv6-d  --debug                 Enable socket level debugging-F  --dont-fragment         Do not fragment packets-f first_ttl  --first=first_ttlStart from the first_ttl hop (instead from 1)-g gate,...  --gateway=gate,...Route packets through the specified gateway(maximum 8 for IPv4 and 127 for IPv6)-I  --icmp                  Use ICMP ECHO for tracerouting-T  --tcp                   Use TCP SYN for tracerouting (default port is 80)-i device  --interface=deviceSpecify a network interface to operate with-m max_ttl  --max-hops=max_ttlSet the max number of hops (max TTL to bereached). Default is 30-N squeries  --sim-queries=squeriesSet the number of probes to be triedsimultaneously (default is 16)-n                          Do not resolve IP addresses to their domain names-p port  --port=port        Set the destination port to use. It is eitherinitial udp port value for "default" method(incremented by each probe, default is 33434), orinitial seq for "icmp" (incremented as well,default from 1), or some constant destinationport for other methods (with default of 80 for"tcp", 53 for "udp", etc.)-t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6traffic class) value for outgoing packets-l flow_label  --flowlabel=flow_labelUse specified flow_label for IPv6 packets-w MAX,HERE,NEAR  --wait=MAX,HERE,NEARWait for a probe no more than HERE (default 3)times longer than a response from the same hop,or no more than NEAR (default 10) times than somenext hop, or MAX (default 5.0) seconds (floatpoint values allowed too)-q nqueries  --queries=nqueriesSet the number of probes per each hop. Default is3-r                          Bypass the normal routing and send directly to ahost on an attached network-s src_addr  --source=src_addrUse source src_addr for outgoing packets-z sendwait  --sendwait=sendwaitMinimal time interval between probes (default 0).If the value is more than 10, then it specifies anumber in milliseconds, else it is a number ofseconds (float point values allowed too)-e  --extensions            Show ICMP extensions (if present), including MPLS-A  --as-path-lookups       Perform AS path lookups in routing registries andprint results directly after the correspondingaddresses-M name  --module=name      Use specified module (either builtin or external)for traceroute operations. Most methods havetheir shortcuts (`-I' means `-M icmp' etc.)-O OPTS,...  --options=OPTS,...Use module-specific option OPTS for thetraceroute module. Several OPTS allowed,separated by comma. If OPTS is "help", print infoabout available options--sport=num                 Use source port num for outgoing packets. Implies`-N 1'--fwmark=num                Set firewall mark for outgoing packets-U  --udp                   Use UDP to particular port for tracerouting(instead of increasing the port per each probe),default port is 53-UL                         Use UDPLITE for tracerouting (default dest portis 53)-D  --dccp                  Use DCCP Request for tracerouting (default portis 33434)-P prot  --protocol=prot    Use raw packet of protocol prot for tracerouting--mtu                       Discover MTU along the path being traced. Implies`-F -N 1'--back                      Guess the number of hops in the backward path andprint if it differs-V  --version               Print version info and exit--help                      Read this help and exitArguments:
+     host          The host to traceroute topacketlen     The full packet length (default is the length of an IPheader plus 40). Can be ignored or increased to a minimalallowed value
┌──(root㉿kali)-[~/work/doc]
└─# apt-cache search ^mtr                                
mtr - Full screen ncurses and X11 traceroute tool
mtr-tiny - Full screen ncurses traceroute tool
mtree-netbsd - Validates directory tree against specification┌──(root㉿kali)-[~/work/doc]
└─# apt-get install mtr                                  
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
下列软件包是自动安装的并且现在不需要了:└─# mtr qq.com    

mtr qq.com

案例5 :升级软件包

python3的升级

┌──(root㉿kali)-[~/work/doc]
└─# python3 -V
Python 3.11.4┌──(root㉿kali)-[~/work/doc]
└─# apt-get upgrade python3

案例6 :通过git方式安装软件

┌──(root㉿kali)-[~/work/doc]
└─# git -h                 
用法:git [-v | --version] [-h | --help] [-C <路径>] [-c <名称>=<取值>][--exec-path[=<路径>]] [--html-path] [--man-path] [--info-path][-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare][--git-dir=<路径>] [--work-tree=<路径>] [--namespace=<名称>][--config-env=<名称>=<环境变量>] <命令> [<参数>]这些是各种场合常见的 Git 命令:开始一个工作区(参见:git help tutorial)clone     克隆仓库到一个新目录init      创建一个空的 Git 仓库或重新初始化一个已存在的仓库在当前变更上工作(参见:git help everyday)add       添加文件内容至索引mv        移动或重命名一个文件、目录或符号链接restore   恢复工作区文件rm        从工作区和索引中删除文件检查历史和状态(参见:git help revisions)bisect    通过二分查找定位引入 bug 的提交diff      显示提交之间、提交和工作区之间等的差异grep      输出和模式匹配的行log       显示提交日志show      显示各种类型的对象status    显示工作区状态扩展、标记和调校您的历史记录branch    列出、创建或删除分支commit    记录变更到仓库merge     合并两个或更多开发历史rebase    在另一个分支上重新应用提交reset     重置当前 HEAD 到指定状态switch    切换分支tag       创建、列出、删除或校验一个 GPG 签名的标签对象协同(参见:git help workflows)fetch     从另外一个仓库下载对象和引用pull      获取并整合另外的仓库或一个本地分支push      更新远程引用和相关的对象命令 'git help -a''git help -g' 显示可用的子命令和一些概念帮助。
查看 'git help <命令>''git help <概念>' 以获取给定子命令或概念的
帮助。
有关系统的概述,查看 'git help git'

开源的 情报搜集工具 recon-ng

┌──(root㉿kali)-[~/work/doc]
└─# git clone https://github.com/lanmaster53/recon-ng.git
正克隆到 'recon-ng'...
remote: Enumerating objects: 9522, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 9522 (delta 3), reused 14 (delta 3), pack-reused 9503
接收对象中: 100% (9522/9522), 3.06 MiB | 775.00 KiB/s, 完成.
处理 delta 中: 100% (4958/4958), 完成.┌──(root㉿kali)-[~/work/doc]
└─# ls         
code_1.81.1-1691620686_amd64.deb  recon-ng  tree_2.1.1-1_amd64.deb┌──(root㉿kali)-[~/work/doc]
└─# cd regon-ng
cd: 没有那个文件或目录: regon-ng┌──(root㉿kali)-[~/work/doc]
└─# cd recon-ng┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# ls
docker-compose.yml  LICENSE    recon      recon-ng   REQUIREMENTS
Dockerfile          README.md  recon-cli  recon-web  VERSION┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# pip install -r REQUIREMENTS┌──(root㉿kali)-[~/work/doc/recon-ng]
└─# recon-ng
[*] Version check disabled._/_/_/    _/_/_/_/    _/_/_/    _/_/_/    _/      _/            _/      _/    _/_/_/_/    _/  _/        _/        _/      _/  _/_/    _/            _/_/    _/  _/       _/_/_/    _/_/_/    _/        _/      _/  _/  _/  _/  _/_/_/_/  _/  _/  _/  _/  _/_/_/_/    _/  _/        _/        _/      _/  _/    _/_/            _/    _/_/  _/      _/ 
_/    _/  _/_/_/_/    _/_/_/    _/_/_/    _/      _/            _/      _/    _/_/_/    /\/ \\ /\Sponsored by...               /\  /\/  \\V  \/\/ \\/ // \\\\\ \\ \/\// // BLACK HILLS \/ \\www.blackhillsinfosec.com____   ____   ____   ____ _____ _  ____   ____  ____|____] | ___/ |____| |       |   | |____  |____ ||      |   \_ |    | |____   |   |  ____| |____ |____www.practisec.com[recon-ng v5.1.2, Tim Tomes (@lanmaster53)]                       [*] No modules enabled/installed.

相关文章:

Kali 软件管理测试案例

案例1 &#xff1a;显示目录树 tree ┌──(root㉿kali)-[~] └─# tree --help usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H baseHREF][-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore][--gitfile[]file] [--matchdirs] [--metafirs…...

【分布式】Zookeeper

Java开发者视角下的Zookeeper—— 在什么场景下使用&#xff0c;怎么用 可以参考&#xff1a;https://zhuanlan.zhihu.com/p/62526102 Zookeeper是什么&#xff1f; ZooKeeper 是一个分布式的&#xff0c;开放源码的分布式应用程序协同服务。ZooKeeper 的设计目标是将那些复…...

ScheduleJS Crack,新的“信息列”水平滚动功能

ScheduleJS Crack,新的“信息列”水平滚动功能 增加了对Angular 16的支持 新的“信息列”水平滚动功能。 新的“信息列”固定功能。 添加了输入属性以处理组件模板中的偶数和奇数ScheduleRowPlainBackgroundColor以及CSS变量。 改进了“信息列”和角度甘特组件的类型。 Schedul…...

curl封装

一。由于工作的原因&#xff0c;需要对curl做一些封装&#xff0c;附加上我们的证书&#xff0c;提供给第三个C和jAVA使用。 二。头文件封闭四个函数&#xff0c;get&#xff0c;post&#xff0c;download&#xff0c;upload #ifndef CURLHTTP_H #define CURLHTTP_H#include …...

C语言数据类型和变量

C语言数据类型和变量 数据类型分类内置类型【C语言本身就具有的类型】自定义类型【自己来创建类型】取值范围 变量变量的创建变量创建的语法形式变量的分类全局变量局部变量 栈区、堆区、静态区 算术操作符赋值操作符连续赋值复合赋值符 单目操作符&#xff1a;、--、、-强制类…...

分布式训练 最小化部署docker swarm + docker-compose落地方案

目录 背景&#xff1a; 前提条件&#xff1a; 一、docker环境初始化配置 1. 安装nvidia-docker2 2. 安装docker-compose工具 3. 获取GPU UUID 4. 修改docker runtime为nvidia&#xff0c;指定机器的UUID 二、docker-swarm 环境安装 1. 初始化swarm管理节点 2. 加入工…...

QT学习笔记-开发环境编译Qt MySql数据库驱动与交叉编译Qt MySql数据库驱动

QT学习笔记-开发环境编译Qt MySql数据库驱动与交叉编译Qt MySql数据库驱动 0、背景1、基本环境2、开发环境编译Qt MySql数据库驱动2.1 依赖说明2.2 MySQL驱动编译过程 3、交叉编译Qt MySql数据库驱动3.1 依赖说明3.3.1 如何在交叉编译服务器上找到mysql.h及相关头文件3.3.2 如果…...

QT使用QXlsx实现数据验证与Excel公式操作 QT基础入门【Excel的操作】

准备环境:QT中使用QtXlsx库的三种方法 1、公式操作写单行公式 //右值初始化Format rAlign;rAlign.setHorizontalAlignment(Format::AlignRight);//左值初始化Format lAlign;lAlign.setHorizontalAlignment(Format::AlignLeft);xlsx.write("B3", 40, lAlign);xlsx.wr…...

renrenfast Vue2 打包发布

1、修改 static/config/index-prod.js 文件 // api接口请求地址 window.SITE_CONFIG[baseUrl] http://192.168.1.86:8080/renren-fast; /*** 生产环境*/ ;(function () {window.SITE_CONFIG {};// api接口请求地址window.SITE_CONFIG[baseUrl] http://192.16…...

NoSQL数据库介绍+Redis部署

目录 一、NoSQL概述 1、数据的高并发读写 2、海量数据的高效率存储和访问 3、数据库的高扩展和高可用 二、NoSQL的类别 1、键值存储数据库 2、列存储数据库 3、文档型数据库 4、图形化数据库 三、分布式数据库中的CAP原理 1、传统的ACID 1&#xff09;、A--原子性 …...

【mindspore学习】环境配置

本次实验搭配的环境是 CUDA 11.6 CUDNN v8.9.4 TensorRT-8.4.1.5 mindspore 2.1.0。 1、配置 Nvidia 显卡驱动 如果原来的主机已经安装了 nvidia 驱动&#xff0c;为避免版本的冲突&#xff0c;建议先清除掉旧的 nvidia驱动 sudo apt-get --purge remove nvidia* sudo apt…...

基于shell脚本对aliyun npm仓库(https://packages.aliyun.com)登录认证

文章目录 基于shell脚本对阿里云npm仓库&#xff08;https://packages.aliyun.com&#xff09;登录认证食用人群食用方式 基于shell脚本对阿里云npm仓库&#xff08;https://packages.aliyun.com&#xff09;登录认证 食用人群 由于一些安全的原因&#xff0c;某些企业可能会…...

K8s Pod 安全认知:从openshift SCC 到 PSP 弃用以及现在的 PSA

写在前面 简单整理,博文内容涉及: PSP 的由来PSA 的发展PSA 使用认知不涉及使用,用于了解 Pod 安全 API 资源理解不足小伙伴帮忙指正对每个人而言,真正的职责只有一个:找到自我。然后在心中坚守其一生,全心全意,永不停息。所有其它的路都是不完整的,是人的逃避方式,是…...

提高企业会计效率,选择Manager for Mac(企业会计软件)

作为一家企业&#xff0c;良好的财务管理是保持业务运转的关键。而选择一款适合自己企业的会计软件&#xff0c;能够帮助提高会计效率、减少错误和节约时间。在众多的选择中&#xff0c;Manager for Mac(企业会计软件)是一款值得考虑的优秀软件。 首先&#xff0c;Manager for…...

软考:中级软件设计师:信息系统的安全属性,对称加密和非对称加密,信息摘要,数字签名技术,数字信封与PGP

软考&#xff1a;中级软件设计师:信息系统的安全属性 提示&#xff1a;系列被面试官问的问题&#xff0c;我自己当时不会&#xff0c;所以下来自己复盘一下&#xff0c;认真学习和总结&#xff0c;以应对未来更多的可能性 关于互联网大厂的笔试面试&#xff0c;都是需要细心准…...

Vue3中reactive响应式失效的问题

情景阐述 弹窗内部有一个挑选框&#xff0c;要通过请求接口获取挑选框下面可供选择的数据。 这是一个很简单的情境&#xff0c;我立刻有了自己的思路。如果实现搜索&#xff0c;数据较少可以直接用elementplus自带的filter。如果数据较多&#xff0c;就需要传val&#xff0c;…...

lamp

LAMP 环境 指的是在 Linux 操作系统中分别安装 Apache 网页服务器、MySQL 数据库服务器和 PHP 开发服务器&#xff0c;以及一些对应的扩展软件。AMP也支持win操作系统 &#xff08;sccm 域升级版&#xff09; LAMP架构是目前成熟的企业网站应用模式之一&#xff0c;指的是协同…...

LeetCode 周赛上分之旅 #42 当 LeetCode 考树上倍增,出题的趋势在变化吗

⭐️ 本文已收录到 AndroidFamily&#xff0c;技术和职场问题&#xff0c;请关注公众号 [彭旭锐] 和 BaguTree Pro 知识星球提问。 学习数据结构与算法的关键在于掌握问题背后的算法思维框架&#xff0c;你的思考越抽象&#xff0c;它能覆盖的问题域就越广&#xff0c;理解难度…...

Qt 自定义菜单 托盘菜单

托盘菜单实现&#xff1a;通过QSystemTrayIconQMenuQAction即可完美实现&#xff01; 实现方式&#xff1a;createActions用于创建菜单、菜单项,translateActions用于设置文本、实现多语化&#xff0c;translateAccount用于设置用户空间配额。 void TrayMenu::createActions(…...

channel并发编程

不要通过共享内存通信&#xff0c;要通过通信共享内存。 channel是golang并发编程中一种重要的数据结构&#xff0c;用于多个goroutine之间进行通信。 我们通常可以把channel想象成一个传送带&#xff0c;将goroutine想象成传送带周边的人&#xff0c;一个传送带的上游放上物品…...

《Playwright:微软的自动化测试工具详解》

Playwright 简介:声明内容来自网络&#xff0c;将内容拼接整理出来的文档 Playwright 是微软开发的自动化测试工具&#xff0c;支持 Chrome、Firefox、Safari 等主流浏览器&#xff0c;提供多语言 API&#xff08;Python、JavaScript、Java、.NET&#xff09;。它的特点包括&a…...

java调用dll出现unsatisfiedLinkError以及JNA和JNI的区别

UnsatisfiedLinkError 在对接硬件设备中&#xff0c;我们会遇到使用 java 调用 dll文件 的情况&#xff0c;此时大概率出现UnsatisfiedLinkError链接错误&#xff0c;原因可能有如下几种 类名错误包名错误方法名参数错误使用 JNI 协议调用&#xff0c;结果 dll 未实现 JNI 协…...

大语言模型如何处理长文本?常用文本分割技术详解

为什么需要文本分割? 引言:为什么需要文本分割?一、基础文本分割方法1. 按段落分割(Paragraph Splitting)2. 按句子分割(Sentence Splitting)二、高级文本分割策略3. 重叠分割(Sliding Window)4. 递归分割(Recursive Splitting)三、生产级工具推荐5. 使用LangChain的…...

【python异步多线程】异步多线程爬虫代码示例

claude生成的python多线程、异步代码示例&#xff0c;模拟20个网页的爬取&#xff0c;每个网页假设要0.5-2秒完成。 代码 Python多线程爬虫教程 核心概念 多线程&#xff1a;允许程序同时执行多个任务&#xff0c;提高IO密集型任务&#xff08;如网络请求&#xff09;的效率…...

鸿蒙DevEco Studio HarmonyOS 5跑酷小游戏实现指南

1. 项目概述 本跑酷小游戏基于鸿蒙HarmonyOS 5开发&#xff0c;使用DevEco Studio作为开发工具&#xff0c;采用Java语言实现&#xff0c;包含角色控制、障碍物生成和分数计算系统。 2. 项目结构 /src/main/java/com/example/runner/├── MainAbilitySlice.java // 主界…...

JVM虚拟机:内存结构、垃圾回收、性能优化

1、JVM虚拟机的简介 Java 虚拟机(Java Virtual Machine 简称:JVM)是运行所有 Java 程序的抽象计算机,是 Java 语言的运行环境,实现了 Java 程序的跨平台特性。JVM 屏蔽了与具体操作系统平台相关的信息,使得 Java 程序只需生成在 JVM 上运行的目标代码(字节码),就可以…...

Linux中《基础IO》详细介绍

目录 理解"文件"狭义理解广义理解文件操作的归类认知系统角度文件类别 回顾C文件接口打开文件写文件读文件稍作修改&#xff0c;实现简单cat命令 输出信息到显示器&#xff0c;你有哪些方法stdin & stdout & stderr打开文件的方式 系统⽂件I/O⼀种传递标志位…...

Spring AOP代理对象生成原理

代理对象生成的关键类是【AnnotationAwareAspectJAutoProxyCreator】&#xff0c;这个类继承了【BeanPostProcessor】是一个后置处理器 在bean对象生命周期中初始化时执行【org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization】方法时…...

英国云服务器上安装宝塔面板(BT Panel)

在英国云服务器上安装宝塔面板&#xff08;BT Panel&#xff09; 是完全可行的&#xff0c;尤其适合需要远程管理Linux服务器、快速部署网站、数据库、FTP、SSL证书等服务的用户。宝塔面板以其可视化操作界面和强大的功能广受国内用户欢迎&#xff0c;虽然官方主要面向中国大陆…...

python学习day39

图像数据与显存 知识点回顾 1.图像数据的格式&#xff1a;灰度和彩色数据 2.模型的定义 3.显存占用的4种地方 a.模型参数梯度参数 b.优化器参数 c.数据批量所占显存 d.神经元输出中间状态 4.batchisize和训练的关系 import torch import torchvision import torch.nn as nn imp…...