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

error ao executar script #1

Open
tuxjr opened this issue Feb 24, 2022 · 24 comments
Open

error ao executar script #1

tuxjr opened this issue Feb 24, 2022 · 24 comments

Comments

@tuxjr
Copy link

tuxjr commented Feb 24, 2022

Traceback (most recent call last):
File "/home/kali/Documents/EHoney/./EHoney.py", line 354, in
main()
File "/home/kali/Documents/EHoney/./EHoney.py", line 72, in main
import config.web as web
File "/home/kali/Documents/EHoney/config/web.py", line 33, in
Run(host='127.0.0.1', port=int(linecache.getline('/etc/ehoney/config/ports.conf', 5).split('=')[1]))
IndexError: list index out of range

@brosck
Copy link
Owner

brosck commented Feb 24, 2022

Baixe o EHoney novamente e execute o "install.sh" como root. Creio que o problema tenha sido corrigido.

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

[01] Start FTP Honeypot
[02] Start Telnet Honeypot
[03] Start Web Honeypot
[04] Create Report

Select: 3
[*] Honeypot is starting, good hunting ;)
[+] Honeypot started!

Traceback (most recent call last):
File "/home/kali/Documents/EHoney/./EHoney.py", line 354, in
main()
File "/home/kali/Documents/EHoney/./EHoney.py", line 72, in main
import config.web as web
File "/home/kali/Documents/EHoney/config/web.py", line 33, in
Run(host='127.0.0.1', port=int(linecache.getline('/etc/ehoney/config/ports.conf', 5).split('=')[1]))
IndexError: list index out of range

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

Estranho, mesmo erro. Deletei e dei um Git novamente, executado como root.

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

Vou tentar outra coisa aqui..

@brosck
Copy link
Owner

brosck commented Feb 24, 2022

Estranho, eu refiz os passos aqui da instalação e não ocorreu nenhum erro. Executei usando o python 3.10.1.

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

File "/home/kali/Documents/EHoney/./EHoney.py", line 354, in
main()
File "/home/kali/Documents/EHoney/./EHoney.py", line 60, in main
import config.ftp as ftp
File "/home/kali/Documents/EHoney/config/ftp.py", line 81, in
Run(host='127.0.0.1', port=int(linecache.getline('/etc/ehoney/config/ports.conf', 3).split('=')[1]))
File "/home/kali/Documents/EHoney/config/ftp.py", line 52, in init
if resposta:

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

Vou entao baixar esta versao que vc esta usando do python

@brosck
Copy link
Owner

brosck commented Feb 24, 2022

Baixa e depois me diz se funcionou.

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

Nada...Estou rodando em um kali, nao sei se isso interfere, mas irei criar agora uma vm na aws e testar la pra ver se da certo..

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

Mr, por acaso vc esta testando em qual distribuição linux ? Voltei a testar aqui com outro linux, Debian 11, instalei esse servidor limpo, rodei o ./install.sh mesmo assim nao foi..

root@clone:/EHoney# ./EHoney.py
Traceback (most recent call last):
File "/root/EHoney/./EHoney.py", line 11, in
import requests
ModuleNotFoundError: No module named 'requests'
root@clone:
/EHoney#

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

./EHoney.py
Traceback (most recent call last):
File "/root/EHoney/./EHoney.py", line 11, in
import requests
ModuleNotFoundError: No module named 'requests'

@brosck
Copy link
Owner

brosck commented Feb 24, 2022

Você tem o pip instalado ? Se tiver entra no diretório do EHoney e digita

pip install -r requirements.txt

O diretório /etc/ehoney foi criado ?

@tuxjr
Copy link
Author

tuxjr commented Feb 24, 2022

pip install -r requirements.txt
Requirement already satisfied: colorama in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 1)) (0.4.4)
cd /etc/ehoney/
config logs reports web

@brosck
Copy link
Owner

brosck commented Feb 24, 2022

Então dps do "pip install -r requirements.txt" tenta executar o "./EHoney.py" ou "ehoney"

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

quando executo "ehoney" ou "./EHoney.py" da esse erro:

Traceback (most recent call last):
File "/usr/bin/ehoney", line 11, in
import requests
ModuleNotFoundError: No module named 'requests'

Traceback (most recent call last):
File "/root/EHoney/./EHoney.py", line 11, in
import requests
ModuleNotFoundError: No module named 'requests'

@brosck
Copy link
Owner

brosck commented Feb 25, 2022

Digita pip install requests e depois executa novamente

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

Vou refazer tudo do zero novamente.. Quando roda o script ./install.sh já baixa automaticamente o Python?

@brosck
Copy link
Owner

brosck commented Feb 25, 2022

Sim, ele já instalado todos os requisitos.

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

Estranho, estou subindo outro debian do zero aqui, irei refazer.Nem irei instalar o Python, vou rodar pelo script entao..Assim ele já instala.

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

Neste exemplo setei opção 3, porem mesmo tentando acessar via navegador o ip nada ocorre..Precisa instalar apache, ou estou fazendo errado..

precisa abrir porta 80 com iptables?

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

 [Tool created by MrEmpy]
       [Version 1.0]

[01] Start FTP Honeypot
[02] Start Telnet Honeypot
[03] Start Web Honeypot
[04] Create Report

Select: 3
[*] Honeypot is starting, good hunting ;)
[+] Honeypot started!

@brosck
Copy link
Owner

brosck commented Feb 25, 2022

Não precisa instalar o apache. Na minha VPS eu usei o ufw para abrir a porta 21 externamente, talvez esse seja o problema. Isso acontece com as outros serviços do EHoney ?

@tuxjr
Copy link
Author

tuxjr commented Feb 25, 2022

Tambem, nenhum serviço responde, ftp, telnet e serviço web..

@brosck
Copy link
Owner

brosck commented Feb 25, 2022

Deve ser este o problema.

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