Win2K Kernel Hidden Process/Module Checker 0.1 (Proof-Of-Concept)

《光学》全套PPT课件(安徽大学) 立即下载
by Tan Chew Keong
23 May 2004

Updated : 27 May 2005 (Added Version 0.2beta2)

Download Version 0.2-beta2 Traverses HandleTableList
Download Version 0.2-beta1 supports WinXP
Download Version 0.1

Note: This Proof-of-Concept code may crash the system. Use at your own risk and on test machines only. Thanks to Microsoft Online Crash Service team for pointing this out.

Introduction

Win32 Kernel Rootkits hide running processes from users using techniques like Kernel Native API Hooking, or by directly unlinking the process's EPROCESS entry from ActiveProcessLinks. Such techniques are very effective in hiding processes, and are very difficult to detect with user-mode tools.

This proof-of-concept tool demonstrates how hidden processes can be detected by directly traversing both the Kernel's ActiveProcessList and the Kernel scheduler's ETHREAD lists. This tool can also traverse the Kernel's PsLoadedModuleList to detect kernel modules/drivers that are hidden by hooking the ZwQuerySystemInformation native API.
 

Techniques of Process Hiding in Kernel Space

The following are some of the methods that are used by kernel rootkits to hide processes. They will be described in detail below.

  1. Kernel native API hooking by ServiceTable (System Service Dispatch Table) Modification
  2. Unlinking of Process's EPROCESS structure from ActiveProcessLinks
 
Kernel Native API Hooking by System Service Dispatch Table Modification

In Windows, user-space applications request for system services by calling the APIs exported by the various DLLs. For example, to write data to an open file, pipe or device, the WriteFile API that is exported by kernel32.dll is usually used. Within kernel32.dll, the implementation of WriteFile API in turn calls the ZwWriteFile native API that is exported by ntdll.dll. The work done by ZwWriteFile is actually performed in kernel-space. Hence, the implementation of ZwWriteFile in ntdll.dll contains only minimal code to transit into kernel-space using interrupt 0x2E. The disassembly of ZwWriteFile is shown below.

 

1- MOV EAX, 0ED
2- LEA EDX, DWORD PTR SS:[ESP+4]
3- INT 2E
4- RETN 24
The magic number 0ED in line 1 is the Service Number for ZwWriteFile. It will be used to offset into the ServiceTable (System Service Dispatch Table) in kernel-space to locate the address of the function that implements the writefile service. The address of the ServiceTable can be found within the Service Descriptor Table (SDT). The Service Descriptor Table can be referenced using the exported KeServiceDescriptorTable symbol. This is a structure with the following definition.
typedef struct ServiceDescriptorTable {
	SDE ServiceDescriptor[4];
} SDT;

typedef struct ServiceDescriptorEntry {
        PDWORD ServiceTable;
        PDWORD CounterTableBase;
        DWORD  ServiceLimit;
        PBYTE  ArgumentTable;
} SDT;

The first member of the structure, SDT.ServiceDescriptor[0].ServiceTable, is an array of function pointers to the service functions. The DWORD value at ServiceTable[0xED] is a function pointer to NtWriteFile, which contains the actual code to write to files, pipes or devices. Hence, to modify the behaviour of the user-space WriteFile API, one simply needs to write a replacement function, load it into kernel space as a driver, and modify ServiceTable[0xED] to point to the replacement function. The replacement function needs to keep the original function pointer (original value of ServiceTable[0xED]) so that it can be called to perform the original defined function.

User-space programs can use the ToolHelp APIs to obtain a list of all running processes. The ToolHelp APIs in turn calls the ZwQuerySystemInformation native API exported by ntdll.dll to obtain the list. To hide processes, a kernel-space rootkit, which is loaded as a driver, can modify the function pointer at ServiceTable[0x97] (ZwQuerySystemInformation) to redirect the call to a replacement function. The replacement function first calls the original ZwQuerySystemInformation API to obtain an array containing information of all running process. The returned array is then modified to remove the entry containing the process to be hidden. Finally, the modified result is returned to the user-space program. This effectively prevents the user-space program from "seeing" the hidden process.

