
idiegohr
(usa CentOS)
Enviado em 17/01/2017 - 16:25h
Sou novo nessa area então vou direto ao assunto.
Tenho uma VPS com Centos7 e vi que nela tem python 2.7.5 nativo.
Quando vou executar script que baixei, da um erro.(NÃO É APENAS COM UM SCRIPT, TODOS QUE TESTEI ESTA COM O MESMO ERRO)
Então decidi instalar o python 3 esperando que arrumasse o problema.
Mas fui executar o arquivo e novamente com o erro:
QUANDO TENTO EXECUTA COM O
PYTHON2:
Traceback (most recent call last):
File "attack.py", line 182, in <module>
main(sys.argv[1:])
File "/usr/lib64/python2.7/threading.py", line 746, in start
_start_new_thread(self.__bootstrap, ())
QUNADO TENTO EXECUTAR COM O
PYTHON 3:
File "attack.py", line 78
print term.BOL+term.UP+term.CLEAR_EOL+"Posting: %s" % p+term.NORMAL
^
SyntaxError: Missing parentheses in call to 'print'
OUTRO SCRIPT AGORA
COM
PYTHON3:
File "eco.py", line 63
print '---------------------------------------------------'
^
SyntaxError: Missing parentheses in call to 'print'
COM
PYTHON2:
File "eco.py", line 165, in <module>
host = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
NÃO SEI O QUE FAZER TODOS SCRIPTS ESTÃO COM ESSES ERROS.