Пример #1
0
        (13000, 5000, 5000),
        (12000, 5000, 5000),
        (11000, 5000, 5000),
        (10000, 5000, 5000),
        (9000, 5000, 5000),
        (8000, 5000, 5000),
        (7000, 5000, 5000),
        (6000, 4000, 4000),
        (5000, 3500, 3500),
        (4000, 5000, 5000),
        (3000, 5000, 5000),
        (2000, 5000, 5000)
    ][0:1])

if __package__ is None:
    import sys
    from os import path
    sys.path.append(path.dirname(path.abspath(__file__)))
    from common import covert_channel
else:
    from .common import covert_channel
channel = covert_channel("Load",
                         data,
                         runsPerTest=1,
                         readerCore=0,
                         senderCore=2,
                         readerArgs=readArgs,
                         senderArgs=sendArgs)
if __name__ == '__main__':
    channel.run()
Пример #2
0
        ][0:1])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
        import genetic
        import arguments
else:
        from .common import covert_channel
        from . import genetic
        from . import arguments
channel = covert_channel("L1", data
		       , timeBetweenRuns=0.3
                       , runsPerTest=1
                       , readerCore=0
                       , senderCore=4)

if __name__ == '__main__':
        args = arguments.mkparser("L1").parse_args()
        if ('buddy' in args and args.buddy != None):
                channel = covert_channel("L1", data
                                         , buddy=args.buddy
                                         , timeBetweenRuns=0.3
                                         , runsPerTest=1
                                         , readerCore=0
                                         , senderCore=4)
        if (args.learn):
                env = genetic.Environment(channel, size=100, maxgenerations=100, optimum=1-0.015)
                env.run()
Пример #3
0
                #"16000", "6000", "6000",
                #"15000", "6000", "6000",
                #"14000", "6000", "6000",
                #"13000", "6000", "6000",
                #"12000", "6000", "6000",
                #"11000", "6000", "6000",
                #"10000", "6000", "6000",
                #"9000", "6000", "6000",
                (23000, 6000, 6000),
                (8000, 6000, 6000),
                (7000, 6000, 6000),
                (6000, 5500, 5500),
        ][0:1])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
else:
        from .common import covert_channel
channel = covert_channel("Store", data
                         , runsPerTest=1
                         , readerCore=0
                         , senderCore=4
                         , readerArgs=readArgs
                         , senderArgs=sendArgs)

if __name__ == '__main__':
        channel.run()
Пример #4
0
if __package__ is None:
    import sys
    from os import path
    sys.path.append(path.dirname(path.abspath(__file__)))
    from common import covert_channel
    import genetic
    import arguments
else:
    from .common import covert_channel
    from . import genetic
    from . import arguments
channel = covert_channel("MemBus",
                         data,
                         coeffs=coeffs,
                         timeBetweenRuns=0.3,
                         runsPerTest=1,
                         readerCore=0,
                         senderCore=1,
                         readerArgs=readArgs,
                         senderArgs=sendArgs)

if __name__ == '__main__':
    args = arguments.mkparser("MemBus").parse_args()
    if ('buddy' in args and args.buddy != None):
        channel = covert_channel("MemBus",
                                 data,
                                 buddy=args.buddy,
                                 timeBetweenRuns=0.3,
                                 runsPerTest=1,
                                 readerCore=0,
                                 senderCore=2,
Пример #5
0
                #"15000", "5000", "5000",
                #"14000", "5000", "5000",
                #"13000", "5000", "5000",
                #"12000", "5000", "5000",
                #"11000", "5000", "5000",
                #"10000", "5000", "5000",
                #"9000", "5000", "5000",
                #"8000", "5000", "5000",
                #"7000", "5000", "5000",
                #"6000", "4000", "4000",
                #"5000", "5000", "5000",
                #"4000", "5000", "5000",
                #"3000", "5000", "5000",
                #"2000", "5000", "5000"
        ])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
else:
        from .common import covert_channel
channel = covert_channel("Flops", data
                       , runsPerTest=10
                       , readerCore=0
                       , senderCore=1)

if __name__ == "__main__":
        channel.run()
Пример #6
0
        (12000, 5000, 5000),
        (11000, 5000, 5000),
        (10000, 5000, 5000),
        (9000, 5000, 5000),
        (8000, 5000, 5000),
        (7000, 5000, 5000),
        (6000, 4000, 4000),
        (5000, 5000, 5000),
        (4000, 5000, 5000),
        (3000, 5000, 5000),
        (2000, 5000, 5000)
    ])

if __package__ is None:
    import sys
    from os import path
    sys.path.append(path.dirname(path.abspath(__file__)))
    from common import covert_channel
else:
    from .common import covert_channel
channel = covert_channel("MemSSE",
                         data,
                         runsPerTest=10,
                         readerCore=0,
                         senderCore=2,
                         readerArgs=["period", "reader"],
                         senderArgs=["period", "sender"])

if __name__ == '__main__':
    channel.run()
Пример #7
0
        ][16:17])
if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
        import genetic
        import arguments
else:
        from .common import covert_channel
        from . import genetic
        from . import arguments
channel = covert_channel("MemBus", data
                         , coeffs=coeffs
                         , timeBetweenRuns=0.3
                         , runsPerTest=1
                         , readerCore=0
                         , senderCore=1
                         , readerArgs=readArgs
                         , senderArgs=sendArgs)

