My understanding is Hamas was supplied by Iran to start some trouble in Gaza to provoke Israel into a brutal retaliation, since Netanyahu was already known to be itching for an excuse to go all genocide (as confirmed by the IDF using cluster bombs in excess and blockbusters in civilian-occupied urban areas).
Hamas, emboldened with its new materiel, went hard and Netanyahu was gleeful for the opportunity to massacre more Palestinians, even resort to contrived famine to do it.
All while smart phones on the ground recorded the carnage up close and personal, which leaked to the internet for all to see.
So Hamas is not a military giant, but they played their part with aplomb