Giter VIP home page Giter VIP logo

start-rdpsessiontakeover's Introduction

Pyrrh1c

Start-RdpSessionTakeover

A short script to automate the process of RDP session hijacking. When run without any parameters it will enumerate all existing RDP sessions and prompt for a session to be taken over. This script requires local admin to run.

Main Features

  • Easy enumeration of sessions
  • Automatic configuration of RDP shadowing
  • Fast and easy lateral movement and privelege escalation

When To Use This Script

Perhaps you've owned a users who is a local administrator of a server. Another user who is a domain admin has a session on that server. With this you can quickly and easily begin viewing and/or interacting with their RDP session.

start-rdpsessiontakeover's People

Contributors

pyrrh1c avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

crj0b

start-rdpsessiontakeover's Issues

Doesn't work on some machines

In testing the script on a variety of machines I have discovered that it does not work as expected on all machines. On some systems it simply launches, then the shadow window opens, then it disappears. It seems the takeover works, but that the instance of mstsc then lives in the ether somewhere. Will need to figure out why this happens and address it.

Registry key to enable RDP shadowing not working on 2012 R2

When the script is run on a Windows Server 2012 R2 server it fails to create the registry key "shadow". The error returned is listed below. This occurs even when the user is a local admin. The user can create and modify the registry key with regedit with no issue.

New-ItemProperty : Requested registry access is not allowed.
At C:\Users\twellick_admin\Desktop\Start-RdpSessionHijack.ps1:20 char:1

  • New-ItemProperty -Path $RegPath -Name $Name -Value $value -PropertyTYpe DWORD -F ...
  •   + CategoryInfo          : PermissionDenied: (HKEY_LOCAL_MACH...rminal Services:String) [New-ItemProperty], SecurityException
      + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.NewItemPropertyCommand
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.