Starting-point archetype

edited May 30 in Challenges

I have no idea what went wrong with the machine. I had installed python 3 and impacte.Py. and the mssqlcient.py is showing in the examples folder.

──(johnny㉿kali)-[/opt/impacket/examples]
└─$ ls
addcomputer.py getPac.py mssqlinstance.py reg.py smbserver.py
atexec.py getST.py netview.py rpcdump.py sniffer.py
dcomexec.py getTGT.py nmapAnswerMachine.py rpcmap.py sniff.py
dpapi.py GetUserSPNs.py ntfs-read.py sambaPipe.py split.py
esentutl.py goldenPac.py ntlmrelayx.py samrdump.py ticketConverter.py
exchanger.py karmaSMB.py ping6.py secretsdump.py ticketer.py
findDelegation.py kintercept.py ping.py services.py wmiexec.py
GetADUsers.py lookupsid.py psexec.py smbclient.py wmipersist.py
getArch.py mimikatz.py raiseChild.py smbexec.py wmiquery.py
Get-GPPPassword.py mqtt_check.py rdp_check.py smbpasswd.py
GetNPUsers.py mssqlclient.py registry-read.py smbrelayx.py

┌──(johnny㉿kali)-[/opt/impacket/examples]
└─$ python mssqlclient.py ARCHETYPE/sql_svc:[email protected] -windows-auth
Traceback (most recent call last):
File "mssqlclient.py", line 26, in
from impacket import version, tds
File "/usr/local/lib/python2.7/dist-packages/impacket/tds.py", line 35, in
from OpenSSL import SSL
File "/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl/OpenSSL/init.py", line 8, in
File "/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl/OpenSSL/crypto.py", line 12, in
File "/usr/lib/python2.7/dist-packages/cryptography/x509/init.py", line 8, in
from cryptography.x509.base import (
File "/usr/lib/python2.7/dist-packages/cryptography/x509/base.py", line 18, in
from cryptography.x509.extensions import Extension, ExtensionType
File "/usr/lib/python2.7/dist-packages/cryptography/x509/extensions.py", line 20, in
from cryptography.hazmat.primitives import constant_time, serialization
File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in
from cryptography.hazmat.bindings._constant_time import lib
ImportError: No module named _constant_time

Comments

  • edited May 30

    No module named _constant_time? can anyone help me out here?

  • Problem solved!!!!
    1. reinstall the setup.py by python3
    python3 setup.py install.
    2. run the command by python3!!!! ( Required SAME VERSION)
    sudo python3 mssqlclient.py ARCHETYPE/sql_svc:[email protected] -windows-auth

    i was installed them by different versions of python. What a stupid me. LOL

  • edited June 4

    Type your cosudo nc -lvnp 443
    Connection from 10.10.10.27:49721

    whoami

    I am new to htb
    what is the error could u help me to find

Sign In to comment.