Working Iphone wifi presence locator

Maybe I dont understand you but why dont use sudo hping in the script as in the opening post?

And why can’t u use sudo in exex?