Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have to go to GHunt directory to run hunt.py or check_and_gen.py #25

Closed
tddschn opened this issue Oct 4, 2020 · 12 comments
Closed

Have to go to GHunt directory to run hunt.py or check_and_gen.py #25

tddschn opened this issue Oct 4, 2020 · 12 comments
Labels
enhancement New feature or request

Comments

@tddschn
Copy link

tddschn commented Oct 4, 2020

I set up GHunt by cloning this repo, copying chromedriver to GHunt directory and generating a working data.txt. After that, I made 2 aliases:

alias ghunt='python3 <path-to-hunt.py>'
alias ghunt-gen='python3 <path-to-check_and_gen.py>'

but these aliases won't work unless I call them in the GHunt directory, otherwise Ghunt would complain about missing chromedriver or cookies.

Maybe it would be a good idea if Ghunt can fallback to use config in a dedicated config dir like ~/.config/GHunt or the dir which hunt.py is located in?

@gautamkrishnar
Copy link

gautamkrishnar commented Oct 4, 2020

You can also do:

alias ghunt='pushd <path-to-hunt.py> && python3 <path-to-hunt.py> && popd'
alias ghunt-gen='pushd <path-to-check_and_gen.py> && python3 <path-to-check_and_gen.py> && popd'

@mxrch mxrch added the enhancement New feature or request label Oct 4, 2020
@tddschn
Copy link
Author

tddschn commented Oct 5, 2020

@gautamkrishnar Thanks but I think I'd use a function so I can pass email arguments to hunt.py.

@Cornul11
Copy link

Cornul11 commented Oct 6, 2020

Have you tried adding chromedriver to the PATH?

@tddschn
Copy link
Author

tddschn commented Oct 6, 2020

@Cornul11 Yes. I am on macOS Catalina and have installed chromedriver with brew cask install chromedriver.

image

I'm using Ghunt's master branch ae4d8ed, and it seems that GHunt does NOT search for chromedriver in the $PATH.

@Cornul11
Copy link

Cornul11 commented Oct 8, 2020

@tddschn it does look for it for me on Ubuntu 20.04.

@tddschn
Copy link
Author

tddschn commented Oct 8, 2020

@Cornul11 Thanks for the update! Many changes have been made in the code base and Ghunt may look for the $PATH now :)

@tddschn
Copy link
Author

tddschn commented Oct 8, 2020

Nope, I was wrong. Now ghunt requires the chromedriver_autoinstaller module when I removed chromedriver from ghunt dir and run the Ghunt.py outside of ghunt dir :(
image

After installing chromedriver_autoinstaller with pip, it trys to download chromedriver if it's not found in the ghunt dir.

@mxrch
Copy link
Owner

mxrch commented Oct 8, 2020

I have pushed this => b23d0d6
@tddschn is it good now ?

@tddschn
Copy link
Author

tddschn commented Oct 8, 2020

@mxrch In b23d0d6, the chromedriver in the PATH works! Thank you.

But if invoked from outside of the dir (data.txt is recently generated and valid):
image

@saikiran994
Copy link

Check and gen.py needs tokens like cookies
Hunt.py need mail id for hunting

@tddschn
Copy link
Author

tddschn commented Oct 15, 2020

@saikiran994 Yeah I have all of them :)

@mxrch
Copy link
Owner

mxrch commented Oct 24, 2020

@tddschn pushed changes to permit using GHunt from anywhere.

@mxrch mxrch closed this as completed Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants