Comments (5)
Good to hear you got it working! 😄
from boo.
I don't see any obvious problem. So either there's something wrong with your struct definition, or there's something wrong with the function call, or there's something wrong with the original code. So try this:
- First, verify that it works in C#.
- Then, add the C# test as a dependency of your Boo project. Try calling the method from Boo, with the C# version of the struct.
- Then try calling the C# method with the Boo version of the struct.
At one of these three points, it should break. That should tell you where the problem lies.
from boo.
That is a great idea, thank you!
from boo.
Well I am using this repo now: https://github.com/pwndizzle/c-sharp-memory-injection/blob/master/thread-hijack.cs
And I can confirm it works properly.
Same issue if I translate the structs/enums into my Boo script
I am not sure how to add that project to my Boo script as a dependency, do you have any resource or example I can see?
I don't wan't to waste much of your time
The idea of adding external dependencies to my Boo scripts sounds great. So far, I have been loading the .net assembly of some compiled program and then invoking the methods I want. I can just try that, but not sure how much informations it would give us about the issue
Boo is truly amazing, especially the compile from memory feature
Is like .net python, I love it
from boo.
Ok, turns out that the struct was well defined,
the issue was how I was calling GetThreadContext. I needed to add the line in the middle:
context = CONTEXT64()
context.ContextFlags = CONTEXT_FLAGS.CONTEXT_FULL
success = GetThreadContext(threadHandle, context)
Sorry to wast your time!
from boo.
Related Issues (20)
- Boo language roadmap HOT 3
- Having trouble installing on Linux and windows HOT 14
- Language Specification HOT 1
- .NET 5 future support ? HOT 11
- Problem with generic constraints on a generic specialization of the same type
- State of Boo HOT 37
- assertion and SIGABRT when building Boo.NAnt.Tasks with Mono 6 HOT 2
- ./nant fails on Compiler and booc HOT 10
- Migrate from NAnt? HOT 10
- How to use Delegates HOT 2
- Assert in SRE during Boo compiler run with Mono 6.x HOT 2
- Boo Compiling issues HOT 4
- Docs link occasionally redirects to chaturbate HOT 1
- How can i ref to value when calling function from DllImport HOT 24
- Compiled Boo Distribution HOT 3
- latest unstable release HOT 1
- domain is broken boo-lang.org HOT 6
- Targetting .net core HOT 1
- :(((( 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 boo.