Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

Allow multiple RDP in windows 10 using or c++ (API, cmd, powershell)?

Powershell empire can do this using mimikatz, but i want a more stealthy way, and want to implement it by my own

there are some articles showing how to do this in windows setting and such, but i want to do it with just cmd, powershell or just using windows APIs in c++

basically as of right now, when i enable the rdp of someone and create another hidden user to connect to, i still cannot connect while the other user is logged in, powershell empire can fix this with mimikatz but i want to implement it just with cmd, powershell or c++, and right now it just says another user is logged on blah blah (even tho its a different user)


anyone has any article or something that i can read more about this?


i think there even should be a way to hook termsrv.dll to do this but i couldnt find anything useful..





ALSO as you can see in this video it is possible to do it with tools : Allow Multiple Remote Desktop Sessions - Windows 10 - YouTube


but i want to write a tool like that on my own, not use a GUI tool
https://github.com/stascorp/rdpwrap
(Sep 13, 2019 01:47 PM)int main() Wrote:  GitHub - stascorp/rdpwrap: RDP Wrapper Library


Yes i tried too understand its code but it has too much unnecessary stuff and gui stuff in it that i dont need, was wondering if there is any blogpost or something that goes in depth into doing it and explains what are we doing?

or maybe has implemented other method? i think doing DLL injection and IAT hooking should be possible here (IAT hooking of termsrv.dll) but couldnt find anything regarding this
(Sep 14, 2019 12:16 AM)Tr0jandog Wrote:  Yes i tried too understand its code but it has too much unnecessary stuff and gui stuff in it that i dont need, was wondering if there is any blogpost or something that goes in depth into doing it and explains what are we doing?

or maybe has implemented other method? i think doing DLL injection and IAT hooking should be possible here (IAT hooking of termsrv.dll) but couldnt find anything regarding this

you mean you want ready to paste code? i don't think so, learn the language and filter out what you dont need, its not hard.
(Sep 14, 2019 12:41 AM)int main() Wrote:  you mean you want ready to paste code? i don't think so, learn the language and filter out what you dont need, its not hard.

hmm what i said was exactly the opposite, i said i dont want to just copy the github code, want to find some blogpost or something that explains it.. there are many parts of it that i dont understand why they are using certain lines of codes and there is no comment on it, just trying to get it by reading thousands of line of code is pretty hard task if you ask me
(Sep 14, 2019 12:48 AM)Tr0jandog Wrote:  hmm what i said was exactly the opposite, i said i dont want to just copy the github code, want to find some blogpost or something that explains it.. there are many parts of it that i dont understand why they are using certain lines of codes and there is no comment on it, just trying to get it by reading thousands of line of code is pretty hard task if you ask me

You should have looked into it a bit more.

According to https://forums.mydigitallife.net/threads...ing.57102/ you can patch termsrv.dll manually with a hex editor and achieve multi-session with RDP. A lot of people recommend using RDPConf.exe from RDPWrap to patch and RDPCheck.exe to check the configuration.

Try this and report back.
(Sep 17, 2019 09:25 PM)Anzee Wrote:  You should have looked into it a bit more.

According to [DISCUSSION] Windows 10 termsrv.dll Patching | My Digital Life Forums you can patch termsrv.dll manually with a hex editor and achieve multi-session with RDP. A lot of people recommend using RDPConf.exe from RDPWrap to patch and RDPCheck.exe to check the configuration.

Try this and report back.

yes i saw that before, the problem with that is messing around and editing system files is a red flag for AVs, but the RDPwrap claims to achieve this without editing that termsrv.dll but doesn't say how
This :
Vincent Yiu on Twitter: "Red Tip #344: Set HKLM\System\CurrentControlSet\Control\TerminalServer /v fSingleSessionPerUser /d 0, to allow multiple sessions on a server per user. This is useful if you want to login to the jump-host, but that guy's just on all-day-long... "
(Sep 18, 2019 02:53 AM)malpwn Wrote:  This :
Vincent Yiu on Twitter: "Red Tip #344: Set HKLM\System\CurrentControlSet\Control\TerminalServer /v fSingleSessionPerUser /d 0, to allow multiple sessions on a server per user. This is useful if you want to login to the jump-host, but that guy's just on all-day-long... "

that doesn't allow multiple concurrent users, you still have to patch it, or at least didnt work for me


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Robert RougeSep 24, 2026 10:03 AM 1 298 Sep 24, 2026 10:03 AM
Last Post: Anonynuk
[.NET] by samir5000Mar 13, 2025 01:32 PM 3 328 Mar 13, 2025 01:32 PM
Last Post: Bastille
[Shell] by PELockDec 9, 2024 09:42 AM 3 661 Dec 9, 2024 09:42 AM
Last Post: PELock