forked from GLab/ToMaTo
-
Notifications
You must be signed in to change notification settings - Fork 0
Programmabledevice
dswd edited this page Jul 15, 2011
·
1 revision
Programmable Devices use Repy scripts.
Repy is a turing-complete subset of Python that allows to run in a sandboxed environment. ToMaTo adds the following functionality to Repy:
- Reading raw packets from networking devices
- Writing raw packets to networking devices
- Listing networking devices and information retrieval
- Encoding and decoding byte structures using the struct library
The only virtual hardware of Programmable Devices are their networking devices. These devices can handle Ethernet packets up to 1514 Bytes.
For Programmable Devices, the console only displays the output of the script but does not allow any input.
The Repy scripts of the device can be uploaded and downloaded as images. A quick sanity check will be performed before the upload.
The templates for Programmable Devices are located at https://fileserver.german-lab.de/files/glabnetman/templates/repy