3
respostas

Erro ao tentar clonar o site da Alura

Olá, ao tentar clonar o site me é exibido a seguinte mensagem:

[] Cloning the website: https://cursos.alura.com.br/loginForm?urlAfterLogin=http://cursos.alura.com.br/dashboard [] This could take a little bit...

[!] Something went wrong, printing the error: zipimporter() argument 1 must be string, not function

3 respostas

Olá Lopes,

Fiz uma pesquisa no site da TrustedSec (que mantém o setoolkit), parece que dependendo da versão do Setoolkit, pode ocorrer esses problemas. Eles sugeriram alterar a seguinte configuração, no terminal digite:

gedit /root/social-engineer-toolkit/src/webattack/harvester/harvester.py

Um pouco acima de

############################################
#          Credential harvester            #
############################################

Deixe todas essas linhas comentadas:

# detect openssl module
#_try:
# from OpenSSL import SSL
# handle import error that openssl is not there
# except ImportError:
# print("Python OpenSSL wasn't detected, note that SSL compatibility is now turned off")

Depois disso tente salvar o arquivo e rodar o setoolkit. Para rodar o setoolkit, vá até o diretório social-engineering-toolkit digitando

cd social-engineering-toolkit/

E depois:

./setoolkit

Abs

Olá, tentei como vc falou mas nao deu certo, dei uma olhada tambem no forum da GitHub mas nao quis mexer muito no script. ha algo ainda pra fazer?

Obs: a linha ficou nesta sequencia:

if track_email == True: print_status("You have selected to track user accounts, Apache will automatically be turned on to handle tracking of users.") apache_check = True detect openssl module

_try:

from OpenSSL import SSL

handle import error that openssl is not there

except ImportError:

print("Python OpenSSL wasn't detected, note that SSL compatibility is now turned off")

define the current working directory

#

Credential harvester

#

# definepath = os.getcwd() me = mod_name()

append python to our current working directory

sys.path.append(definepath)

Olá Lopes,

Seria isso mesmo, também estive testando localmente a nova versão setoolkit e parece que tiveram algumas mudanças na funcionalidade da ferramenta, também ainda não consegui resolver esse problema, mandei um e-mail para a trustedsec (desenvolvedores do setoolkit) para verificar as alterações que foram feitas e como podemos resolver.

Nesse meio tempo, pediria a gentileza se puder seguir para a próxima aula enquanto tento verificar com a trustedsec o problema.

Abs

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software