Ouch, I have been doing electrical work for thirty years without an incident... to be clear, I am not suggesting that anyone attach a generator in this fashion... However, as long as someone does not turn on the main while the generator is running, overload the dryer wire, or plug the wire to the generator into the generator before plugging it into the dryer socket
AS an arson / accident investigator I have seen all of the above cause problems for seasoned electricians.
Especially when the power goes off and the dude may not be sober.
One I remember the most was after the October storm in 2006.
A dog pulled out the cord and was killed by the male plug.