thewhiteh4t / seeker

Accurately Locate Smartphones using Social Engineering
MIT License
7.1k stars 1.7k forks source link

Starting PHP Server ....... [Failed] #315

Closed nuneand2 closed 3 years ago

nuneand2 commented 3 years ago

image

I am received a failed message when starting the php server.

Here is the command I am using: python3 seeker.py -t manual -p 1337

I have also tried it with sudo.

In logs/php.log: [Wed Sep 1 02:21:03 2021] PHP 7.4.21 Development Server (http://0.0.0.0:1337) started

PHP Version image

thewhiteh4t commented 3 years ago

@nuneand2 please check php.log in seeker/logs/

nuneand2 commented 3 years ago

I did. Here is the output. See bottom of screenshot.

image

nuneand2 commented 3 years ago

When I change the IP to 127.0.0.1, it also fails with the same message. I can print out this exception: image

Any ideas to point me in the direction?

I also get an error when I try to update my system with libgcc-9-dev. This shouldn't cause an issue with starting PHP though.

thewhiteh4t commented 3 years ago

it seems like the server is starting and then crashes shortly afterwards, try launching seeker and then check for php in processes using ps aux

anmaranmA commented 3 years ago

a

thewhiteh4t commented 3 years ago

closing due to inactivity.

rodrigoricky commented 2 years ago

Any solution to this yet, been having the same error

thewhiteh4t commented 2 years ago

@rodrigoricky please check log file as shown above

rodrigoricky commented 2 years ago

[Mon Jan 3 22:12:39 2022] PHP 8.1.1 Development Server (http://0.0.0.0:1337) started it only says that

thewhiteh4t commented 2 years ago

@rodrigoricky try some other port, check if that resolves the issue, otherwise quit seeker and execute pkill php and try running seeker again

rodrigoricky commented 2 years ago

Both not working, and the command return this Could not find process: php

thewhiteh4t commented 2 years ago

@rodrigoricky try : php -S 0.0.0.0:1337

rodrigoricky commented 2 years ago

Should I run that command, if so it said this [Mon Jan 3 22:37:53 2022] PHP 8.1.1 Development Server (http://0.0.0.0:1337) started

thewhiteh4t commented 2 years ago

@rodrigoricky does it exit itself automatically or you had to use ctrl+c ?

rodrigoricky commented 2 years ago

Exit from the command php -S 0.0.0.0:1337? I had to use control c to exit from it

rodrigoricky commented 2 years ago

If running the seeker file is what your talking about, it exit automatically after saying Starting PHP Server [failed]

thewhiteh4t commented 2 years ago

it looks like the server shuts down as soon as it is started by seeker, but it should not, its not crashing on my side

rodrigoricky commented 2 years ago

Ahh, any possible solution to help me fix it?

thewhiteh4t commented 2 years ago

@rodrigoricky yeah you can try this :

  1. for example if you will use nearyou template
  2. open a terminal and cd into seeker/template/nearyou
  3. execute : php -S 0.0.0.0:1337
  4. open a new terminal and launch seeker
rodrigoricky commented 2 years ago

So I tried this, unfortunately, it didn't work, so I opened terminal in the seeker/template/nearyou and another one from the root folder, I ran php -S 0.0.0.0:1337 then python3 seeker.py -t manual -p 1337 in the terminal after. After it says Starting PHP Server [failed] on the root terminal , both terminal crashed after that

rodrigoricky commented 2 years ago

Any updates on this?

thewhiteh4t commented 2 years ago

@rodrigoricky i tried to reproduce the issue but its not crashing for me, tried 1337 port etc but not crashing, if i can reproduce the issue i can fix it

rodrigoricky commented 2 years ago

Is there any way to find the problem with this, or is it an issue with my PHP version installed?