QGB / gohs

go http server url eval system cmd
MIT License
1 stars 1 forks source link

usage: gohs [-l [address]:port]

example:

>> curl 127.0.0.1:3000/ls%20-al
[]string{"ls", "-al"}
total 12372
drwxrwxrwx 3 root root    4096 Jun  2 09:45 .
drwxrwxrwx 4 root root    4096 Jun  1 21:48 ..
-rwxrwxrwx 1 qgb  qgb       50 Jun  2 08:52 build_win.sh
drwxrwxr-x 8 qgb  qgb     4096 Jun  2 08:53 .git
-rw-rw-r-- 1 qgb  qgb       15 Jun  2 08:52 .gitignore
-rwxrwxrwx 1 root root 6323788 Jun  2 09:32 gohs
-rwxrwxrwx 1 root root 6302208 Jun  2 09:19 gohs.exe
-rwxrwxrwx 1 root root     116 Jun  1 20:47 go.mod
-rwxrwxrwx 1 qgb  qgb      221 Jun  2 08:52 go.sum
-rwxrwxrwx 1 qgb  qgb     1068 Jun  2 09:30 hs.go
-rw-rw-r-- 1 qgb  qgb     1060 Jun  2 09:46 LICENSE
-rwxrwxrwx 1 root root      94 Jun  2 09:51 README.md