From fa1a10278f0a157ee2d47c8fd8cc7fc7c9f9f752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Tue, 31 Oct 2017 14:44:52 +0100 Subject: Make the MIT license clearly stated --- script/investigate.sh | 22 ++++++++++++++++++++++ script/livegraph.sh | 22 ++++++++++++++++++++++ script/measure-packets.sh | 22 ++++++++++++++++++++++ script/mid.bro | 22 ++++++++++++++++++++++ script/pasad-parsed.bro | 22 ++++++++++++++++++++++ script/pasad-simple.bro | 22 ++++++++++++++++++++++ script/run-midbro.sh | 22 ++++++++++++++++++++++ 7 files changed, 154 insertions(+) (limited to 'script') diff --git a/script/investigate.sh b/script/investigate.sh index ced1449..fb06f2c 100755 --- a/script/investigate.sh +++ b/script/investigate.sh @@ -1,5 +1,27 @@ #!/bin/bash +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + if [ $# -ne 3 ] then echo "Extracts the data for one machine and one register from a Modbus dump" diff --git a/script/livegraph.sh b/script/livegraph.sh index 54560af..db42f01 100755 --- a/script/livegraph.sh +++ b/script/livegraph.sh @@ -1,5 +1,27 @@ #!/bin/bash +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + if [[ $# -ne 1 ]] then echo "Reads the sensor.dat and distance.dat" diff --git a/script/measure-packets.sh b/script/measure-packets.sh index e401d12..cafab95 100644 --- a/script/measure-packets.sh +++ b/script/measure-packets.sh @@ -1,5 +1,27 @@ #!/bin/bash +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + # This function has to execute the given arguments on the target machine. # For local execution, this could look like: # sudo bash -c "$@" diff --git a/script/mid.bro b/script/mid.bro index 3bb5b9a..a87295e 100644 --- a/script/mid.bro +++ b/script/mid.bro @@ -1,3 +1,25 @@ +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + # Example usage: # bro -b -C -i eth0 modbus.bro Log::default_writer=Log::WRITER_NONE @load frameworks/communication/listen diff --git a/script/pasad-parsed.bro b/script/pasad-parsed.bro index 33e4745..f023e05 100644 --- a/script/pasad-parsed.bro +++ b/script/pasad-parsed.bro @@ -1,3 +1,25 @@ +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + ## Implementation that outputs the register identification and the register ## value. The correct register count is not checked and might lead to indexing ## errors. diff --git a/script/pasad-simple.bro b/script/pasad-simple.bro index 4a0505a..63c8c27 100644 --- a/script/pasad-simple.bro +++ b/script/pasad-simple.bro @@ -1,3 +1,25 @@ +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + ## Simple implementation that outputs the raw request and response data ## to a log file. ## Currently, this only handles the read_holding_registers event. Other diff --git a/script/run-midbro.sh b/script/run-midbro.sh index 9d5d4b0..a63d28a 100644 --- a/script/run-midbro.sh +++ b/script/run-midbro.sh @@ -1,5 +1,27 @@ #!/bin/bash +# Copyright 2017 Robert Gustafsson +# Copyright 2017 Robin Krahl +# Copyright 2017 Andreas Lindhé +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + if [ $# -ne 2 ] then echo "Starts Bro with the given arguments in the background and, when" -- cgit v1.2.1