gdZddlZddlmZddlmZmZddlmZddl m Z ej e Z GddeZdS) u  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program.  If not, see . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see N) MessageType) MessageSinkexpect)malware_response)ScopecXeZdZejZdZdZee j dZ dS)ServerPullFileSenderNcK||_dS)N)loop)selfr s M/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/server_pull.py create_sinkz ServerPullFileSender.create_sink$s cK|d}|dD]]} tj||d{V #t$r1}tt |Yd}~Vd}~wwxYwdS)Nreasonfiles) upload_reason)r upload_file Exceptionloggerwarningstr)r messagerfilees r upload_filesz!ServerPullFileSender.upload_files's"G$ ' 'D '&24vNNNNNNNNNNN ' ' 's1vv&&&&&&&& ' ' 's3 A.'A))A.) __name__ __module__ __qualname__rIM360SCOPEr rrrMalwareSendFilesrrr r r sX KE D VK ())''*)'''rr )__doc__logging"defence360agent.contracts.messagesr!defence360agent.contracts.pluginsrrimav.malwarelib.utilsrdefence360agent.utilsr getLoggerrrr r#rr r+s*::::::AAAAAAAA222222''''''  8 $ $''''';'''''r