Code Monkey home page Code Monkey logo

sharp-smbexec's Introduction

Sharp-SMBExec

A native C# conversion of Kevin Robertsons Invoke-SMBExec powershell script. (https://github.com/Kevin-Robertson/Invoke-TheHash/blob/master/Invoke-SMBExec.ps1)

Built for .NET 3.5

Usage

Sharp-SMBExec.exe hash:"hash" username:"username" domain:"domain.tld" target:"target.domain.tld" command:"command"

Description

This Assembly will allow you to execute a command on a target machine using SMB by providing an NTLM hash for the specified user.

Help

Option		    Description                                                                                                                                                                                                      
username*		Username to use for authentication                                                                     
hash*			NTLM Password hash for authentication. This module will accept either LM:NTLM or NTLM format           
domain			Domain to use for authentication. This parameter is not needed with local accounts or when using @domain after the username
target			Hostname or IP Address of the target.                                                                  
command			Command to execute on the target. If a command is not specified, the function will check to see if the username and hash provide local admin access on the target    
ServiceName		Default = 20 Character Random. The Name of the service to create and delete on the target.  
-CheckAdmin             Check admin access only, don't execute command
-Help (-h)		Switch, Enabled debugging [Default='False']  
-Debug			Print Debugging Information along with output
-ForceSMB1		Force SMB1. The default behavior is to perform SMB Version negotiation and use SMB2 if it's supported by the target [Default='False']
-ComSpec		Prepend %COMSPEC% /C to Command [Default='False']  

sharp-smbexec's People

Contributors

checkymander avatar moloch-- 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.