Пример макроса для подбора логинов в одис-е. Скорость подбора 3 лог/сек
# coding: latin-1
#Macro started on:
from java.lang import Boolean
from java.math import BigInteger
from java.util import HashMap
from java.util import ArrayList
from de.volkswagen.odis.vaudas.vehiclefunction.automati on import IDiagnosticInterface
from de.volkswagen.odis.vaudas.vehiclefunction.automati on.types import IDiagResultConnectEcu
from de.volkswagen.odis.vaudas.vehiclefunction.automati on import ITotalSystemsInterface
from de.volkswagen.odis.vaudas.vehiclefunction.automati on import DiagException
diagnosticInterface = IDiagnosticInterface.Factory.getInstance()
diagnosticInterface.configureSetting("Multilink.Ma xNumberOfLogicalLinks", "1")
diagnosticInterface.startProtocol()
#Macro has been recorded using the project: AU37X
print "Changing diagnostic session: Gateway"
resultConnectToEcu = diagnosticInterface.connectToEcu(0x19)
diagnosticInterface.openConnection(resultConnectTo Ecu.getConnectionHandle())
diagnosticInterface.switchSession(resultConnectToE cu.getConnectionHandle(), "DiagnServi_DiagnSessiContrVWEndOfLineSessi")
print "Performing access authorization: Gateway"
#print result.getNegativeResult().isNegativeResponse()
for login in range(20100, 65535):
diagnosticInterface.securityAccess(resultConnectTo Ecu.getConnectionHandle(), "20103", "Login")
diagnosticInterface.switchSession(resultConnectToE cu.getConnectionHandle(), "DiagnServi_DiagnSessiContrVWEndOfLineSessi")
try:
diagnosticInterface.securityAccess(resultConnectTo Ecu.getConnectionHandle(), str(login), "Login")
print "**",login
except DiagException, ex:
print login
diagnosticInterface.stopProtocol()
Последний раз редактировалось Neo_; 05.06.2018 в 21:42..
|