1N3 / Sn1per

Attack Surface Management Platform
https://sn1persecurity.com
Other
8.06k stars 1.85k forks source link

error #94

Closed lnkakalink closed 6 years ago

lnkakalink commented 7 years ago

Hi i start sniper and have error

Smartmatch is experimental at /usr/bin/dnsenum line 698. Smartmatch is experimental at /usr/bin/dnsenum line 698.

/usr/bin/sniper: line 1135: [: ==: unary operator expected

/usr/bin/sniper: line 998: [: ==: unary operator expected /usr/bin/goohak: line 13: //: Is a directory

Traceback (most recent call last): File "/usr/bin/wafw00f", line 8, in main() File "/usr/lib/python2.7/dist-packages/wafw00f/init.py", line 808, in main if attacker.normalrequest() is None: File "/usr/lib/python2.7/dist-packages/wafw00f/init.py", line 96, in normalrequest return self.request(usecache=usecache, cacheresponse=cacheresponse, headers=headers) File "/usr/lib/python2.7/dist-packages/wafw00f/lib/evillib.py", line 323, in request h.request(method, path, headers=headers) File "/usr/lib/python2.7/httplib.py", line 1042, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 882, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 844, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 1263, in connect server_hostname=server_hostname) File "/usr/lib/python2.7/ssl.py", line 363, in wrap_socket _context=self) File "/usr/lib/python2.7/ssl.py", line 611, in init self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 848, in do_handshake match_hostname(self.getpeercert(), self.server_hostname) File "/usr/lib/python2.7/ssl.py", line 282, in match_hostname % (hostname, ', '.join(map(repr, dnsnames))))

1N3 commented 7 years ago

Hey, thanks for the heads up... looks like there was a error in the Blackarch checks that were added so I've went ahead and fixed those. Can you check the latest public release and let me know if that works for you?

lnkakalink commented 7 years ago

Hi i re-install

root@kali:~/Sn1per# ./install.sh


_________  /  _/___  ___  _____

/ / \ / // \/ \/ / ( ) / / // // // / / /
/_// /_/__/ ./__//
/_/

lnkakalink commented 7 years ago

Hi i start and have error Smartmatch is experimental at /usr/bin/dnsenum line 698. Smartmatch is experimental at /usr/bin/dnsenum line 698. /usr/bin/goohak: line 13: //: Is a directory File "/usr/bin/wafw00f", line 8, in main() File "/usr/lib/python2.7/dist-packages/wafw00f/init.py", line 808, in main if attacker.normalrequest() is None: File "/usr/lib/python2.7/dist-packages/wafw00f/init.py", line 96, in normalrequest return self.request(usecache=usecache, cacheresponse=cacheresponse, headers=headers) File "/usr/lib/python2.7/dist-packages/wafw00f/lib/evillib.py", line 323, in request h.request(method, path, headers=headers) File "/usr/lib/python2.7/httplib.py", line 1042, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 882, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 844, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 1263, in connect server_hostname=server_hostname) File "/usr/lib/python2.7/ssl.py", line 363, in wrap_socket _context=self) File "/usr/lib/python2.7/ssl.py", line 611, in init self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 848, in do_handshake match_hostname(self.getpeercert(), self.server_hostname) File "/usr/lib/python2.7/ssl.py", line 282, in match_hostname % (hostname, ', '.join(map(repr, dnsnames))))

1N3 commented 7 years ago

Hi, there were some bugs that were fixed in the latest version. To fix, you'll need to git clone sniper into a new directory and run ./install.sh to re-install. These errors should go away after.

lnkakalink commented 7 years ago

./install.sh

'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded. Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main File "/usr/lib/python2.7/dist-packages/pip/init.py", line 21, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 64, in vendored("cachecontrol") File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 36, in vendored import(modulename, globals(), locals(), level=0) File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/init.py", line 9, in File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 4, in File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/init.py", line 52, in File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", line 59, in File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", line 32, in vendored File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 47, in File "/usr/local/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

1N3 commented 6 years ago

Just re-ran the latest install.sh script for Sn1per v4.0 on Kali 2.0 rolling and everything installed without error. If you're running any other Linux flavor, I'd recommend running the docker container for sniper instead as this will work on all platforms.