This invention relates to the field of medicine and concerns a method for the prophylaxis or treatment of diseases caused by RNA- and DNA-containing viruses, and concomitant diseases, which envisages the use of an effective amount of a compound of general formula I or a pharmaceutically acceptable salt thereof. The invention also relates to methods for producing the aforesaid compounds, and to pharmaceutical compositions for the prophylaxis or treatment of diseases caused by RNA- and DNA-containing viruses, which contain an effective amount of a compound of general formula I or a pharmaceutically acceptable salt thereof. The invention solves the problem of providing a novel agent effective in the treatment of diseases caused by RNA-containing viruses belonging to the enterovirus genus, the metapneumovirus genus, the pneumovirus genus, the respirovirus genus or the alphacoronavirus genus, and DNA-containing viruses belonging to the adenovirus family and the herpesvirus family, and also effective in the prophylaxis and treatment of asthma exacerbations, chronic obstructive pulmonary disease, cystic fibrosis, conjunctivitis, gastroenteritis, hepatitis and myocarditis, and in the prophylaxis and treatment of rhinorrhea, acute and infectious rhinitis, pharyngitis, nasopharyngitis, tonsillitis, laryngitis, laryngotracheitis, laryngotracheobronchitis, bronchitis, bronchiolitis, pneumonia or obstructive airways syndrome.