This technique of process hiding can be easily defeated by directly traversing the Kernel's ActiveProcessLinks to obtain a list of all running processes.
 

Unlinking of Process's EPROCESS structure from ActiveProcessLinks

The kernel maintains a circular doubly linked-list of all active processes, known as the ActiveProcessLinks. The head of this list is located at PsActiveProcessHead. However, PsActiveProcessHead is not an exported symbol, and hence, cannot be used to locate the the start of the list. Despite this, it is still possible to locate this list indirectly using the exported PsInitialSystemProcess symbol, or by calling the PsGetCurrentProcess kernel API.

Each active process is represented on this linked-list with a EPROCESS structure. The exported PsInitialSystemProcess symbol points us to the EPROCESS structure of the System process. Calling PsGetCurrentProcess kernel API returns us a pointer to the EPROCESS structure of the current process. In the Win2K's kernel, offset 0xA0 from the start of the EPROCESS structure contains links to the doubly linked-list of active processes. This allows us to "get on" and traverse the list of active processes without the need to locate PsActiveProcessHead. The following diagram illustrates this.

 


Figure 1 - Traversing of ActiveProcessLinks

It is possible for a kernel-space rootkit to hide processes by unlinking the process's EPROCESS structure from ActiveProcessLinks. To detect such hidden process, it is necessary to traverse the kernel scheduler's ETHREAD lists using KiWaitInListHead and KiWaitOutListHead.
 

Techniques of Device/Module Hiding in Kernel Space

Kernel-space rootkits are loaded into kernel-space as drivers or modules. To avoid detection, such rootkits usually use the following techniques to hide themselves. The techniques used are very similar to that of process hiding.

  1. ZwQuerySystemInformation native API hooking by ServiceTable (System Service Dispatch Table) Modification
  2. Unlinking of driver information from PsLoadedModuleList
 
ZwQuerySystemInformation native API hooking by System Service Dispatch Table Modification

User-space programs can obtain a list of all loaded drivers using the ZwQuerySystemInformation native API, specifying SystemModuleInformation as its first parameter. As mentioned earlier, ZwQuerySystemInformation is exported by ntdll.dll and can be called directly by user-space programs. In kernel-space, the ZwQuerySystemInformation native API obtains the list of loaded drivers by traversing the PsLoadedModuleList.

A kernel-space rootkit can manipulate the results returned by ZwQuerySystemInformation by modifying ServiceTable[0x97] (ZwQuerySystemInformation) to point to a replacement fnuction. The replacement function will first call the original ZwQuerySystemInformation to get an array of all loaded drivers. The driver to be hidden (i.e. the rootkit) is then removed from the array. This manipulated array is returned to the user-space program.

This technique can be easily defeated by directly traversing the kernel's PsLoadedModuleList to obtain a list of all loaded drivers.
 

Unlinking of driver information from PsLoadedModuleList

The kernel maintains a circular doubly linked list of all loaded drivers. The head of this list can be located using the PsLoadedModuleList symbol. Unfortunately, this symbol is not exported. Nevertheless, it is possible to locate this symbol by scanning the MmGetSystemRoutineAddress kernel API, which references this symbol. A kernel-space rootkit can can hide a driver (usually itself) by unlinking the driver's information from the PsLoadedModuleList.
 

Usage

KProcCheck -p     show kernel active process list.
KProcCheck -s     show scheduler thread list.
KProcCheck -d     show kernel module list.
KprocCheck -t     show hooked SDT entries.
KprocCheck -g     show hooked GDI SDT entries.
KProcCheck -u     unload support driver.

This tool consist of a kernel-space support driver (KProcCheck.sys) and a user-space program (KProcCheck.exe). The commandline parameters of the user-space program is shown above. When the user-space program is first run, it will load the kernel-space support driver. You must run KProcCheck.exe as Administrator in order for the support driver to be loaded correctly.

KProcCheck -p

When used with the -p parameter, KProcCheck will compare the list of running processes obtain by traversing the ActiveProcessLinks with that obtained using the ToolHelp APIs. Any processes that exist on the ActiveProcessLinks, but are missing from the list obtained using ToolHelp APIs will be reported as --[Hidden]--. This will detect processes that are hidden by hooking ZwQuerySystemInformation.

