一个向别的进程插入dll的代码

逆向工程核心原理——代码注入 什么是代码注入? 代码注入是一种向目标进程插入独立运行代码并使之运行的技术,它一般调用CreateRemoteThread()API以远程线程形式运行插入的代码,所以也被称为线程注入。 使用代码注入的原因 其实,代码注入要实现的功能与DLL注入类似,但具体实施时要考虑的事项更多,使用起来 更加不便。那它的优点究竟是什么呢? 1.占用内存少 如果要注入的代码与数据较少,那么就不需要将它们做成DLL的形式再注入。此时直接采用 代码注入的方式同样能够获得与DLL注入相同的效果,且占用... 阅读详情
 --------- Functions in C ---------------

CONTEXT OriginalContext; //Get/SetThreadContext's parameter
char OriginalCodePage[4096];
DWORD sizeofCP=0;
VOID* mySec; //my section...Offset of CodePage in the target process's memory, not this app's memory

BOOL InjectDLL_CreateProcess( char *TargetAPP, char *DLLTOINJECT )
{
   BOOL B=FALSE, BREAK1=FALSE, BREAK2=FALSE;
   STARTUPINFO          sInfo;
   PROCESS_INformATION pInfo;
   DEBUG_EVENT          dEvent;
   DWORD              ret;
   
   ZeroMemory((VOID*)&sInfo, sizeof(sInfo));

   B = CreateProcess(Filename, 0, 0, 0, FALSE, DEBUG_ONLY_THIS_PROCESS, 0, 0, &sInfo, &pInfo);
   if(!B) return FALSE;
   
   //-----
   ///
   ////  
   ///// We need 3 things, ProcessHandle, ThreadHandle, and BaseOfImage (base address of executable file in memory)
   ////  
   ///
   //-----


   HANDLE              PHandle=pInfo.hProcess, THandle=pInfo.hThread; // Processhandle, Thread handle
   VOID *              BaseOfImage;
   char              DLLTOINJECT[] = "d://VCPrj//MSNInject//DLL//Release//DLL.dll";

   while(1)
   {
      if( !(B = WaitForDebugEvent(&dEvent, INFINITE)) ) //Remember? -- dEvent is a structure that recv'es return of fucntion
          return -1;
      
      if(dEvent.dwDebugEventCode==CREATE_PROCESS_DEBUG_EVENT)  //If the debug event was "Process has just been created"
      {
          BaseOfImage = dEvent.u.CreateProcessInfo.lpBaseOfImage; //Ok, now we have the base address of the exectable file in memory (remember before, when i said that i'll show you how to get it?)
      }

      if(dEvent.dwDebugEventCode==EXIT_PROCESS_DEBUG_EVENT) //if process terminated, then break the loop, so that you would exit function
          break;

      if(dEvent.dwDebugEventCode==EXCEPTION_DEBUG_EVENT)//Check for breakpoint
      {
          if(dEvent.u.Exception.ExceptionRecord.ExceptionCode==EXCEPTION_BREAKPOINT)
          {//It is a break point;
             if(BREAK1==FALSE)
             {//First Breakpoint occured
                B = InjectDLL( pInfo.hProcess, pInfo.hThread, BaseOfImage,  
                    DLLTOINJECT); //The magical function, comes after this function

                BREAK1 = TRUE;
                if(!B)
                    return FALSE;
             }else if(BREAK2==FALSE)
             {//Second breakpoint occured (asm instructions have been all done, and int 3h was reached
                ret = RestoreOriginalCodePage( PHandle, THandle, 0); //another function to restore
                if(ret==0) return FALSE; //uhoh!!! Big big big big error...you need to restore what you have written, but couldn't,,,,i'll leave it to you, cause i, my self donno what to do, other than terminate the target process :P
                BREAK2=TRUE;
             }
          }else
          {    //if an Exception occured, and it wasn't a break point, then say DBG_EXCEPTION_NOT_HANDLED
             //Because you haven't handled the exception, so let lindows,,i mean, windows handle it..
             ContinueDebugEvent( dEvent.dwProcessId, dEvent.dwThreadId, DBG_EXCEPTION_NOT_HANDLED);
             continue;
          }

      }//end if

      ContinueDebugEvent( dEvent.dwProcessId, dEvent.dwThreadId, DBG_CONTINUE);
      //you don't need to handle event,,let it pass

   }//end while()
}//end function

