webshell/main.go

26 lines
320 B
Go

package main
import (
"fmt"
"github.com/gin-gonic/gin"
)
var listenPort string = "1302"
type Shell struct {
Command string
Output string
}
func main() {
fmt.Println()
router := gin.Default()
router.GET("/cmd/:id", sendCommand)
router.Run("localhost:" + listenPort)
}
func sendCommand(c *gin.Context) {
}