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

seems google's sct site down constantly?? #3

Closed
Justsoos opened this issue Jan 30, 2018 · 9 comments
Closed

seems google's sct site down constantly?? #3

Justsoos opened this issue Jan 30, 2018 · 9 comments

Comments

@Justsoos
Copy link
Contributor

Justsoos commented Jan 30, 2018

[root@localhost GSDF]# proxychains4 python3 GSDFT.py -d google.com -e hide
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.12
[proxychains] DLL init: proxychains-ng 4.12

    `______`````______`````_____`````______``
    /\``___\```/\``___\```/\``__-.``/\``___\`
    \`\`\__`\``\`\___``\``\`\`\/\`\`\`\``__\`
    `\`\_____\``\/\_____\``\`\____-``\`\_\```
    ``\/_____/```\/_____/```\/____/```\/_/```
    `````````````````````````````````````````
       Author:Wester@Sixtant Security Lab
    
[+]Searching subdomains for google.com
[proxychains] Strict chain  ...  192.168.1.100:1080  ...  transparencyreport.google.com:443 <--socket error or timeout!
[+]Error exit...

btw, I use proxychains-ng, nice and easy tool.
I tried in hours .... and there is no further info in GSDF/log folder ...

and another question of GSDF, I can not enter the Terminal window as that it is said with python3 GSDFT.py, only give me the usage help, like this:

[root@localhost GSDF]# proxychains4 python3 GSDFT.py 
[proxychains] config file found: /usr/local/etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.12
[proxychains] DLL init: proxychains-ng 4.12

    `______`````______`````_____`````______``
    /\``___\```/\``___\```/\``__-.``/\``___\`
    \`\`\__`\``\`\___``\``\`\`\/\`\`\`\``__\`
    `\`\_____\``\/\_____\``\`\____-``\`\_\```
    ``\/_____/```\/_____/```\/____/```\/_/```
    `````````````````````````````````````````
       Author:Wester@Sixtant Security Lab
    
usage: GSDFT.py [-h] -d SEARCH_DOMAIN [-s SAVE_PATH] -e SHOW_EXPIRED
GSDFT.py: error: the following arguments are required: -d/--domain, -e/--expired

I HAVE to run with -d and -e, is it right? I run it in Centos 7, python 3.4.5

@We5ter
Copy link
Owner

We5ter commented Jan 30, 2018

For Q1:
Maybe you should try this,and the proxy IP/port is your proxy IP/port:
gsdf
And you need add proxies=self.proxies to all the following req = requests.get()
req

For Q2:
The correct usage is :python GSDFT.py -d google.com -e show.
The default save folder is log,and you should ensure your script can write into this path.

@We5ter
Copy link
Owner

We5ter commented Jan 30, 2018

Can you ensure you can access google.com through 192.168.1.100:1080?

Maybe these articles can help you:
https://bbs.archlinux.org/viewtopic.php?id=206960
rofl0r/proxychains-ng#87
rofl0r/proxychains-ng#174

@Justsoos
Copy link
Contributor Author

Justsoos commented Jan 31, 2018

not the problem of proxy. but the line:

GSDF/GSDFT.py

Line 82 in 14c785c

rep = (req.text).encode('utf-8').lstrip(")]}'")

rep = (req.text).encode('utf-8').lstrip(")]}'")
the utf-8 encode transfer 'str' to 'bytes', it brought the error in python ver 3.
it might be
rep = (req.text).lstrip(")]}'")
but, after this correction, still got wrong output:

  12640 subdomain certificate logs found
[+]Error exit..

@We5ter
Copy link
Owner

We5ter commented Feb 1, 2018

Yes,I just test it with python2.7.

@We5ter
Copy link
Owner

We5ter commented Feb 1, 2018

Could you tell me what does your command look like?
And you can change line 182-183:

 except Exception as e:
            print e
            print(c.red("[+]Error exit..."))

@We5ter
Copy link
Owner

We5ter commented Feb 1, 2018

gsdf

@Justsoos
Copy link
Contributor Author

Justsoos commented Feb 1, 2018

... faint ... I tried within python2.7, it started downloading, well with proxychains too.
I have NOT seen the python2.7 on project home page yet ...

but still get ssl error, can not save the result of show in terminal:
EOF occurred in violation of protocol (_ssl.c:590) [+]Error exit...

as the advice of requests author, better using session instead of, so I make a pull request, wait for me mins.
psf/requests#3391 (comment)

@Justsoos
Copy link
Contributor Author

Justsoos commented Feb 1, 2018

seems requests.Session().get much stronger than requests.get, all is well

@We5ter
Copy link
Owner

We5ter commented Feb 1, 2018

OK,have a nice day!

@We5ter We5ter closed this as completed Feb 1, 2018
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

2 participants