Code Monkey home page Code Monkey logo

Comments (15)

dr1408 avatar dr1408 commented on May 27, 2024

8FD0FF21-1C4B-441A-99CA-4E0366F9C922

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

The problem related to the lines of controller i changed the path to /data/data/com.termux/files/usr/bin/geckodriver
Where the geckodriver is : still same error

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

This is the browser.py of the tool : https://github.com/OWASP/QRLJacking/blob/master/QRLJacker/core/browser.py

it should use headless environment so why gecko failing because of display error ? Please if you can check the code

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

Here is the full traceback from the tool

run
[+] Using the default useragent
Exception: WebDriver.init() got an unexpected keyword argument 'executable_path'
Trackback: Traceback (most recent call last):
File "/data/data/com.termux/files/home/QRLJacking/QRLJacker/core/browser.py", line 76, in new_session
new_headless[module_name]["Controller"] = Firefox(profile, executable_path="/usr/local/share/geckodriver", capabilities=caps)#options=self.opts) # Inserting the browser object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.init() got an unexpected keyword argument 'executable_path'
[!] Couldn't open Firefox! Check the installation instructions again!

from geckodriver.

whimboo avatar whimboo commented on May 27, 2024

As it looks like the headless flag might not make it to it through the capabilities. But I would need a trace log from geckodriver. As such can you please try to pass the -vv or --log=trace argument to geckodriver? The log should appear on stdout as long as the tool you are using is not storing it into a local file (which then might be called geckodriver.log). Thanks.

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

@whimboo sir i already posted the gecko log

geckodriver.log = MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRAS>
Error: no DISPLAY environment variable specified

Also i guess there is problem in the exeutable path is it right or wrong because i change it in the browser.py on both lines .. please chech the browser.py of the tool i put the link to it .. thanks for response

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024
  • any way to install 0.34 for arm7 samsung phone .. i have 33 installed from tur repo

from geckodriver.

whimboo avatar whimboo commented on May 27, 2024

A trace log will contain way more internals as what has been posted yet. So please check that the mentioned flags are correctly forwarded to geckodriver.

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

Didn't get it sorry sir.. that's the only problem in the log is about the display envirmoent.. Also can I update geckodriver for termux on arm7 and how to do that

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

Ok so I used python3 instead of Python3.7

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

This is the tool trace back :

[+] Using the default useragent
Exception: Message: Process unexpectedly closed with status 1

Trackback:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/QRLJacking/QRLJacker/core/browser.py", line 76, in new_session
new_headless[module_name]["Controller"] = Firefox(profile, executable_path="/data/data/com.termux/files/usr/bin/geckodriver", capabilities=caps)#options=self.opts) # Inserting the browser object
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/selenium/webdriver/firefox/webdriver.py", line 201, in init
super().init(command_executor=executor, options=options, keep_alive=True)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

And this is the geckodriver.log
658E68C9-D2C9-421B-86A1-90411666A128

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

With python3.7 it produce only 1 error while with python3 it produces lot errors

Also the geckodriver log only generate on python3 not python3.7

Even if I test the driver on python3 it will work but on python3.7 show errors let me test it and show you

from geckodriver.

whimboo avatar whimboo commented on May 27, 2024

Maybe it would be good to get the problem with the Python versions sorted out with the tool as well.

Regarding the geckodriver issue could you please let the output redirect to a file? The actual command for starting Firefox is cut-off in both your former comments and the screenshot.

from geckodriver.

dr1408 avatar dr1408 commented on May 27, 2024

Ok Sir my problem is solved I just needed to install termux xcfe package and export display to use it on Vince viewer

from geckodriver.

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.