kgretzky / evilginx

PLEASE USE NEW VERSION: https://github.com/kgretzky/evilginx2
MIT License
1.07k stars 261 forks source link

Getting evilginx working on Kali Linux #43

Closed vthaz closed 6 years ago

vthaz commented 7 years ago

Hi there, juz wanted to share my way of trying to install evilginx on Kali Linux. What have I overcome and with what I'am still having problems with.

Issues:

  1. Lack of zlib library solution: apt install zlib1g-dev
  2. Location and then versions of the modules (prevents nginx from starting) ` root@kali:~/evilginx# systemctl status nginx.service ● nginx.service - The NGINX HTTP and reverse proxy server Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2017-10-15 12:31:22 EDT; 15s ago Process: 25771 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)

Oct 15 12:31:22 kali systemd[1]: Starting The NGINX HTTP and reverse proxy server... Oct 15 12:31:22 kali nginx[25771]: nginx: [emerg] module "/etc/nginx/nginx/modules/ngx_http_auth_pam_module.so" version 1013005 instead of 1011002 in /etc/nginx/modules-enabled/50-mod-http-auth-pam.conf:1 Oct 15 12:31:22 kali nginx[25771]: nginx: configuration file /etc/nginx/nginx.conf test failed Oct 15 12:31:22 kali systemd[1]: nginx.service: Control process exited, code=exited status=1 Oct 15 12:31:22 kali systemd[1]: Failed to start The NGINX HTTP and reverse proxy server. Oct 15 12:31:22 kali systemd[1]: nginx.service: Unit entered failed state. Oct 15 12:31:22 kali systemd[1]: nginx.service: Failed with result 'exit-code'. ` solution: At first I just searched for missing modules and made symbolic links to where nginx was looking for them but as You can see that didn't solve the problem as after links were created modules version issue occured :/ Tried to check nginx.conf for any suggestions of module versions validation and how to disable it but failed. Any suggestions? (Sorry for mistakes, this is my first post)

poweroftrue commented 6 years ago

Hello @vthaz Evilginx only support Debian right now but you can help us in the experiment docker image here: https://github.com/kgretzky/evilginx/pull/45

You should able to run this on any operating system with Docker installed.

acordeonmorado commented 6 years ago

exactly the same problem.

kgretzky commented 6 years ago

This is probably related to the fact that Kali comes with nginx preinstalled and the current configuration may interfere with the one already installed.

Please use clean Debian distro on external VPS as a remedy for that, for now.