KProcCheck -s

With the -s parameter, KProcCheck will compare the list of running process obtained by traversing the kernel scheduler's ETHREAD lists (KiWaitInListHead and KiWaitOutListHead) with that obtained using the ZwQuerySystemInformation API. Any processes that are missing from the list returned by ZwQuerySystemInformation API will be reported as --[Hidden]--. This is effective against kernel-space rootkits that unlink the hidden process's EPROCESS structure from ActiveProcessLinks.

The two symbols KiWaitInListHead and KiWaitOutListHead are not exported, but their addresses can be obtained by scanning the KeWaitForSingleObject kernel API. These two lists can be traversed to obtain a list of ETHREAD structures that are used by the scheduler. Each ETHREAD structure contains a link back to its EPROCESS structure. This allows a list of processes that are currently being scheduled to be obtained.

KProcCheck -d

When used with the -d parameter, KProcCheck will print a list of all loaded drivers by tranversing the PsLoadedModuleList. In addition, this list will be compared against the list returned by calling ZwQuerySystemInformation. Any drivers that exist on the first list, but is missing from the second will be reported as --[Hidden]--.

KProcCheck -t

With the -t parameter, KProcCheck will check whether any of the KeServiceDescriptorTable.ServiceDescriptor[0].ServiceTable entries have been hooked. It does this by looking for any ServiceTable entries containing function pointers that point outside the memory image of ntoskrnl.exe.

KProcCheck -g

With the -g parameter, KProcCheck will check whether any of the ServiceTable entries in the Shadow Service Descriptor Table have been hooked. It does this by looking for any SeviceTable entries containing function pointers that point outside the memory image of win32k.sys.

KProcCheck -u

Using the -u parameter will instruct KProcCheck to unload the support kernel driver.
 

Screen Shots

 

  C:/>kproccheck -p KProcCheck Version 0.1 Proof-of-Concept by SIG^2 (www.security.org.sg) Process List from traversal of ActiveProcessLinks 8 - System 136 - SMSS.EXE 164 - CSRSS.EXE 184 - WINLOGON.EXE 212 - SERVICES.EXE 224 - LSASS.EXE 276 - explorer.exe 400 - svchost.exe 428 - spoolsv.exe 460 - svchost.exe 480 - hxdef100.exe --[Hidden]-- 528 - regsvc.exe 544 - mstask.exe 572 - VMwareTray.exe 608 - tcpsvcs.exe 628 - wspc.exe 652 - VMwareService.e 668 - vrmonsvc.exe 680 - WinMgmt.exe 696 - svchost.exe 708 - inetinfo.exe 712 - gotr.exe --[Hidden]-- 956 - CMD.EXE 1056 - WZQKPICK.EXE 1076 - KProcCheck.exe 1140 - Vrmonnt.exe 1144 - wuauclt.exe Total number of processes = 27 
 

  C:/>kproccheck -t KProcCheck Version 0.1 Proof-of-Concept by SIG^2 (www.security.org.sg) Checks SDT for Hooked Native APIs ZwAllocateVirtualMemory 10 /SystemRoot/System32/DRIVERS/gotr.sys ZwCreateFile 20 /SystemRoot/System32/DRIVERS/gotr.sys ZwCreateKey 23 /SystemRoot/System32/DRIVERS/gotr.sys ZwCreateProcess 29 /SystemRoot/System32/DRIVERS/gotr.sys ZwDeleteFile 34 /SystemRoot/System32/DRIVERS/gotr.sys ZwGetTickCount 4C /SystemRoot/System32/DRIVERS/gotr.sys ZwLoadDriver 55 /SystemRoot/System32/DRIVERS/gotr.sys ZwQueryDirectoryFile 7D /SystemRoot/System32/DRIVERS/gotr.sys ZwQuerySystemInformation 97 /SystemRoot/System32/DRIVERS/gotr.sys ZwSetInformationFile C2 /SystemRoot/System32/DRIVERS/gotr.sys Number of Service Table entries hooked = 10 
 

 
Limitations

