Malware for schools (and universities)
Executable files can be downloaded from schoolware/releases.
To run a scenario, specify it's name and, optionally, any additional arguments it takes.
C:>schoolware --scenario=files --files-paths=test.txt run
run
command will immediately run the scenario in the foreground.
In order to run a scenario in background you first have to install the schoolware
service by registering it with svchost.
C:>schoolware --scenario=net --net-ports=123456 install
install
command will register the schoolware
binary with svchost, while specified flags (--scenario
and --net-ports
in the example above)
will be used during service's start-up. Once the service is registered, start-up flags cannot be altered.
To start the previously installed service in the background, issue the following command:
C:>schoolware start
Please note, due to limitations of svchost, schoolware binary has to be located on a start-up disk (usually the C: drive).
In order to stop and remove the service, use the stop
and remove
commands respectively.
After the service has been removed, it can be registered again with different start-up parameters.
For list of all scenarios and available options, consult built-in --help
.
- Install Go
- Prepare your Go environment
- Create a directory structure:
$GOPATH/{src,pkg}
- Adjust your environment variables (add
$GOPATH
) - Windows users can follow this tutorial
- Create a directory structure:
- With new
GOPATH
set, go-get this repositorygo get github.com/foi-oss/schoolware
- Build the project
- navigate to
$GOPATH/src/github.com/foi-oss/schoolware/bin
- and run
go build -o schoolware.exe
- navigate to