Giter VIP home page Giter VIP logo

Comments (8)

SaiKrishna0506 avatar SaiKrishna0506 commented on July 17, 2024 1

Ok After upgrading, The Issue was resolved. But If I keep GHunt in my /opt Directory, It has permissions Issue writing Files like data.txt (Created when running the check_and_gen.py) & tmp.html (Created while running the hunt.py)

Copied the GHunt Folder to my Desktop and it does not have Issues with the Permission.

from ghunt.

 avatar commented on July 17, 2024 1

I had the same issue , to fix this I added this < chrome_options.add_argument("--no-sandbox") >
whenever chrome is being initiated ( check_and_gen.py , gmaps.py )
I'm on Kali
https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t

from ghunt.

mahdi1234 avatar mahdi1234 commented on July 17, 2024

Hmm I run it as normal user, no issues, why you think it has to be root?

from ghunt.

SaiKrishna0506 avatar SaiKrishna0506 commented on July 17, 2024

If I run this as a normal user, I get the following Error.

Traceback (most recent call last):
File "check_and_gen.py", line 74, in
driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options)
File "/usr/local/lib/python3.8/dist-packages/seleniumwire/webdriver/browser.py", line 86, in init
super().init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'options'

I read that I can do a chown on the /usr/local/lib/python3.8/dist-packages/* directory in stack overflow, But I didn't want to do that. So I ran this as the Root user itself. Sorry if I'm beeing Too Noob...

from ghunt.

mxrch avatar mxrch commented on July 17, 2024

@KrishSai1997 Hmm did you install the packages as root ?
If not, try to reinstall them with pip without sudo (and without being root) and the option "-U" (I think it's that)

from ghunt.

mxrch avatar mxrch commented on July 17, 2024

Okay, cool !
Yes, the /opt directory is reserved to root users, so it's normal and nothing related to GHunt.
I will still review your --no-sandbox edit to avoid future errors if someones runs it as root, I just need to test it on Windows.

from ghunt.

SaiKrishna0506 avatar SaiKrishna0506 commented on July 17, 2024

Ok Thanks. :)

from ghunt.

mxrch avatar mxrch commented on July 17, 2024

I pushed the fix of @KrishSai1997 in the commit ae4d8ed, I'm closing this issue if it's okay :)

from ghunt.

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.