This version currently works only on Win2K. On WinXP, traversing of scheduler's ETHREAD list is not fully working.
  1. Processes that are hidden by unlinking kernel scheduler's ETHREAD list will not be detected.
  2. Drivers that are hidden by unlinking from PsLoadedModuleList will not be detected. However, if such drivers perform hooking via SDT modification, their addresses will still show up during SDT check.
  3. This Proof-of-Concept code may crash the system since the code does not acquire any locks when traversing the various systems lists. Use at your own risk and on test machines only. Thanks Neill Clift for pointing this out.

Credits

  1. hoglund - original and first public NT ROOTKIT
  2. fuzen_op - FU Rootkit
  3. hf - Hacker Defender
  4. joanna - klister

 

YOLO26算法婴幼儿面部情绪识别目标检测+训练好的模型+2681张数据集+pyqt可视化界面.zip 附训练好的 YOLO 权重与 PyQt 可视化检测界面,页面底部含可视化效果预览,毕设/课设开箱即用。 【数据集概况】 · 检测类别(中文):[哭泣(crying), 开心(happy)] · 总计:2681 张 · 测试集:186 张 · 验证集:0 张 · 训练集:2495 张 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 100 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.8069** mAP50-95 | 0.5664 Precision | 0.8700 Recall | 0.7726 train/box_loss | 0.7524 train/cls_loss | 0.4490 val/box_loss | 1.1351 val/cls_loss | 0.7588 【训练过程分析】 训练伊始,模型对 box_loss 和 cls_loss 的下降表现出惊人的效率,前 20 轮迅速将训练损失降至低位,显示了训练集的强大适应性。然而,在第 20 轮之后,loss 下降速度明显放缓,整体趋于平稳。到了 60 轮左右,box_loss 值逐渐接近 0.75,而 cls_loss 则稳定在 0.44 左右。从训练集的 box_loss 从 0.7524 降至 0.7325,能看出来 model 正在逐步优化每个实例的边界框准确性,这一过程在前 40 轮尤为显著。相比之下,cls_loss 从 0.4490 降至 0.4389,尽管变化不大,但整体上表现出了模型对类别的清晰度提升... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。 立即下载

相关推荐

依赖专家资源的传统机构与依赖数据算法的现代平台,在转化效率上谁更胜一筹?.docx

依赖专家资源的传统机构与依赖数据算法的现代平台,在转化效率上谁更胜一筹?

九、list

类模板,我们可以根据所需要的数据类型实例化出类,如list<int>。list文档介绍函数名称功能说明list()无参构造构造并初始化n个val拷贝构造函数使用迭代器进行初始化构造使用列表进行初始化。

Chen_harmony的博客 234

PostgreSQL 数据库辅助类(要求 Npgsql 7.0 及以上) .NET Framework 4.7.2+ 或 .NET 6+;C# 7.3+

类别 :方法 数据源: Initialize、Close、DataSource、ConfigureBuilder、CommandTimeout、OnSqlExecuted 参数: CreateParameter(含类型版)、CreateJsonbParameter、CreateArrayParameter、ParamsFrom 执行: ExecuteNonQuery、ExecuteScalar<T>、ExecuteDataTable、ExecuteDataSet、ExecuteList<T>、ExecuteModel<T>、ExecuteDictionaryList、ExecuteColumn<T>、ExecuteReader(均有异步版) 封装: Exists、Count、ExecutePagedDataTable/List、Insert、Update、Delete、Upsert、TableExists、ColumnExists、GetTableNames、GetServerVersion、TestConnection 数据库对象: ExecuteFunctionTable/Scalar、CallProcedure 批量: ExecuteBatch(NpgsqlBatch)、BulkInsert(二进制 COPY)、CopyOut、ToDataTable 事务: ExecuteInTransaction(Async)、OpenTransaction(Async) 其他: Notify、ListenAsync、PgRetry(只读、显式调用)

MFC CListCtrl 自定义行颜色控件带 NM_CUSTOMDRAW + 双缓冲防闪烁

