The IDF (well, its pre-cursors for a while, foremost among them the Haganah) most certainly did exist in the 40s. In its current form, it has existed since 1948.
Technically, for the tiniest part of the decade, so did Netanyahu (he was born in 1949), but, no, of course he was not a player back then. He had his 1st term as PM in the 1990s.
And no, Hamas would not exist for another ~40 years - it was founded in 1987.
... but then, none of this started with Bibi and Hamas!
When I said "try the 1940s" what I actually meant was "talking about August 2023 in terms of how long this has been happening to Palestinians seems like a bit of an understatement".