- Improved stuff for mpa attacks.
- Some todo addition.
This commit is contained in:
parent
3728019380
commit
79e664c181
25
gui/mpa.py
25
gui/mpa.py
@ -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
|
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__':
|
if __name__ == '__main__':
|
||||||
"""
|
"""
|
||||||
Simple test case
|
Simple test case with a few protocols
|
||||||
"""
|
"""
|
||||||
|
|
||||||
list = ['me.spdl','ns3.spdl','nsl3.spdl']
|
list = ['me.spdl','ns3.spdl','nsl3.spdl']
|
||||||
|
print "Performing multi-protocol analysis for the following protocols:", list
|
||||||
|
print
|
||||||
findAllMPA(list)
|
findAllMPA(list)
|
||||||
|
print
|
||||||
|
print "Analysis complete."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +11,9 @@ WOULD LIKE TO HAVE
|
|||||||
|
|
||||||
- Font selector for graphs.
|
- Font selector for graphs.
|
||||||
- Nice graph scaling for all platforms (now only supported under Linux
|
- 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.
|
- Support for using an external editor.
|
||||||
- toggle for 'watch file'.
|
- toggle for 'watch file'.
|
||||||
- toggle for 'auto-verify on change' or something like that.
|
- toggle for 'auto-verify on change' or something like that.
|
||||||
|
Loading…
Reference in New Issue
Block a user