rapid7 / meterpreter

THIS REPO IS OBSOLETE. USE https://github.com/rapid7/metasploit-payloads INSTEAD
Other
325 stars 144 forks source link

Metsrv not working because of paramater passed to init #186

Open aloneuhaus opened 8 years ago

aloneuhaus commented 8 years ago

I have a little problem. As documented, the parameter which is passed to the init function of metsrv dll is actually not a socket but a pointer to the metserv configuration. However, when i build metsrv dll and use it instead of the original one, all the meterpreter stagers (and the win tester also) pass to the init a SOCKET, which causes the hosting process to carsh because of access violation - the code of metsrv tries to access fields of the configuration, but it ia actually a socket handle. What am i doing wrong? Do i need to use a different stager? Thank you!