lucasjacks0n / EggShell

iOS/macOS/Linux Remote Administration Tool
GNU General Public License v2.0
1.66k stars 382 forks source link

Installpro won't work #6

Closed NewbieDew closed 7 years ago

NewbieDew commented 7 years ago

9b3c2d8a2104fbbe82259cfa6fb0095d

This has happened to me every time I try to use installpro.

Iphone 6 Ios 10.2 Latest Yalu beta

lucasjacks0n commented 7 years ago

made some updates to the installpro command, let me know if it works now, what device do you have?

NewbieDew commented 7 years ago

Newest gets stuck on "Waiting for connection" after using the payload. Both on iPhone 6 and 6S running 10.2 Yalu

NewbieDew commented 7 years ago

9b3c2d8a2104fbbe82259cfa6fb0095d

lucasjacks0n commented 7 years ago

I will look into it, I am going to add some debug logs to get help communicate these types of issues more in depth

lucasjacks0n commented 7 years ago

are you connecting to your external ip through a port forwarded router?

NewbieDew commented 7 years ago

Yes I am, and it worked fine with the earlier versions, though installpro has never seemed to work for me. All non pro has though

lucasjacks0n commented 7 years ago

can you confirm that the payload is being executed after it is sent?

lucasjacks0n commented 7 years ago

also, is your lhost set to your public ip?

NewbieDew commented 7 years ago

Where can I check if it's being executed? sorry for asking :P

Also, the Ihost is set to my ruter's IP and the port is forwarded through my local IP. This has worked with all versions of Eggshell except this one.

lucasjacks0n commented 7 years ago

if you have terminal on the target device, you can run the command top (from cydia) and see if there is a process called ".espl"

lucasjacks0n commented 7 years ago

do you have the latest version of eggshell? with the updated binaries?

NewbieDew commented 7 years ago

I am on the newest version yes. And here is a ss of the command

16805259_10210932334837712_1480684082_o

NewbieDew commented 7 years ago

That' after I've run the code and waiting for connection

lucasjacks0n commented 7 years ago

ok, I was able to recreate your issue, narrowing in on what is happening. I will see if I can fix it today

NewbieDew commented 7 years ago

Sounds great! I'll wait, just tell me if you need anuthing else

lucasjacks0n commented 7 years ago

The problem ended up being the wrong ip in eggshell, for me this caused a connection to be established but since the payload was given wrong ip parameter, it would not connect back to the correct ip, leaving it stuck "waiting for connection". Also, maybe bash is stuck for you? try killall -9 bash and try the server again

NewbieDew commented 7 years ago

It wont let me kill it, it just says "No matching processes belonging to you were found"

lucasjacks0n commented 7 years ago

are you killing it as root?

NewbieDew commented 7 years ago

I've tried both, same result

NewbieDew commented 7 years ago

EDIT, when running the script as root on the phone I get connected. And all commands are working fine

NewbieDew commented 7 years ago

Still nothing without running as root though

lucasjacks0n commented 7 years ago

no connection at all without root?

lucasjacks0n commented 7 years ago

ps, installpro requires root

NewbieDew commented 7 years ago

Ok,. then we know why I never got installpro before, haha. But yeah, there's still no access without root.

nerdtron123 commented 7 years ago

no connection at all without root? @neoneggplant we fixed that.

lucasjacks0n commented 7 years ago

@nerdtron123 was it changing the upload directory?

lucasjacks0n commented 7 years ago

@nerdtron123 the reason in uploaded to /usr/bin is because it would break commands listapps and sbalert if not uploaded there

nerdtron123 commented 7 years ago

@neoneggplant that breaks non-root connections.

lucasjacks0n commented 7 years ago

yeah but there currently isn't a work around, we could check if /usr/bin is writable, and fallback to /tmp in the preload @nerdtron123

lucasjacks0n commented 7 years ago

or chmod the directory to make it writable with mobile? would that be doable?

nerdtron123 commented 7 years ago

@neoneggplant look at my pull request

nerdtron123 commented 7 years ago

This issue has been resolved please close it