Coder Social home page Coder Social logo

Comments (36)

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024 1

Create a php file and enter this code

<?php 
phpinfo(); 
?>

Then execute this command
php -S 0.0.0.0:80

And if you are using ubuntu etc, seeker and the above command needs root privileges.

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

@msimon36 how can i reproduce this issue? Also this PHP Log is looking different from what i have...

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Well actually, when I was trying to trying to install seeker using the provided script, I got some sort of error message... In the end I just opened the script and manually entered each necessary command.
I can post the output if you would like...

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Which server are you using? Your output looks like apache

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

I used python3 -m http.server 80 &

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Hmm it seems after I ran the install script again normally, when I try python seeker.py, I get the following error:

[+] Starting PHP Server...

[+] Starting Ngrok...

Traceback (most recent call last):
File "seeker.py", line 205, in
ngrok()
File "seeker.py", line 77, in ngrok
subp.Popen(['./Ngrok/ngrok', 'http', '80'], stdin=subp.PIPE, stderr=subp.PIPE, stdout=subp.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Ok what am I looking for?

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Basically if you load this php code in your browser and php info shows up then you are good to go as seeker uses php server, python server won't work

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Gotcha. It works perfectly fine.
I was just using the python server for "debugging"/monitoring purposes to see what files seeker was calling and what errors were happening behind the scenes.

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Did you take a look at the error I posted above as well?

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

When you execute seeker a php log file will be generated in seeker directory php.log you can see all requests there.

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Oh ok

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Share install.log file, and which os are you using, execute uname -m what arch are you getting?

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

OS: Kali Linux (Linux KaliLinux 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux)

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

install.log

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Your install.log contains only apt-get update,
Let install script finish and then share the log file

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

It just freezes at that point.

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Manually run apt-get update, check if it's getting stuck

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

I get this error:
Ign:1 https://download.docker.com/linux/debian kali-rolling InRelease
Err:2 https://download.docker.com/linux/debian kali-rolling Release
404 Not Found [IP: 99.84.181.14 443]
Hit:3 http://archive.linux.duke.edu/kalilinux/kali kali-rolling InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/debian kali-rolling Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Please take a look at this
https://docs.kali.org/general-use/kali-linux-sources-list-repositories

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

It wasn't working even before I was getting errors so idk

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Your sources.list needs a single repo which is listed in the page above, your apt is not working properly

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Hmm, I already have that repo in sources.list...

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

Then you should comment out extra ones and try again

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

That's the only one uncommented

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

So now your apt-get update command should complete properly

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

It isn't :(
This isn't the main problem, though.
I can manually copy and paste the individual commands from the install script and seeker launches perfectly but when I visit the generated ngrok URL (on my PC, for testing) nothing happens and it just says: [+] Waiting for User Interaction...

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

After you visit the page you have to click on Continue, for reference you can see the demo video, link is in the README

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

I clicked continue

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

And did you get the same message like i get in the video?

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Yes, I got the alert.
Btw I'm using an Azure VM so maybe there are some ports that need to be opened initially?
idk

from seeker.

thewhiteh4t avatar thewhiteh4t commented on August 29, 2024

I have not tested this on azure vm

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

It should be the same as any other Kali machine just maybe there are some ports that need to be allowed/opened?

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Any thoughts?

from seeker.

5E7EN avatar 5E7EN commented on August 29, 2024

Well, it looks like everything started magically working! I just completely removed seeker and tried again from scratch and everything seems to be working fine! Thank you for your help.

from seeker.

ntung avatar ntung commented on August 29, 2024

Create a php file and enter this code

<?php 
phpinfo(); 
?>

Then execute this command php -S 0.0.0.0:80

And if you are using ubuntu etc, seeker and the above command needs root privileges.

Thank you for sharing your solution. I have ever never known we can start a web server with the php command.

from seeker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.