工控界面开发里,列表控件CListCtrl是高频组件:日志输出、点位状态、IO 监控、机器人轨迹信息都靠它展示。原生 CListCtrl 只支持统一前景 / 背景色,。常见需求:告警行标红、正常行黑色、选中行蓝底白字、不同状态区分颜色。网上很多方案是直接自绘整行,代码量大、容易闪烁、和系统主题冲突。本文这套方案基于 MFC机制实现单行着色,搭配双缓冲OnPaint减少闪烁,封装成独立控件,拿来就能嵌入老 MFC 工程(多字节 ANSI 工程也兼容)。

谢谢大家的关注和点赞!这里只有纯纯的知识干货,没有一句废话。希望能实实在在帮到大家~要是觉得有用,别忘了给我点支持哟,你 246

知识管理四款团队知识库选型对比:Confluence、OmniBox、语雀、Sward适用场景与部署方案分析

内容概要:本文对2026年主流的四款团队知识库工具Confluence、小黑OmniBox、语雀和Sward进行了横向评测,指出这四款产品并非直接竞争关系,而是分别对应不同组织状态下的解决方案。评测围绕部署方式、权限协作、检索与AI能力三大核心维度展开,强调选型不应仅看功能列表,而应关注资料来源、使用场景与团队特征。Confluence适合已有Atlassian体系的中大型企业,强在权限控制与流程治理;小黑OmniBox聚焦多源资料整合与AI问答,适用于资料分散的团队;语雀以“书本式”结构降低中文团队使用门槛;Sward则主打开源私有化部署,满足内网合规需求。文章最后提供四类典型团队的选型路径,并澄清了“AI万能”“私有化即安全”等常见误区。; 适合人群:企业IT负责人、技术管理者、知识管理相关从业者,尤其是面临知识库选型决策的团队领导者。; 使用场景及目标:①帮助团队根据自身规模、技术栈、数据主权要求和协作习惯选择合适知识库工具;②厘清AI与知识库的关系,避免选型误区;③指导已有系统如何与新工具(如OmniBox)叠加使用,提升知识利用率。; 阅读建议:此评测基于公开资料与产品文档,未进行压力测试或大规模实测,建议结合实际业务场景试用验证,并优先考虑现有系统兼容性与迁移成本。

东华大学oj系统 39 最大乘积

39 最大乘积 作者: Turbo时间限制: 1S章节: 深度优先搜索 问题描述 : 对于n个数,从中取出m个数,如何取使得这m个数的乘积最大呢? 输入说明 : 第一行一个数表示数据组数   每组输入数据共2行:   第1行给出总共的数字的个数n和要取的数的个数m,1<=n<=m<=15,   第2行依次给出这n个数,其中每个数字的范围满足:a[i]的绝对值小于等于4。 输出说明 : 每组数据输出1行,为最大的乘积。 输入范例 : 1 5 5 1 2 3 4 2 输出范例 : 48 注:难

weixin_50336369的博客 530

Java 集合基础:Collection、Iterator、List 及五种遍历方式

Java 集合用于存储和管理多个对象,相比数组,集合可以动态调整大小,并且提供了增删改查方法。 Java 常见的集合主要分为两大类: Collection:单列集合,每个元素独立存储。 Map:双列集合,存储键值对(Key-Value)。 Collection 的常见继承关系:

求上得中,求中得下 437

光电振荡器(OEO):从原理到应用,解锁高频微波信号新纪元

本文深入解析了光电振荡器(OEO)的核心原理与前沿应用。OEO通过巧妙的光-电-光转换机制,利用光学谐振腔产生高频、高纯度、低相位噪声的微波信号,有效突破了传统电子电路的频率瓶颈。文章详细拆解了其工作流程,并探讨了在雷达系统、高速光通信及精密测量等领域的硬核应用价值。

weixin_29231027的博客 374

Java 面试题:数组和 List 如何快速互转?最佳方案是什么?(其他高频面试API)

业务需求推荐 APIList 判断元素是否存在contains()List 根据条件查询单个对象List 根据条件查询多个对象List 判断是否存在符合条件的数据anyMatch()List 排序后快速查找Map 根据 Key 查询 Valueget()Map 判断 Key 是否存在大量数据判断元素是否存在List 根据 ID 高频查询List 转 HashMap两个 List 根据 ID 关联一个 List 转 Map。