////////////////////

next function:

BOOL InjectDLL(HANDLE hProcess, HANDLE hThread, VOID* hModuleBase, char *DllName)
{//You must have debug access to hProcess (required for ReadProcessMemory() & WriteProcessMemory)

   FARPROC LoadLibProc = GetProcAddress(GetModuleHandle("KERNEL32.dll"), "LoadLibraryA");
   if(!LoadLibProc) return FALSE;

//This is the entry point addr of LoadLibrary()...It's usually, always the same for any process that loads kernel32.dll
//So unless there is some other explanation, i don't know
//But i personally found that this works all of the time
   

   ////////////////////////////////
   
   char CodePage[4096] =
   
   {    0xB8, 00, 00, 00, 00,    // mov EAX,  0h | Pointer to LoadLibraryA() (DWORD)
      0xBB, 00, 00, 00, 00,    // mov EBX,  0h | DLLName to inject (DWORD)
      0x53,                 // push EBX
      0xFF, 0xD0,              // call EAX
      0x5b,                 // pop EBX
      0xcc                 // INT 3h
   }; //i could have used structS instead, but unfortunatelly, because of many compilers' stupid padding, i didn't >:(
   int nob=15; //no of bytes
   
      char *DLLName;     //DllName
      DWORD *EAX, *EBX;   //Look at codepage

      DLLName = (char*)((DWORD)CodePage + nob);  //Set the pointers
      EAX = (DWORD*)( CodePage +  1);          //
      EBX = (DWORD*) ( CodePage +  6);      //

      strcpy( DLLName, DllName );       //copy dll name
      *EAX = (DWORD)LoadLibProc;       //EAX==LoadLibProc
      *EBX = nob; // need to do this: *EBX = *EBX + (offset of CodePage)
   ////////////////////////////
      sizeofCP = strlen(DllName) + nob +1; //remember this? --


//Here comes the complicated part, you can use CreateRemoteThread() instead of all this, actually, but unfortunatelly
//it isn't supported in all versions of windows...but i'll tell you how to use it after this code..
//I have an example code that i found from google groups

   IMAGE_DOS_HEADER       DOShdr;
   IMAGE_NT_HEADERS       *pNThdr, NThdr;
   IMAGE_SECTION_HEADER       SecHdr, *pSecHdr;
   IMAGE_DATA_DIRECTORY       DataDir, *pDataDir; //@@@@@@@@
   DWORD              dwD, dwD2, read, written;
   CONTEXT              Context; //GetThreadContext's parameter &&
   BOOL              B;

   Context.ContextFlags = CONTEXT_CONTROL; //look at WINNT.h header file for more information
   OriginalContext.ContextFlags = CONTEXT_CONTROL;
   if(!GetThreadContext( hThread, &OriginalContext)) //Save original context -- remember that currently the process is totally suspended
   {
      dwD = GetLastError();
      return FALSE;
   }
      
   // Check to see if we have valid Headers:
   //
   /////////Get DOS hdr
   B = ReadProcessMemory(hProcess, hModuleBase, &DOShdr, sizeof(DOShdr), &read);
   if( (!B) || (read!=sizeof(DOShdr)) ) return FALSE;
   if( DOShdr.e_magic != IMAGE_DOS_SIGNATURE ) //Check for `MZ
      return FALSE;
   
   //Get NT header
   B = ReadProcessMemory( hProcess,
      (VOID*)((DWORD)hModuleBase + (DWORD)DOShdr.e_lfanew), &NThdr, sizeof(NThdr), &read);
   if( (!B) || (read!=sizeof(NThdr)) ) return FALSE;
   if( NThdr.Signature != IMAGE_NT_SIGNATURE ) //Check for `PE/0/0
      return 0;

   // Valid EXE header!
   // Look for a usable writable code page: -- this is where you seek the sections for a usable section
   //

   /////
      //
      if( (dwD=NThdr.FileHeader.NumberOfSections) < 1 ) //Number of sections must be atleast 1...DUH!!!
          return FALSE;//Section table: (after optional header)
      
      pSecHdr = (IMAGE_SECTION_HEADER*)
          (
          ((DWORD)hModuleBase + (DWORD)DOShdr.e_lfanew) +
          (DWORD)sizeof(NThdr.FileHeader) +
          (DWORD)NThdr.FileHeader.SizeOfOptionalHeader + 4
          );//@@@@@@@@@@@@@ need to concentrate on this to understand..except the +4,,,i saw that it always needs this,, i spent an hour trying to fix an error, until i noticed this :P...So just do it

      B=FALSE;
///////////////////////////////GetModuleHandle(0); //i explained what this does, in part I,,,but unfortunatelly, it&#39;s for the dll, not for this exe :P
      
      for( dwD2=0 ; dwD2<dwD ; dwD2++ )
      {//iterate sections to look for a writable part of memory and NOT .idata -- because .idata is the import table,,which shouldn&#39;t be modified whatsoever -- because NazSoft sez so! :P it&#39;s a bit of a long story,,I&#39;m not a super novel to give you all the information u need :P
          if( !ReadProcessMemory( hProcess, pSecHdr, &SecHdr, sizeof(SecHdr), &read) )
             return FALSE; //i know you might look confused of what you see here...

///////////////////But listen to me when i say that this is not wrong. it is correct
///////////////////pSecHdr points to addr in memory of a section&#39;s name,,but not the memory of MY process,
///////////////////but the memory of the other process. If you do *pSecHdr,, you&#39;ll get info from you&#39;re process
///////////////////mostly, it&#39;ll be the same as the other proceess, but if you look closer, you&#39;ll see that it&#39;s not
///////////////////Base addresses of all dll file&#39;s functions are the same in all programs
///////////////////So pSecHdr isn&#39;t a true pointer,, just an easier way (so that i don&#39;t need to use casting opers alot)
///////////////////to do what i want to do


          if(read!=sizeof(SecHdr)) return FALSE; //Make sure correct amount was read in
         
          if(
             (SecHdr.Characteristics & IMAGE_SCN_MEM_WRITE) //writable section
             &&
             ( strcmpi((const char*)SecHdr.Name, ".idata")!=NULL ) //not .idata (import data)
             ) //strcmpi -- the "i" == ignore cases (capital, small letters...)
          {
             B = TRUE;
             break;//OK! found!!
          }
          pSecHdr++;
      }

      if(!B)
          return FALSE; //couldn&#39;t find usable code page!
      //
   /////
      //Found a section:  (SecHdr.VirtualAddress + (DWORD)hModuleBase)
      mySec = (VOID*)(SecHdr.VirtualAddress + (DWORD)hModuleBase); //Remember this global var?
      //This is where the asm instructions shuold go

      *EBX = *EBX + (DWORD)mySec; //also remember this??? look at the top of the function
      
      if(!ReadProcessMemory( hProcess, mySec, OriginalCodePage, sizeofCP, &read) )
          return FALSE; //Read the stuff in memory, so that you can restore it
      if(read != sizeofCP)
          return FALSE;

//so now, yuou will have already saved the memory that you&#39;re going to modify, and the thread&#39;s context (registers)
//we&#39;ll restore them later..
      
      //Now starts the mega part! (If an error occurs here, god knows what might happen!
      B = WriteProcessMemory( hProcess, mySec, CodePage, sizeofCP, &written);
      
      if( (written!=0) && (written!=sizeofCP) )  //Uh oh!, System crash might occur now!
      {//****EMERGENCY**** ****EMERGENCY**** ****EMERGENCY**** ****EMERGENCY****
          WriteProcessMemory( hProcess, mySec, OriginalCodePage, sizeofCP, &written);
          // Try to save what you can, and return back to memory
                    
          return FALSE; //might not have worked, so, big s***!
      }

      if((!B) || (written!=sizeofCP))
          return FALSE;
      
      //Ok, injected successfully,
      //You MUST call function RestoreOriginalCodePage() function upon the following breakpoint!
      Context = OriginalContext;
      Context.Eip = (DWORD)mySec; //Change EIP
      B = SetThreadContext(hThread, &Context); //Change EIP
      if(!B) return FALSE; //Lol, it would be funny to get an error here,,,all that goes to waste, and you need to restore what ever it ist hat you chagned :S :S :S

   return 1;
}


