Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 985 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access WinAPI through the powershell from a WSH JScript?

#1
I'd like to acces some WinAPI functions from a JScript that runs on the Windows Script Host.
Since that is not possible directly, I'd like to do it using the powershell.
I don't want to spawn a new powershell process everytime I access a WinAPI function, so I'm looking for a way to spawn one hidden powershell instance from JScript and keep using that for all my API calls.

Has anyone tried something like that before?
I'd really like to see a simple example on something simple like [MessageBox][1].
Is there a COM interface to efficiently communicate with the powershell?

I also have some more advaced questions...
How could I pass a callback function to a WinAPI function, so that my JScript function gets called whenever the WinAPI calls that callback?
What about other complicated, but commonly seem datatypes in the WinAPI like structs?
And what about passing/receiving binary data?

I'd really like to see any proofs of concept and ideas you have for that...

[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through