hash3liZer / evilginx2

Standalone man-in-the-middle attack framework used for phishing login credentials along with session cookies, allowing for the bypass of 2-factor authentication
GNU General Public License v3.0
101 stars 40 forks source link

Error after MAKE command #14

Closed bonyakamara closed 3 years ago

bonyakamara commented 3 years ago

I am trying to install evilginx2 and after inputting the make command, see attachment for the errors I see. Where is emanating from? Do you think it is my server or from the evilginx release? Kindly assist with explanation.

evil

DO NOT ASK FOR PHISHLETS.

DO NOT ASK FOR HELP CREATING PHISHLETS.

DO NOT ASK TO FIX PHISHLETS.

DO NOT ADVERTISE OR TRY TO SELL PHISHLETS.

EXPECT A BAN OTHERWISE. THANK YOU!

REPORT ONLY BUGS OR FEATURE SUGGESTIONS.

JamesCullum commented 3 years ago

Do you have go installed? If so, is it the newest version? Please try go build instead.

bonyakamara commented 3 years ago

I have the latest build of go installed go version go1.15.5 linux/amd64

At what point do I run the go build? After I have gotten into the evilginx2 directory?

sudo apt-get -y install git make
git clone https://github.com/hash3liZer/evilginx2.git
cd evilginx2
go build

Am I right on this?

JamesCullum commented 3 years ago

You don't need make in this case, but yes, that's correct.

bonyakamara commented 3 years ago

Thanks for your prompt response.

After running the go build I tried running this command

sudo ./bin/evilginx -p ./phishlets/

I ended up with the error

sudo: ./bin/evilginx: command not found

I also tried running this other command for global install

sudo make install

I ended up with the error

cp: cannot stat './bin/evilginx': No such file or directory
Makefile:15: recipe for target 'install' failed
make: *** [install] Error 1

Please what can I do next to remedy this?

JamesCullum commented 3 years ago

The executable built by go build should be named evilginx2 - can you make sure to check if it suceeds and is created?

bonyakamara commented 3 years ago

If inside of the evilginx2 folder then it is.

Kindly see attachment to verify if I understood what you meant.

evil

JamesCullum commented 3 years ago

Yeah, the screenshot shows the evilginx2 executable. Run that one.

bonyakamara commented 3 years ago

Sorry to ask but which command do I run?

sudo ./bin/evilginx -p ./phishlets/ gives error like I pointed out. Tried again and it logged sudo: ./bin/evilginx: command not found

JamesCullum commented 3 years ago

The command is the name of the executable. This means you need sudo evilginx2

bonyakamara commented 3 years ago

Annoyingly, here's the result

sudo: evilginx2: command not found

This, I don't know what has gone wrong.

JamesCullum commented 3 years ago

This sounds like an issue with your local setup - compilation works but you struggle to execute it. Let me know if you find an issue related directly to the tool.

bonyakamara commented 3 years ago

I got a new VPS and carefully followed and ran the installation and ended up with the same error after running the command

root@30079:~/evilginx2# sudo evilginx2
sudo: evilginx2: command not found

I am totally lost at why this is not working fine anymore.

bonyakamara commented 3 years ago

To exhaust all my options, I decided to try installing with Docker.

docker

That was the result of the installation after pulling and downloading files then trying to make. I did not understand the last output but I figured out it was an error. I further continued with trying to run the evilginx2 and I got this other error.

docker2

At this point, can you figure out anything could be wrong somewhere? See below my evilginx2 folder

docker3

Kindly advice and direct.

JamesCullum commented 3 years ago

Try sudo /root/evilginx2/evilginx2 and make sure the file is executable (chmod +x /root/evilginx2/evilginx2)

bonyakamara commented 3 years ago

sudo ./evilginx2 and sudo /root/evilginx2/evilginx2 did it.

Thanks a lot James. I very much appreciate your assistance on this.

Next anticipated challenge would be the acme challenge on generating SSL. I hope what I've read around being an issue won't affect mine :)

bonyakamara commented 3 years ago

Thanks @JamesCullum for the lead. Everything worked fine both the SSL generation wasn't any big deal generating. I very much appreciate your time and directions.

bonyakamara commented 3 years ago

One question here please @JamesCullum as I don't see it big enough to open a new issue for.

I uploaded a zip containing some phishlets and tried installing but they are not showing up on the list of available phishlets when I run evilginx2. My commands are below.

unzip extra.zip
sudo mv phishlets-master/* /usr/share/evilginx/phishlets/
rm -rf extra.zip phishlets-master/

If I changed directory to /usr/share/evilginx/phishlets/ I see them but they don't appear as available for enabling. Can you guide me in case the directory schematics or command would be changed from what I have shown above?

JamesCullum commented 3 years ago

Hey @bonyakamara, as your questions are quite general about on how to use Linux, I would recommend taking some courses and understanding the different aspects of the OS. While I might be able to see sometimes what your issue is, this is not the right place for IT support and I can hardly help you without having full insight into what and how you are doing it.

bonyakamara commented 3 years ago

Well gotten.

Just didn't want to do anything aside what the usage and installation guides stated.

JamesCullum commented 3 years ago

Sure - I've updated the documentation to potentially clarify those things more.

Quedubs commented 7 months ago

I am trying to install evilginx2 and after inputting the make command, see attachment for the errors I see. Where is emanating from? Do you think it is my server or from the evilginx release? Kindly assist with explanation.

evil

DO NOT ASK FOR PHISHLETS.

DO NOT ASK FOR HELP CREATING PHISHLETS.

DO NOT ASK TO FIX PHISHLETS.

DO NOT ADVERTISE OR TRY TO SELL PHISHLETS.

EXPECT A BAN OTHERWISE. THANK YOU!

REPORT ONLY BUGS OR FEATURE SUGGESTIONS.

I am facing the same issue presently, can anyone please help