//OK go back to InjectDLL_CreateProcess() ... Look at the second break point section:
/*
   ret = RestoreOriginalCodePage( PHandle, THandle, 0); //another function to restore
   if(ret==0) return FALSE;
   //uhoh!!! Big big big big error...you need to restore what you have written, but couldn&#39;t,,,,
   //i&#39;ll leave it to you, cause i, my self donno what to do, other than terminate the target process :P

   BREAK2=TRUE;

*/

OK, so lets have a look at RestoreOriginalCodePage():

*******
Notepad is giving me a headache right now, keeps saying not enough memory.. :P :P
*******

I&#39;m typing the rest in c:/windows/edit.com  program --i love this thing :P



//return values:
//
//    if 0    ->    successful
//    if -1    ->    (0xFFFFFFFF) WriteProcessMemory returned FALSE
//    else    ->    Amount of bytes written + 1
//              (to get exact amount of bytes written, you must decrement return value by one!)
//

DWORD RestoreOriginalCodePage( HANDLE hProcess, HANDLE hThread, DWORD *outSize )
{
   BOOL B;
   DWORD written;
   CONTEXT Context;

   if(outSize) *outSize = sizeofCP; //Just for user&#39;s info

     Context.ContextFlags = CONTEXT_FULL; //look at winnt.h
     GetThreadContext( hThread, &Context); //Get current thread context
          //This isn&#39;t required, it&#39;s just for you to check the return
          //value of LoadLibrary()
          ////It is in the EAX register (Context.Eax)
     
   B = WriteProcessMemory( hProcess, mySec, OriginalCodePage, sizeofCP, &written );
     //Restore original codepage

     if(!B) return -1;

   if(written!=sizeofCP)
      return written+1;

     //Restore context (EIP)
   B=SetThreadContext( hThread, (CONST CONTEXT*)&OriginalContext);
     if(!B) return -1;

   return 0;
}
古典黑客技术之HOOK API 古典黑客技术之HOOK APIHOOK API技术可以拦截、控制某些API函数的调用。当一个API函数被拦截之后,用户可以让目标程序执行事先准备好的代码。(比如说,构造的代码是过滤此API函数传入的参数的,而此API函数又是用来获取进程的,当此API被拦截之后,我们就可以让它转去执行过滤参数的代码。)PE文件的导入表HOOK API其实是对远程进程内存数据的修改,可以通过修改导入表中的导入函数地址表 阅读详情

