Giter Site home page Giter Site logo

Comments (8)

cha0tic87 avatar cha0tic87 commented on August 11, 2024 1

+1

This doesn't work with 64-bit Office. The typedefs need modifying and I also don't think the getPidByName() function words for 64-bit processes. The latter I can get around with WMIC but I'm unsure how to modify the typedefs or function declarations for 64-bit.

Niiiice work on the 32-bit though.

from spoofing-office-macro.

christophetd avatar christophetd commented on August 11, 2024 1

Hi,

Thanks for the update. I double checked, and indeed the Office version I own is a 32-bit version... Apologies for the confusion. I have updated the README to reflect this.

If someone could contribute to a 64-bit version, that'd be awesome - I do not have access to a 64-bit Office version at the time.

from spoofing-office-macro.

christophetd avatar christophetd commented on August 11, 2024

Hi,

As indicated in the readme, I tested this PoC on Windows 10 64 bits - can you provide your OS and office version?

Thanks

from spoofing-office-macro.

tanujain avatar tanujain commented on August 11, 2024

I am trying it on Windows 10 and Office 365 MSO (16.0) 64-bit.

from spoofing-office-macro.

cha0tic87 avatar cha0tic87 commented on August 11, 2024

Looking for any progress by anyone on this. Personally I've got to the point where the parent PID spoofing on x64 works, but the argument spoofing does not. There are no errors from any of the API calls, and I believe the issue is currently with the call to WriteProcessMemory(), but I don't know how to debug further.

from spoofing-office-macro.

christophetd avatar christophetd commented on August 11, 2024

What I would suggest to do is:

  • Put a breakpoint just before the call to WriteProcessMemory
  • Using Process Hacker, dump the PEB (cf https://blog.christophetd.fr/wp-content/uploads/2019/03/PH-mapped-PEB.png), say to a file named peb1.bin
  • Execute the call to WriteProcessMemory
  • Dump the PEB again in peb2.bin
  • Do a diff peb1.bin peb2.bin to see if anything was written to the PEB, and if yes what changed. You can PM me the files on Twitter if you'd like me to take a look

from spoofing-office-macro.

py7hagoras avatar py7hagoras commented on August 11, 2024

@christophetd I submitted a pull request yesterday for the 64 bit implementation. Tested it with Office 365 (2016) 64-bit on 64 bit system. Learnt a lot while doing this.

from spoofing-office-macro.

christophetd avatar christophetd commented on August 11, 2024

Merged! (#5)

from spoofing-office-macro.

Related Issues (6)

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.