So here are some scripts I've been writing up for my nodes and IC
Script 1 (Node script)
Line1:
Do until global.Active_Alert = 1
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop
If global.Active_Alert = 1 then
Security_Node.logoff
security.notify
Terminate icon.unauthorized
else goto Line1
Script 2 (Attack IC Script)
Line1:
Do until global.Active_Alert = 1
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop
If global.Active_Alert = 1 then
Attack(icon.unauthorized)
else goto Line1
Script 3 (Support IC script)
Line1:
Do until global.Active_Alert = 1
If icon.new then
scan.icon
Else
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop
If global.Active_Alert = 1 then
Do until global.Active_Alert = 0
If Old_Man1.active = false then
Old_Man1.activate
Elseif Old_Man2.active = false then
Old_Man2.activate
Else
Encrypt(access.log)
Loop
else goto Line1