stillyoungman / restrictor

This is a soon-to-be Agent of a distributed system with API (Java), Admin panel (Possibly, Java) and Background agents that talk to each-other and restrict PC-using, accordingly to data provided

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restrictor

Get Golang

To install GO v1.11.5, follow this instructions or you can use this bash code:

Linux

wget -i https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz\
&& sudo mv go1.11.5.linux-amd64.tar.gz /usr/local\
&& sudo tar -xvf /usr/local/go1.11.5.linux-amd64.tar.gz\
&& export PATH=/usr/local/go/bin:$PATH 
&& sudo echo "export PATH=/usr/local/go/bin:$PATH" >> ~/.bashrc\
&& mkdir -p $HOME/go/src $$ cd $HOME/go/src\
&& echo "package main
 import \"fmt\"
 func main() {
 fmt.Println(\"Hello world\")
 }" > test.go \
&& go run test.go

MacOS

Homebrew is required to install from terminal

brew install wget
wget -i https://dl.google.com/go/go1.11.5.darwin-amd64.pkg
sudo installer -pkg go1.11.5.darwin-amd64.pkg -target /usr/local/go

Or get this file and double-click it

Windows

Get this file and double-click it

Check-list:

  • Agent closes/opens restricted apps according to data
  • API
  • Database intagration
  • Admin pannel

Pre-pre-pre alpha stage

This is basic applcation, that runs silently, without any notifications and/or signals Made easily with this package

go get -u https://github.com/shirou/gopsutil/...

To test this app, you can edit JSON Mocking-data file:

{
 "app": "name_of_process_from terminal",
 "windows": 1,
 "rule": "Close for restricted Open for required",
 "time": "working for working days weekend otherwise",
 "hourfrom": "minimum hour of a day",
 "hourto": "maximum",
 "executable": "path/to/executable"
}

About

This is a soon-to-be Agent of a distributed system with API (Java), Admin panel (Possibly, Java) and Background agents that talk to each-other and restrict PC-using, accordingly to data provided


Languages

Language:Go 100.0%