⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ntdll-u.cpp

📁 linux unified kernel test
💻 CPP
字号:
/*
 * linux-test.c
 *
 * Copyright (C) 2006  Insigme Co., Ltd
 *
 * Authors: 
 * - Decao Mao, Chenzhan Hu, Lixing Chu, Zhiqiang Jiao 
 *
 * This software has been developed while working on the Linux Unified Kernel
 * project (http://linux.insigma.com.cn) in the Insigma Reaserch Institute,  
 * which is a subdivision of Insigma Co., Ltd (http://www.insigma.com.cn).
 * 
 * The project is sponsored by Insigma Co., Ltd.
 *
 * The authors can be reached at linux@insigma.com.cn.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of  the GNU General  Public License as published by the
 * Free Software Foundation; either version 2 of the  License, or (at your
 * option) any later version.
 *
 * Revision History:
 *   Jan 2006 - Created.
 */

/*
 * For ntdll-u.dll, to be built on Microsoft VC, as a Windows DLL,
 * replacing the MS ntdll.dll.
 */

#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

__declspec(dllexport) __declspec(naked) __stdcall
NtAcceptConnectPort(int param0, int param1, int param2, 
					int param3, int param4, int param5)
{
	__asm{
	push ebp
	mov ebp,esp
	mov eax,0
	lea edx,8[ebp]
	int 0x2E
	pop ebp
	ret 0x18  //ret 6
	}
}

__declspec(dllexport) __declspec(naked) __stdcall
NtAccessCheck(int param0, int param1, int param2, int param3, 
			  int param4, int param5, int param6, int param7)
{
	__asm{
	push ebp
	mov ebp,esp
	mov eax,1
	lea edx,8[ebp]
	int 0x2E
	pop ebp
	ret 0x20  //ret 8
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -