def put_str(content, path, share='C$', conn=None, host=None, username=None, password=None):
 if (conn is None):
  conn = get_conn(host, username, password)
 if (conn is False):
  return False
 fh_ = StrHandle(content)
 conn.putFile(share, path, fh_.string)

def put_str ( content , path , share = 'C$' , conn = None , host = None , username = None , password = None ) : if ( conn is None ) : conn = get_conn ( host , username , password ) if ( conn is False ) : return False fh_ = StrHandle ( content ) conn . putFile ( share , path , fh_ . string )
wrapper around impacket .