Comments (8)
+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.
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.
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.
I am trying it on Windows 10 and Office 365 MSO (16.0) 64-bit.
from spoofing-office-macro.
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.
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.
@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.
Merged! (#5)
from spoofing-office-macro.
Related Issues (6)
- PoC no longer works HOT 4
- Same issue as the others
- Cant work HOT 8
- Convert VBA code to vbs code or js code? HOT 1
- defender is flagging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spoofing-office-macro.