<s> from src . platform . axis2 . authenticate import checkAuth <EOL> from src . platform . axis2 . interfaces import AINTERFACES <EOL> from auxiliary import Auxiliary <EOL> from log import LOG <EOL> from re import findall <EOL> import utility <EOL> class Auxiliary : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> self . versions = [ '<STR_LIT>' ] <EOL> self . flag = '<STR_LIT>' <EOL> def check ( self , fingerprint ) : <EOL> """<STR_LIT:U+0020>""" <EOL> if fingerprint . title == AINTERFACES . DSR : <EOL> return True <EOL> return False <EOL> def run ( self , fingerengine , fingerprint ) : <EOL> """<STR_LIT:U+0020>""" <EOL> utility . Msg ( "<STR_LIT>" ) <EOL> base = '<STR_LIT>' . format ( fingerengine . options . ip , <EOL> fingerprint . port ) <EOL> uri = '<STR_LIT>' <EOL> cookie = checkAuth ( fingerengine . options . ip , fingerprint . port , <EOL> fingerprint . title , fingerprint . version ) <EOL> if not cookie : <EOL> utility . Msg ( "<STR_LIT>" % <EOL> ( fingerengine . options . ip , fingerprint . port ) , LOG . ERROR ) <EOL> return <EOL> response = utility . requests_get ( base + uri , cookies = cookie ) <EOL> if response . status_code is <NUM_LIT:200> : <EOL> data = findall ( "<STR_LIT>" , response . content ) <EOL> if len ( data ) > <NUM_LIT:0> : <EOL> for v in data : <EOL> utility . Msg ( "<STR_LIT>" % v ) <EOL> else : <EOL> utility . Msg ( "<STR_LIT>" ) </s>
