Code Monkey home page Code Monkey logo

ldrpkernel32dllname's Introduction

code in Payload<32|64>.dll search for

UNICODE_STRING LdrpKernel32DllName = RTL_CONSTANT_STRING(L"KERNEL32.DLL");

inside ntdll, and if found - in new created process overwrite KERNEL32.DLL to own "bootstrap" dll name ( LdrpKernel<32|64>.dll ) as result LdrpKernel<32|64>.dll loaded to new process. currently it mast export 2 api: BaseThreadInitThunk and TermsrvGetWindowsDirectoryW

EXTERN_C
WINBASEAPI
NTSTATUS
FASTCALL
BaseThreadInitThunk(BOOL bInitializeTermsrv, 
  LPTHREAD_START_ROUTINE lpStartAddress, 
  PVOID lpParameter
  );

BaseThreadInitThunk with bInitializeTermsrv = true called just before loader begin initialize static linked dlls from exe we can here load Payload<32|64>.dll and initiaize it as result code of Payload<32|64>.dll will be called not only before exe entry point (for this enough inject apc in first thread of new process) but and before tls initializers and other dlls. sense only in early control. inject work for all 4 cases ( 32-> 32, 32->64, 64->64, 64->32) for 32->64 case need execute 64 bit code in wow process ( 64IN32 project)

test<64|32>.bat for test

Payload<32|64>.dll loaded to regsvr32.exe and started cmd.exe with inject Payload<32|64>.dll hook CreateProcessInternalW for do inject to new created processes (if any)

ldrpkernel32dllname's People

Contributors

rbmm avatar

Stargazers

bbkim avatar  avatar Chrollo.dll avatar  avatar  avatar Soumyani1 avatar Steve S. avatar Cosmos avatar  avatar  avatar Nicolas Vincent avatar Dan avatar avery avatar kallsyms avatar еверсинц33 avatar  avatar 0x023 avatar  avatar tony eve avatar  avatar 突突兔 avatar  avatar Rabie avatar  avatar  avatar Sebastien Larinier avatar  avatar Ceri Coburn avatar  avatar Omar Ibrahim avatar Life avatar  avatar winterknife avatar CyFun avatar  avatar boy1337 avatar  avatar  avatar guly avatar s1l3nt78 avatar 大剑 avatar  avatar  avatar  avatar  avatar  avatar yanxy avatar Or Guetta avatar come2arkside avatar yimingqpa avatar Boschko avatar  avatar  avatar  avatar Byungho avatar Chrizz avatar  avatar M0N7Y5 avatar  avatar Huy Doan avatar  avatar Duncan Ogilvie avatar Borja Merino avatar  avatar InvokeThreatGuy avatar Nader Shalabi avatar Neoma Fong avatar Steven Patterson avatar Mercer avatar Nick Aliferopoulos avatar  avatar sql7 avatar  avatar Crispr  avatar  avatar Asatistic avatar Ryota Sakai avatar AjMaChInE avatar crazyman avatar Robert Wilson avatar WtZ avatar

Watchers

 avatar boy1337 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.