GithubHelp home page GithubHelp logo

analyticsearch / runsharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fullmetalcache/runsharp

0.0 0.0 0.0 14 KB

Simple program that allows you to run commands as another user without being prompted for their password. This is useful in cases where you don't always get feedback from a prompt, such as the case with some remote shells.

License: MIT License

C# 100.00%

runsharp's Introduction

RunSharp

Simple program that allows you to run commands as another user without being prompted for their password. This is useful in cases where you don't always get feedback from a prompt, such as the case with some remote shells.

Compilation

Compilation instructions will be made soon. For now, just grab the compiled binary under the Releases folder.

Compatibility

Please note that even though the commands are given for other systems, this has only been tested on Windows 10 x64 at this time. It may work for other versions but no gaurentees for now.

Will update this after testing.

Usage

Run Without Application Whitelisting Bypass

The following syntax is used to run the program without the Application Whitelisting Bypass Feature:

> RunSharp.exe Domain UserName Password Command

Example:

> RunSharp.exe CORP fmc defnotmypassword! "whoami >> c:\\Users\\Public\\test.txt"

Run With Whitelisting Bypass (CURRENTLY NOT WORKING)

The following describes how to use the program with the InstallUtil Application Whitelisting (AWS) Bypass Technique.

Please note that the AWS bypass is only for running this program and not necessarily subsequent programs. You would need to chain together InstallUtil commands to make that happen.

The arguments Domain, Username, Password, and Command need to be contained in a file named input.txt. Each argument should be on its own line and the arguments should be in the order shown above.

The input.txt file should be in the same directory as the RunSharp.exe program.

Here is an example file:

> CORP
> fmc
> defnotmypassword!
> "whoami >> c:\\Users\\Public\\test.txt"

The following is the command used to run the program on Windows 7 x86:

> C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /LogToConsole=false /U RunSharp.exe

The following is the command used to run the program on Windows 7 x64:

> C:\Windows\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe /LogToConsole=false /U RunSharp.exe

The following is the command used to run the program on Windows 10 x86:

> C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /LogToConsole=false /U RunSharp.exe

The following is the command used to run the program on Windows 7 x64:

> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe /LogToConsole=false /U RunSharp.exe

runsharp's People

Contributors

fullmetalcache avatar

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.