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

Error when running tool #10

Open
DrDinosaur opened this issue Oct 22, 2013 · 9 comments
Open

Error when running tool #10

DrDinosaur opened this issue Oct 22, 2013 · 9 comments

Comments

@DrDinosaur
Copy link

root@Kali:/Scripts/osintstalker-master# python fbstalker1.py
Traceback (most recent call last):
File "fbstalker1.py", line 60, in
driver = webdriver.Chrome(chrome_options=chromeOptions)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 64, in init
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 72, in init
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 114, in start_session
'desiredCapabilities': desired_capabilities,
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 165, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 158, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: /usr/bin/google-chrome'
root@Kali:
/Scripts/osintstalker-master#

Chrome also pops up with an about:blank tab. Followed instructions in readme. Running Kali.

@milo2012
Copy link
Owner

Can you run the chromedriver executable ? Let me know if you get any errors. I have this issue before and it was due to chromedriver not being able to run.

@DrDinosaur
Copy link
Author

Once I manually start Chromedriver in a different terminal and let it continue to run, that error goes away. Unfortunately, there are several others. I have never gotten this to work. It spits out this error when you are already authenicated:

root@Kali:~/Scripts/osintstalker-master# python fbstalker1.py -user xxx
[*] Username: xxx
Traceback (most recent call last):
File "fbstalker1.py", line 2041, in
options(sys.argv)
File "fbstalker1.py", line 1985, in options
mainProcess(user)
File "fbstalker1.py", line 1763, in mainProcess
loginFacebook(driver)
File "fbstalker1.py", line 344, in loginFacebook
assert "Welcome to Facebook" in driver.title
AssertionError

Somewhere in the process I'm pretty sure this blocked all images in Chrome. It says "this setting has been enforced by your administrator" and I have yet to find a fix.

In the off chance you actually get the thing to start without an error, it doesn't work. All the URLs it visits in Chrome are invalid and it doesn't find anything. Here is an example before I stopped it:

root@Kali:~/Scripts/osintstalker-master# python fbstalker1.py -user xxx
[] Username: xxx
[
] Caching Profile Page: xxx
[] Uid:
[
] Caching Facebook Apps Used By: xxx

[] Caching Pages Liked By: xxx
[
] Caching Videos Liked By: xxx
[] Caching Photos Of: xxx
[
] Writing 0 record(s) to database table: photosOf
list index out of range
[*] Caching Photos By: xxx
^CTraceback (most recent call last):
File "fbstalker1.py", line 2041, in
options(sys.argv)
File "fbstalker1.py", line 1985, in options
mainProcess(user)
File "fbstalker1.py", line 1834, in mainProcess
html = downloadPhotosOf(driver,uid)
File "fbstalker1.py", line 946, in downloadPhotosOf
time.sleep(3)
KeyboardInterrupt

Hopefully this potentially great and useful software will become stable in the near future. Oh, and this was running the latest version as of this comment. Thanks.

@milo2012
Copy link
Owner

Hi guys, I am building a bootable live CD. It would be really useful if you could provide me some facebook usernames which you are having problems with so that I can run some tests on the live CD before I publish the live CD?
Please email me if you are uncomfortable listing the test usernames here.
That would really help me debug the issue as I did not encounter the error with the usernames that I tested. The live CD will ensure that everyone is running on the same platform. (Its just an idea). Please let me know what you think.

@milo2012
Copy link
Owner

I realized that I received the same error when the facebook_username and facebook_password are incorrect. That's why i get all 0 in all results. I am not sure if you are having the same issues ? facebook_username is the same as the email address used to register for your facebook account. I will write some code to handle the exception. Please try.

@jcope2013
Copy link

running into same issues, any progress ever made?

@7S3V3N7
Copy link

7S3V3N7 commented Feb 15, 2014

Hey guys, i am getting this error myself.. any advice would be much appreciated! I have double checked the username and password in the python.py file and i did not spell anything wrong when editing the file.

root@Kali:/opt/osintstalker# python fbstalker1.py -user https://www.facebook.com/(the users user name)1?fref=ts
[] Username: https://www.facebook.com/(the users username)?fref=ts
[
] Uid: 643117506
[*] Caching Facebook Apps Used By: https://www.facebook.com/(the users user name)1?fref=ts
Traceback (most recent call last):
File "fbstalker1.py", line 2030, in
options(sys.argv)
File "fbstalker1.py", line 1974, in options
mainProcess(user)
File "fbstalker1.py", line 1760, in mainProcess
text_file = open(filename, "w")
IOError: [Errno 2] No such file or directory: 'https://www.facebook.com/(the users user name)1?fref=ts_apps.htm'

@marcelmfs
Copy link

You don't need to pass the whole URL, JUST the -user , AGAIN: NOT -user http://..

@harayz
Copy link

harayz commented Apr 9, 2014

did this ever get solved?
below are error messages that i get:

root@kali:~/Pentest/osintstalker# python fbstalker1.py johndoe
[*] Username:
[!] Problem converting username to uid

@dkv007
Copy link

dkv007 commented Apr 25, 2016

HI,Please Help

File "fbstalker1.py", line 66
conn = sqlite3.connect('facebook.db')
^
IndentationError: expected an indented block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants