Open HW6t2WjA opened 8 years ago
This problem has been seen by me on linux / x64. There is a problem in phantomjs. Try to open the following code using phantomjs.
require('webpage').create().open( "https://exploit-db.com/", function(s) {console.log(s); phantom.exit()} )
even check the time setting
root@kali:~/dorks# require('webpage').create().open( "https://exploit-db.com/", function(s) {console.log(s); phantom.exit()} )
bash: syntax error near unexpected token `'webpage''
root@kali:~/dorks# phantomjs dorks.js ghdb -c 0 -o all_dorks.txt
categories element not found
warn: https://www.exploit-db.com/google-hacking-database/: fail
root@kali:~/dorks# wget https://www.exploit-db.com/google-hacking-database
--2017-01-16 03:22:58-- https://www.exploit-db.com/google-hacking-database
Resolving www.exploit-db.com (www.exploit-db.com)... 192.124.249.8
Connecting to www.exploit-db.com (www.exploit-db.com)|192.124.249.8|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.exploit-db.com/google-hacking-database/ [following]
--2017-01-16 03:22:59-- https://www.exploit-db.com/google-hacking-database/
Reusing existing connection to www.exploit-db.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 13594 (13K) [text/html]
Saving to: ‘google-hacking-database’
google-hacking-data 100%[===================>] 13.28K --.-KB/s in 0.07s
2017-01-16 03:22:59 (193 KB/s) - ‘google-hacking-database’ saved [13594/13594]
No, put this code in a file (eg test.js) and run: phantomjs test.js
must be: "success"
And what if failed writes?
root@work:/opt/dorks# phantomjs dorks.js ghdb -q oracle -o oracle_dorks.txt search query input not found warn: https://www.exploit-db.com/google-hacking-database/: fail
root@work:/opt/dorks# wget https://www.exploit-db.com/google-hacking-database --2016-05-17 11:07:21-- https://www.exploit-db.com/google-hacking-database Resolving www.exploit-db.com (www.exploit-db.com)... 192.124.249.8 Connecting to www.exploit-db.com (www.exploit-db.com)|192.124.249.8|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.exploit-db.com/google-hacking-database/ [following] --2016-05-17 11:07:24-- https://www.exploit-db.com/google-hacking-database/ Reusing existing connection to www.exploit-db.com:443. HTTP request sent, awaiting response... 200 OK Length: 12182 (12K) [text/html] Saving to: ‘google-hacking-database’
google-hacking-database 100%[==========================================================>] 11.90K --.-KB/s in 0.001s
2016-05-17 11:07:24 (9.98 MB/s) - ‘google-hacking-database’ saved [12182/12182]