相关推荐

第22章插入DLL和挂接API

第22章插入DLL和挂接API 在MicrosoftWindows中,每个进程都有它自己的私有地址空间。当使用指针来引用内存时,指针的值将引用你自己进程的地址空间中的一个内存地址。你的进程不能创建一个其引用属于另一个进程的内存指针。因此,如果你的进程存在一个错误,改写了一个随机地址上的内存,那么这个错误不会影响另一个进程使用的内存。 在Windows98下运行的各个进程共享2GB的地址空间

Lydia的博客 1902

Windows注入与拦截(6) -- 从内存中加载DLL

Windows提供的API(LoadLibrary, LoadLibraryEx)只支持从文件系统上加载DLL文件,我们无法使用这些API从内存中加载DLL。 但是有些时候,我们的确需要从内存中加载DLL,比如: 对发布的文件数量有限制。我们可以将DLL打包到exe的资源中,程序运行时从调用LoadResource等API读取DLL文件到内存中,然后从内存中加载DLL。 需要对DLL进行压缩...

while(1) { smile(); } 4万+

Detours学习之十三:Detours API用于将dll和有效负载插入新进程的api

用于将dll和有效负载插入新进程的api DetourCreateProcessWithDllEx DetourCreateProcessWithDlls DetourCopyPayloadToProcess DetourCopyPayloadToProcessEx DetourFinishHelperProcess DetourIsHelperProcess DetourRestoreAfterWith 一、DetourCreateProcessWithDllEx 创建一个新进程并将DLL

jyl_sh的专栏 3461

修改导入表载入DLL

关于修改EXE文件的导入表,实际上是一个很古老的话题了(如果您是此中高手,请不要在这篇文章浪费时间了,如果您发现了其中的问题,还请多多指教).一些PE相关的软件,也都实现了这样的功能,例如Stud_PE.    Stud_PE通过添加一个新节并将导入表连同添加的内容一并复制到新节的方法来实现对DLL的导入.    使用这样的方法只要是PE格式的EXE文件,都可以实现导入DLL的功能,但此方法,实现

白日梦 7125

把dll模块注入到游戏进程的方法_插APC注入

APC是异步过程调用,系统创建线程的时候会为线程创建一个APC队列,当线程调用SleepEx,WaitSingleObjectEx等函数时,并把线程状态被设置为可提醒状态时,线程并不会睡眠,而是检查APC队列是否为空,如果不为空,转去执行APC队列中的每一项,因此给目标进程中的线程插入APC,就可以实现进程注入。

