Functionally there is really no difference between Hamas and Iran
Hamas big wigs were in Russia recently, but Iran is almost certainly the conduit here. Providing the intel to Hamas and the munitions to Iran is basically just providing both things to Hamas.