The original post states : " Attacker not realising it is indirect takes the kick quickly and shoots" so that is illegal as it should be INDIRECT as the OP stated.... so what would be your course of action on that scenairo alone ? Forget this rubbish about having a shot hoping for a rebound, why does someone always have to put a "curve" on a given situation..... wouldn't you blow the whistle as it should be indirect? course you would? Normally yes you would normally RC the defender for handball,and award a penalty, it was going in so DOGSO ...... but !! the illegal first kick renders that situation immaterial...as the ref should have blown for the erroneous direct kick .... If the OP stated "hoping for a rebound" then i would take a different course of action.