lsock never works in iOS

Used for discussing the various tools in the book as well as encouraging members to share tools

lsock never works in iOS

Postby shmuck » Wed Mar 04, 2015 8:35 pm

When executing lsock in iOS 8, it always prompts to first kill the UserEventAgent process then starting lsock right after. No matter how you twist it and dice it, lsock seems to always complain that "Apparently some other process is using the system socket. On iOS, this is usually UserEventAgent. Kill it (-9!) and immediately start this program
Unable to continue without socket"

Killing the process will always get instantiated as soon as it's killed (most likely by launchd). Any hints?
Posts: 1
Joined: Wed Mar 04, 2015 8:31 pm

Re: lsock never works in iOS

Postby morpheus » Sat Mar 14, 2015 2:52 am

That's because you're using the older version of lsock, which - I admit somewhat embarrassingly - had a bug. The new version which I've updated is not only more stable but also gets around the exclusive access - see the source at - and there's also a compiled tar you can grab .

Incidentally, there's a way to prevent the auto-relaunching if you need it for other cases - that's by kill -STOP'ing launchd itself (kill -STOP 1), then killing whatever daemon, then kill -CONT 1. Or by using launchctl . But if you grab the new version, you don't need any of it, and it should work.
Site Admin
Posts: 611
Joined: Thu Apr 11, 2013 6:24 pm

Re: lsock never works in iOS

Postby backendbilly » Fri May 29, 2015 6:02 pm

Thank you. It works now. Comes very handy.
Site Admin
Posts: 133
Joined: Fri May 29, 2015 5:58 pm

Return to Tools

Who is online

Users browsing this forum: No registered users and 2 guests