GithubHelp home page GithubHelp logo

abdullah2993 / go-runpe Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 19.0 8 KB

execute a PE in the address space of another PE aka process hollowing

License: MIT License

Go 100.00%
runpe process-hollowing malware-development injection evasion process-holl

go-runpe's People

Contributors

abdullah2993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-runpe's Issues

No process started

I checked out the project, and run it. There appears no error in the output, but also no notepad.exe.

C:\Repositories\go-runpe>go run cmd\exec\main.go
Creating process: C:\Windows\System32\calc.exe
Process created. Process: 364, Thread: 352
Getting thread context of 352
GetThreadContext[352]: [1] The operation completed successfully.
Address to PEB[Rdx]: a37a82f000
ReadProcessMemory[364 : a37a82f010]: [1] The operation completed successfully.
ReadProcessMemoryAsAddr[364 : a37a82f010]: [7ff771710000] <nil>
Base Address of Source Image from PEB[ImageBaseAddress]: 7ff771710000
Reading destination PE
Getting OptionalHeader of destination PE
ImageBase of destination PE[OptionalHeader.ImageBase]: 140000000
Unmapping view of section 7ff771710000
NtUnmapViewOfSection[364 : 7ff771710000]: [0] The operation completed successfully.
Allocating memory in process at 7ff771710000 (size: 233472)
VirtualAllocEx[364 : 7ff771710000]: [140700736880640] The operation completed successfully.
New base address 7ff771710000
Writing PE to memory in process at 7ff771710000 (size: 1024)
WriteProcessMemory[364 : 7ff771710000]: [1] The operation completed successfully.
Writing section[.text] to memory at 7ff771711000 (size: 155136)
WriteProcessMemory[364 : 7ff771711000]: [1] The operation completed successfully.
Writing section[.rdata] to memory at 7ff771737000 (size: 39424)
WriteProcessMemory[364 : 7ff771737000]: [1] The operation completed successfully.
Writing section[.data] to memory at 7ff771741000 (size: 3584)
WriteProcessMemory[364 : 7ff771741000]: [1] The operation completed successfully.
Writing section[.pdata] to memory at 7ff771744000 (size: 4608)
WriteProcessMemory[364 : 7ff771744000]: [1] The operation completed successfully.
Writing section[.didat] to memory at 7ff771746000 (size: 512)
WriteProcessMemory[364 : 7ff771746000]: [1] The operation completed successfully.
Writing section[.rsrc] to memory at 7ff771747000 (size: 3072)
WriteProcessMemory[364 : 7ff771747000]: [1] The operation completed successfully.
Writing section[.reloc] to memory at 7ff771748000 (size: 1024)
WriteProcessMemory[364 : 7ff771748000]: [1] The operation completed successfully.
Calcuating relocation delta
Relocation delta: -140695368171520
Writing new ImageBase to Rdx 7ff771710000
WriteProcessMemory[364 : a37a82f010]: [1] The operation completed successfully.
Setting new entrypoint to Rcx 7ff771735410
Setting thread context 352
SetThreadContext[352]: [1] The operation completed successfully.
Resuming thread 352
ResumeThread[352]: [1] The operation completed successfully.

C:\Repositories\go-runpe>

Relocation delta: -140695368171520 looks a it weird though.

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.