两点 580

C语言专升本编程题

湖南省专升本选拔考试,C语言程序设计内部习题

weixin_45729947的博客 2122

CSP历年真题201503-1-图像旋转(C/C++)

一、问题描述 旋转是图像处理的基本操作,在这个问题中,你需要将一个图像逆时针旋转90度。 计算机中的图像表示可以用一个矩阵来表示,为了旋转一个图像,只需要将对应的矩阵旋转即可。 输入格式 二、输入格式 输入的第一行包含两个整数n, m,分别表示图像矩阵的行数和列数。 接下来n行每行包含m个整数,表示输入的图像。 三、输出格式 输出m行,每行包含n个整数,表示原始矩阵逆时针旋转90度后的矩阵。 四、...

GTboy100的博客 1672

《C++ STL list详解(三):底层原理、特殊成员函数与面试考点》

list 作为双向链表,优势在于已知位置下插入、删除及节点转移的 O(1) 时间复杂度,支持高效头尾操作与 splice 节点转移。但其内存不连续、缓存局部性差、额外指针开销导致遍历效率低于 vector。适用于频繁中间增删、跨容器节点移动等场景,不适用于随机访问或高频遍历。选择容器应基于具体操作需求,而非片面认为 list 更优。

2301_81905419的博客 430

ZLMediaKit源码分析(二)推流创建

ZLMediaKit推流结构体创建是在RtspSession::onRecv()之后。如何触发onRecv()请参考上一篇文章这里不在赘述。

cliffordl的专栏 5084

Oracle LISTAGG 在 PG 怎么写:string_agg 对照 + KEEP DENSE_RANK FIRST 三种替代

LISTAGG 迁 PG 不是换函数名。12 行实测:元素含 NULL 整行消失、numeric 不转 text 报错、DISTINCT 与 ORDER BY 互斥且顺序随机。KEEP DENSE_RANK FIRST 三种替代:dense_rank 6 行、row_number 与 DISTINCT ON 各 3 行。20 万行排序版 240.868ms,慢3.1倍;拼 239 万字符不报错,落 varchar(4000) 才报错。

weixin_42057141的博客 213

基于 YOLOv8 的自动驾驶车辆障碍物检测与避障路径规划

本文探讨基于YOLOv8的自动驾驶车辆障碍物检测与避障路径规划系统。在感知层面,采用YOLOv8模型实现多类别障碍物识别,结合单目视觉距离估计和ByteTrack多目标跟踪算法,完成障碍物的稳定检测与运动状态估计。在路径规划层面,设计分层规划架构,融合全局路径规划与局部避障算法,重点实现Frenet坐标系下的采样优化算法和基于模型预测控制的实时避障轨迹生成。通过完整的代码实现与仿真实验,验证系统在复杂交通场景下的有效性与实时性,为自动驾驶开发者提供从理论到实践的完整技术参考。 关键词:YOLOv8;自动驾驶

huanghm88的专栏 258

BLDC&PMSM电机控制器硬件设计工程(十)72V 2kW电机控制器原理图工程及库文件

电机控制器基本需求:接口类型;MCU平台;通信接口;供电;信号采集;信号输出;功率;EMC或者认证需求。

小幽余生不加糖 276

LKDS8.Linux内核的双向链表代码解析(8) 拼接链表、获取链表首/尾元素的宏、list_for_each系列的安全版本的宏

本文系统解析了Linux内核双向链表的核心操作:list_splice()系列函数实现链表拼接,list_splice_init()与list_splice_tail_init()在拼接后重置源链表;通过宏如list_first_entry_or_null、list_last_entry_or_null安全获取首尾节点;list_for_each_safe等安全遍历宏利用临时指针避免删除时断链,保障遍历安全。结合栈与队列语义,揭示其在内核内存管理中的高效应用。

zhangcoder的博客 记录学习轨迹~ 242

RK3588 C++ MeloTTS 推理

