exec

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 1 Imported by: 0

README

Execution examples

Commands

package main

import (
  "fmt"

  "github.com/D3Ext/maldev/exec"
)

func main(){
  out := exec.ExecuteCommand("uname -a") // With bash or cmd
  fmt.Println(out)
}

Powershell Commands

package main

import (
  "fmt"

  "github.com/D3Ext/maldev/exec"
)

func main(){
  out := exec.ExecutePowershell("Get-Process -Name notepad") // Using powershell
  fmt.Println(out)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(comm string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL