NetSec

Ramblings of a NetSec addict

  • Ramblings
    • OSCP Review
    • OSCE Review
    • So you want to be a Hacker?
    • InfoSec Topics
  • Tutorials
    • Simple Buffer Overflows
    • Converting Metasploit Module to Stand Alone
  • Hacking Snippets
    • Basic Information
      • Spawning a TTY Shell
      • Finding Public Exploits
    • Metasploit
      • Creating Metasploit Payloads
    • Passwords
      • Cracking Network Passwords (Hydra)
      • Generating Wordlists
      • Identifying Hashes (Hash Identifier)
      • Cracking Hashes (oclHashcat)
      • Obtaining Windows Passwords
    • Privilege Escalation
      • Linux Privilege Escalation Scripts
    • Port Redirection
      • Port Redirection with Rinetd
      • Dynamic Port Forwarding (SSH)
      • Remote Port Forwarding (SSH)
      • Local Port Forwarding (SSH)
      • Port Forwarding with Metasploit
    • Tools
      • Netcat
  • OS Tips
    • Linux
      • Simple Linux Commands
    • Windows
      • Simple Windows Commands
    • Programs
      • Remote Desktop (rdesktop)
      • Fixing Metasploit Slow Search
      • Encoding / Decoding Base64
  • Programming
    • Python Snippets
      • Multi-Threaded Brute Forcer
      • Writing Shellcode to a File
    • Programs
  • Peach Pits
    • FTP
      • Fuzz Username / Password
      • Fuzz FTP Commands
  • Vulnerable VMs
    • Walkthroughs
      • pWnOS 2.0

Remote Desktop (rdesktop)

Peleus

Windows remote desktop is a commonly used protocol throughout many networks. It provides remote access to windows machines when enabled.

Tool
rdesktop

Basic Syntax

rdesktop -u <username> -p <password> <ip address> -g <percentage / resolution></percentage></ip></password></username>

rdesktop -u <username> -p <password> <ip address> -g <percentage / resolution></percentage></ip></password></username>

Break Down
-u : Username you wish to log in as
-p : Password you wish to use
<ip address> : Host you wish to connect to
-g : Set’s the resolution you want to interact with the machine over. You can do a percentage of your own desktop (i.e 90%) or a set resolution (i.e. 800×600)

Example

rdesktop -u Administrator -p sup3rs3cr3tp4ass 192.168.1.123 -g 90%

rdesktop -u Administrator -p sup3rs3cr3tp4ass 192.168.1.123 -g 90%

Handy Hint
This registry value when added will enable RDP

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Advanced Reading
You can do a lot more useful things with RDP such as set the colour depth (a) to help with laggy connections, etc. The above will get you a basic window but there are plenty more options. Refer to the documentation to read more.

Filed Under: Programs Tagged With: rdesktop, rdp

Copyright © 2022 · Genesis Sample on Genesis Framework · WordPress · Log in