本文介绍了基于RK3588平台和RKNN工具链实现的端侧语音合成(TTS)系统。该系统支持中英文混合输入处理,通过自动合并英文单词、转换标点符号等方式预处理文本,并将其转换为音素和声调序列。核心推理流程包含编码器、中间处理和解码器三个阶段:编码器将音素序列转为隐藏状态,中间处理调节音调和语速,解码器生成最终波形。代码示例展示了输入数据设置和模型推理过程,利用RK3588内置NPU实现高效语音合成。该系统展现了在边缘计算设备上实现复杂AI任务的能力。

J。 203

ArrayList和LinkedList的区别

1.底层数据结构:首先名字可以看出来底层的数据结构不一样ArrayList使用动态数组实现,LinkedList使用链表实现2.插入和删除的效率:从底层数据结构可以看出来,ArrayList在尾部的插入和删除操作的效率高,但是在中间和开头的插入和删除效率比较低,需要移动元素;LinkedList在任意的位置的插入和删除的效率高(因为只需要调整节点之间的指针),但是LinkedList不支持随机访问,所有只有头节点插入和删除的时间复杂度为O(n),其他效率都很低3.随机访问的效率:ArrayList支持索引访

cjpabc的博客 215

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

list 的双向循环链表与迭代器机制:从接口使用到 vector 取舍

列车的车厢靠车钩前后相连。要走到另一节车厢,需要经过中间的车厢;接挂或摘下车厢时,调整的是车厢之间的连接,不必重新安排每节车厢里的乘客。对应到list,车厢帮助理解节点,车钩帮助理解节点之间的前后连接。原文采用带头结点的双向循环链表,首尾通过头结点连接;在已知位置增删节点时,不需要搬移其他元素。构造接口负责建立容器,访问与修改接口负责取值或改变其中的元素,迭代器负责指示操作位置。读结构图时,先分清头结点与第一个数据节点,再看begin()和end()的边界。list的文档介绍。

2601_96348813的博客 204

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

C++ initializer_list 详解

本文详解C++11引入的std::initializer_list,涵盖其底层机制、基本用法及常见陷阱。它作为统一初始化的核心,提供轻量级只读视图,支持函数参数、构造函数初始化,但需注意底层数组生命周期与对象绑定,避免返回或保存临时initializer_list。重载决议中initializer_list优先级高,易引发意外行为,应谨慎使用。

本博客分享软硬件一体化开发实战。硬件涵盖 PCB 设计、STM32 等 MCU 底层开发;软件包含 C++、Rust,Qt/QML、PyQt、Slint、TouchGFX、LVGL 各类 GUI 框架。方便软硬件开发者查阅学习。欢迎关注! 335

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

Java集合框架核心笔记|List、Set、Map底层原理+选型+面试高频

本文系统梳理Java集合框架核心知识:Collection(List、Set、Queue)与Map双列集合体系,重点解析ArrayList、LinkedList、HashSet、HashMap等常用类的底层原理、特性及选型建议。涵盖泛型、遍历方式、线程安全问题及高频面试题,附集合选型速查表与常见异常避坑指南,适合快速掌握集合核心要点。

jiucai27的博客 283

《C++ STL list详解(二):常用接口、迭代器操作与效率分析》

list底层采用带头节点的循环双向链表,支持双向迭代但不支持随机访问。其迭代器为双向迭代器,插入删除在已知位置下时间复杂度为O(1),但元素不连续存储,故无operator[]、capacity()和reserve()接口。相比vector,list更适合频繁插入删除场景,但遍历效率较低,内存开销更大。

2301_81905419的博客 346

c++ initializer_list

你可以为自己的类定义一个接受的构造函数,从而让你的类也支持这种优雅的初始化方式。// 输出: 1 2 3 4 5return 0;运行结果1 2 3 4 5。

拒绝AI文,努力在AI时代写出感动人心的好文章 526

C++ 入门笔记(十八):list 进阶 —— const 迭代器、operator-> 与 clear 的坑

第18课:为什么给迭代器加 const 会本末倒置?用 Ref/Ptr 模板实现 const_iterator,讲清 operator->、拷贝构造、clear/erase 和 size 缓存。

wo_jack的博客 247
上一篇: 将进程变成一个线程执行代码2
下一篇: Win2K/XP SDT Restore 0.2 (Proof-Of-Concept)
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址