douluo998的博客 1174

动态库dll与静态库lib编程5:进程注入技术

动态库dll与静态库lib编程5:进程注入技术。

qq_59940419的博客 1806

new:一种DLL插入方案

 by killvxk: typedef unsigned long DWORD;typedef unsigned short WORD;typedef unsigned char BYTE;__declspec(dllimport) DWORD PsLookupProcessByProcessId(HANDLE ProcessId,PEPROCESS* pProcess);__decls

1250

S-function入门及案例详解(3)——S-function进阶案例

目录1.案例描述2.案例详解3.输出波形4.对输入参数进行Mask打包 1.案例描述 设计一个蹦极系统 h为离地面高度,输入参数为长度、质量、离地面高度。 2.案例详解 步骤1.可以修改sfuntmpl函数的名称(这里修改为bengji),并在括号内增加输入参数 参数len,weight,dist分别表示长度、质量、离地面高度;长度用来初始化x0,质量用来初始化m,离地面高度用来初始化h。 function [sys,x0,str,ts,simStateCompliance] = bengji(t,x,u

Wendy的博客 1万+

[DLL 劫持] 修改 IAT ,让程序启动时加载自己的 DLL

请转到以下链接食用 ???? ????:https://www.cnblogs.com/LyShark/p/13697577.html

LYSM 1288

信号完整性SI-PI

SI设计的主要难点在于需要综合信号的幅度、噪声、边沿、延时等影响信号质量的多种因素,并且这种因素常常相互依赖、互相影响,交叉在一起。1.1、信号过冲 (欠阻尼状态,可并联一个合适的电容):过冲会造成强烈的电磁干扰,另一方面会损伤后面的电路的输入及,甚至失效。信号完整性SI:是指电路系统中信号的质量,如果在要求的时间内,信号能不失真的从源端传输到接收端。优点:提供较慢的上升时间,减少反系量,产生更小的EMI,从而降低过冲,增加信号质量。导线之间的间距过小, 就会产生串扰,间距越小、串扰越大。

weixin_42304393的博客 4886

【机械臂算法】基于最小惯性参数集的动力学辨识仿真实践

本文深入探讨了机械臂动力学参数辨识的核心挑战与解决方案,重点阐述了基于最小惯性参数集的理论与方法。通过分析PUMA560实例,详细介绍了利用QR分解法或符号推导法获取可辨识参数集,并系统讲解了从激励轨迹设计、仿真数据采集、线性系统求解到模型验证的完整实践流程,为高精度动力学建模与控制奠定了坚实基础。

weixin_29054399的博客 380

c语言References添加dll,c – 如何修改运行时加载的DLL的导入地址表

我想在运行时挂钩从加载的DLL中调用的函数,我使用了“Windows Via C/C++”一书中的CAPIHook类(通过安装系统范围挂钩完成的DLL注入和通过修改IAT挂钩)但是这个只有在可执行文件的IAT中存在DLL名称/符号时,代码才有效. (即用于隐式DLL链接)这是DLL代码:CAPIHook::CAPIHook(PSTR pszCalleeModName,PSTR pszFuncNam...

weixin_35661054的博客 352

AutosarMCAL开发——基于EB CRC驱动

本文为博主个人理解总结记录,如有不正,欢迎指正。

qq_45583706的博客 1399

一个向别的进程插入dll的代码 .

--------- Functions in C --------------- CONTEXT OriginalContext; //Get/SetThreadContext's parameter char OriginalCodePage[4096]; DWORD sizeofCP=0; VOID* mySec; //my section...Offset of Code

或许 562

前端开发 - 完美解决video.js和flv.js视频同时播放数量限制的问题,即浏览器针对同一域名的请求限制问题(解决flv.js/video.js在页面播放最多不超过6个问题、浏览器并发请求限制数

flv.js,video.js,vue,reactive,uniapp,前端开发,flv视频同时播放有限制怎么办,浏览器限制多个视频同时播放怎么办,使用flv.js在前端播放,最多只能播放6个视频,突破浏览器域名并发限制,如何解决flvjs与videojs视频播放同时播放数量限制,video.js 一个页面同时播放多个视频的实例代码,解决网页视频最大只能播放6路的问题,浏览器只能播放6路http-flv流的解决方法,一个浏览器播放5个或者6个flv的视频就不能播放了,video.js 无法在页面同时播放多个

✅ 精选推荐文章 5004

复旦微实现串口在线升级BOOT.BIN

将该 demo 生成的 app(升级用)和 fsbl、最简化 bit 文件(可选)打包成 BOOT.BIN,作为 golden image 烧写在 qspi flash 偏移 0 地址开始的位置,其中最简化 bit 文件为在线升级功能提供必要的物理通道(如果不需要,可以不打包该文件),golden image 一旦发布基本不需要进行升级,由该 golden image 负责和上位机进行通信交互,完成业务 app、业务 bit 文件、uboot 以及操作系统 image 等文件在线升级,在qspi flash

wangjie36的博客 3177

一个向别的进程插入dll的代码收藏

#include "stdafx.h"#include "windows.h"#include "tlhelp32.h"#include "ntpsapi.h"struct PE_Header{unsigned long signature;unsigned short machine;unsigned short num

大浪淘沙的专栏 991

STM32实战开发(128):智能位移检测 - 使用STM32实现位移检测

STM32作为一款功能强大的微控制器,由于其出色的处理能力、丰富的外设接口和低功耗特点,成为实现智能位移检测系统的理想选择。未来,可以通过结合更多传感器、多种数据处理算法以及云平台技术,进一步提升系统的智能化水平,优化位移测量的精度和稳定性。本篇博客将介绍如何使用STM32微控制器实现智能位移检测系统,涉及硬件设计、传感器选择、软件开发等多个方面,提供详细的设计步骤,并给出完整的代码示例,帮助开发者快速搭建智能位移检测系统。蜂鸣器连接到STM32的GPIO端口,当位移超过设定的阈值时,蜂鸣器发出警报。

2201_76125393的博客 911

NC.EXE结合线程插入技术做的一个后门

LOOK         这是我写一文章,把NC.EXE结合线程插入技术做的一个后门,,,     你看看吧         不知道大家用过ncx99.exe没有,这个小工具很有用,运行后,它BIND到一个端口,并接管cmd.exe的输入输出,使得远程用户得到一个SHELL来实现各种操作,不需要特别的客户端,只要用WINDOWS自带的TELNET客户端就可以了。     下面我给出

lionzl的专栏 1001

T113-S3-RTL8211网口phy芯片调试

在嵌入式系统开发中,网络连接是至关重要的一部分。T113-S3开发板搭载了RTL8211系列的网口PHY芯片,用于实现以太网连接。在开发过程中,对于网口的稳定性和性能的调试至关重要。本篇博客将介绍如何调试T113-S3开发板中的RTL8211网口PHY芯片,以确保网络连接的正常工作。

flypig has a dream! 4621

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

无Dll插入进程,下载者VC源代码

 http://hi.baidu.com/core22/blog/item/f5399d23c1f9bb40ac34de73.html 无Dll插入进程,下载者VC源代码2007-12-30 15:29     生成MiNI下载者,则需要自己做一个工具了.读懂代码,把相应的部份加密即可.参考delphi版本的下载者源代码,编出来有16K左右。压缩也有10K多

Richard的专栏 1589

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

木马隐藏技术(3) -- 进程注入

此为《木马技术揭秘与防御》系列读书笔记 进程注入prerequirement 类似的说法: 线程插入、DLL注入、远程线程插入 线程插入: 让一个线程在别的进程中执行 DLL文件隐藏的原理: dll文件不能单独运行,需要由进程(宿主)加载并调用。因为不能单独运行,dll文件就不会在进程管理器中出现,于是入侵检测软件和进程列表中都只有宿主进程的id,而找不到dll。 进程注...

weixin_30511107的博客 705

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

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

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

NT环境下进程隐藏的实现

 在NT环境下隐藏进程,也就是说在用户不知情的条件下,执行自己的代码的方法有很多种,比如说使用注册表插入DLL,使用Windows挂钩等等。其中比较有代表性的是Jeffrey Richer在《Windows核心编程》中介绍的LoadLibrary方法和罗云彬在《windows环境下32位汇编语言程序设计》中介绍的方法。两种方法的共同特点是:都采用远程线程,让自己的代码作为宿主进程的线程在宿主进程的

227
上一篇: loadexe (delphi)
下一篇: usb监视等相关开发材料
iiprogram
博客等级 码龄25年 1068粉丝 1515原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址