- Improved stuff for mpa attacks.

- Some todo addition.
This commit is contained in:
ccremers 2006-08-11 17:25:34 +00:00
parent 3728019380
commit 79e664c181
2 changed files with 20 additions and 9 deletions

View File

@ -2,7 +2,11 @@
"""
Test script to execute multi-protocol attacks on some test set.
Example script to show how to perform large-scale tests using the
Scyther Python API (contained in the Scyther subdirectory)
In this example, multi-protocol attack analysis is performed on a small
test set.
"""
@ -111,21 +115,26 @@ def findAllMPA(protocolset,maxcount=3):
"""
Given a set of protocols, find multi-protocol attacks
"""
(protocolset,correct) = getCorrectIsolatedClaims(protocolset)
print correct
for (protocol,claimid) in correct:
mpalist = findMPA(protocolset,protocol,claimid,maxcount=3)
if mpalist:
print "Darn, MPA on %s (%s) using %s" % (claimid,protocol,mpalist)
# Find all correct claims in each protocol
(protocolset,correct) = getCorrectIsolatedClaims(protocolset)
# For all these claims...
for (protocol,claimid) in correct:
# Try to find multi-protocol attacks
findMPA(protocolset,protocol,claimid,maxcount=3)
if __name__ == '__main__':
"""
Simple test case
Simple test case with a few protocols
"""
list = ['me.spdl','ns3.spdl','nsl3.spdl']
print "Performing multi-protocol analysis for the following protocols:", list
print
findAllMPA(list)
print
print "Analysis complete."

View File

@ -11,7 +11,9 @@ WOULD LIKE TO HAVE
- Font selector for graphs.
- Nice graph scaling for all platforms (now only supported under Linux
using the Python Imaging Library through postscript)
using the Python Imaging Library through postscript; currently
wxPython does not support any cross-platform vector format out of the
box, as SVG is still only a non-default build option.)
- Support for using an external editor.
- toggle for 'watch file'.
- toggle for 'auto-verify on change' or something like that.