if __name__ == '__main__':
        args = arguments.mkparser("MemBus").parse_args()
        if ('buddy' in args and args.buddy != None):
                channel = covert_channel("MemBus", data
                                         , buddy=args.buddy
                                         , timeBetweenRuns=0.3
                                         , runsPerTest=1
                                         , readerCore=0
                                         , senderCore=2
                                         , readerArgs=readArgs
                                         , senderArgs=sendArgs)
Пример #8
0
                (13000, 5000, 5000),
                (12000, 5000, 5000),
                (11000, 5000, 5000),
                (10000, 5000, 5000),
                (9000,  5000, 5000),
                (8000,  5000, 5000),
                (7000,  5000, 5000),
                (6000,  4000, 4000),
                (5000,  5000, 5000),
                (4000,  5000, 5000),
                (3000,  5000, 5000),
                (2000,  5000, 5000)
        ])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
else:
        from .common import covert_channel
channel = covert_channel("MemSSE", data
                         , runsPerTest=10
                         , readerCore=0
                         , senderCore=2
                         , readerArgs=["period","reader"]
                         , senderArgs=["period","sender"])

if __name__ == '__main__':
        channel.run()
Пример #9
0
        #"15000", "6000", "6000",
        #"14000", "6000", "6000",
        #"13000", "6000", "6000",
        #"12000", "6000", "6000",
        #"11000", "6000", "6000",
        #"10000", "6000", "6000",
        #"9000", "6000", "6000",
        (23000, 6000, 6000),
        (8000, 6000, 6000),
        (7000, 6000, 6000),
        (6000, 5500, 5500),
    ][0:1])

if __package__ is None:
    import sys
    from os import path
    sys.path.append(path.dirname(path.abspath(__file__)))
    from common import covert_channel
else:
    from .common import covert_channel
channel = covert_channel("Store",
                         data,
                         runsPerTest=1,
                         readerCore=0,
                         senderCore=4,
                         readerArgs=readArgs,
                         senderArgs=sendArgs)

if __name__ == '__main__':
    channel.run()
Пример #10
0
if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
        import genetic
        import arguments
else:
        from .common import covert_channel
        from . import genetic
        from . import arguments
channel = covert_channel("Flush+Reload", data
                         , coeffs=[1] * 2
                         , runsPerTest=1
                         , readerCore=0
                         , senderCore=2
                         , readerArgs=readArgs
                         , senderArgs=sendArgs)
if __name__ == '__main__':
        args = arguments.mkparser("Flush+Reload").parse_args()
        if ('buddy' in args and args.buddy != None):
                channel = covert_channel("Flush+Reload", data
                                         , buddy=args.buddy
                                         , coeffs=[1000] * 4
                                         , runsPerTest=1
                                         , readerCore=0
                                         , senderCore=2)
        if (args.learn):
                env = genetic.Environment(channel, size=100, maxgenerations=100, optimum=1-0.015)
                env.run()
Пример #11
0
        ][0:1])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
        import genetic
        import arguments
else:
        from .common import covert_channel
        from . import genetic
        from . import arguments
channel = covert_channel("L3", data
                         , coeffs=[1000] * 4
                         , runsPerTest=1
                         , readerCore=0
                         , senderCore=2)
if __name__ == '__main__':
        args = arguments.mkparser("L3").parse_args()
        if ('buddy' in args and args.buddy != None):
                channel = covert_channel("L3", data
                                         , buddy=args.buddy
                                         , coeffs=[1000] * 4
                                         , runsPerTest=1
                                         , readerCore=0
                                         , senderCore=2)
        if (args.learn):
                env = genetic.Environment(channel, size=100, maxgenerations=100, optimum=1-0.015)
                env.run()
                env.best.dump("L3Results.json")
Пример #12
0
                (14000, 5000, 5000),
                (13000, 5000, 5000),
                (12000, 5000, 5000),
                (11000, 5000, 5000),
                (10000, 5000, 5000),
                (9000,  5000, 5000),
                (8000,  5000, 5000),
                (7000,  5000, 5000),
                (6000,  4000, 4000),
                (5000,  3500, 3500),
                (4000,  5000, 5000),
                (3000,  5000, 5000),
                (2000,  5000, 5000)
        ][0:1])

if __package__ is None :
        import sys
        from os import path
        sys.path.append(path.dirname(path.abspath(__file__)))
        from common import covert_channel
else:
        from .common import covert_channel
channel = covert_channel("Load", data
                         , runsPerTest=1
                         , readerCore=0
                         , senderCore=2
                         , readerArgs=readArgs
                         , senderArgs=sendArgs)
if __name__ == '__main__':
        channel.run()
Пример #13
0
if __package__ is None:
    import sys
    from os import path
    sys.path.append(path.dirname(path.abspath(__file__)))
    from common import covert_channel
    import genetic
    import arguments
else:
    from .common import covert_channel
    from . import genetic
    from . import arguments

channel = covert_channel("L3",
                         data,
                         coeffs=[1000] * 4,
                         runsPerTest=1,
                         readerCore=0,
                         senderCore=2)
if __name__ == '__main__':
    args = arguments.mkparser("L3").parse_args()
    if ('buddy' in args and args.buddy != None):
        channel = covert_channel("L3",
                                 data,
                                 buddy=args.buddy,
                                 coeffs=[1000] * 4,
                                 runsPerTest=1,
                                 readerCore=0,
                                 senderCore=2)
    if (args.learn):
        env = genetic.Environment(channel,
                                  size=100,