This blog is NOT OFFICIAL website of Kali Linux. We just share Tutorials to learn Cybersecurity.

LockPhish -- Phishing Attack on Lock Screen

LockPhish is the first phishing tool that can grab Windows credentials, Android PIN and iPhone Passcode using a https link. This tool is originally developed by TheLinuxChoice.

LockPhish - Phishing Attack on lock screen
Phishing attack on Lock Screen
This creates a fake lock-screen on target devices whenever target puts credential it captures it and sends to attacker using a ngrok tunnel. This tool automatically detect the device. Also track victim's IP address.

Key Features of LockPhish

  • Lock screen phishing page for Windows, Android and iPhone.
  • Auto detect device.
  • Port Forwarding by Ngrok.
  • IP Tracker.

Lets starts the installation process.

First we open our terminal window and type following command to clone this tool from it's GitHub repository:

git clone
Then it will start the cloning process as shown in following screenshot.

git clonning lockphish

After finishing the process we need to go to LockPhish directory by using cd command:

cd lockphish

We need to give lockphish root access before run. To do that we apply following command:

sudo chmod +x
Then we need to run the tool by using following command:


The main menu of LockPhish will open as showing in the following screenshot:

lockphish main menu

Here we need to put the redirecting website's link after phishing. The default value is set to YouTube. YouTube is good for social engineering or we can put other links. Here for an example we keep it default and hit the Enter button.

Then it will download ngrok in our Kali Linux system, and configure the phishing servers on our localhost and finally give us the Phishing URL.

Now we can send this link to our target with some social engineering techniques. When our target opens this link it will ask to redirect on YouTube.
When our target clicks here to be redirected on YouTube, the device shows following kind of screen:

Phish the lockscreen
Phishing attack on device's lock-screen
After our victim inputs his Unlock PIN we got it on our terminal.

PIN received
PIN received
The same thing will work on Windows PC and iPhone, we just need to send the link it will automatically detect the type of device (Android, Windows, iPhone)

This is how we can use the phishing attack on devices lock-screen and get the login credentials.

Warning:-  This tutorial is for educational purpose only. It shows how the modern day phishing attack works. Phishing is a serious crime. If anyone do any illegal activity then we are not responsible for that.

If you liked our this tutorial then follow our blog regularly for more good quality Kali Linux tutorials. Follow us on Twitter and Medium for quick updates. Faced any problem or have any thoughts with this article then leave a comment below, we always replay.
Kali Linux


Post a Comment
  • AnonymousMay 27, 2020 at 1:23 PM

    please tell bro, how to identify A device location with IMEI number.

    Delete Comment
    • Kali Linux photo
      Kali LinuxMay 28, 2020 at 7:36 AM

      This is gonna be tough. Articles on Google will lead you to fake articles. We wil try to write an article about it.

      Delete Comment
      • AnonymousMay 31, 2020 at 10:39 AM

        plz bro, try to do the article as soon as possible, eagerly waiting for your article. thak you bro.

        Delete Comment
        • Kali Linux photo
          Kali LinuxJune 1, 2020 at 8:42 AM

          Hi, we have researched about this. This requires permissions from Network Service Providers. They have access the devices IMEI numbers with SIM cards and they can track location of devices by using signaling towers. Even law enforcement needs help of these service providers to do this kind of location tracking. This is possible but not for everyone, who have high authority permissions in network providers services can do this.

          Delete Comment
          • AnonymousMay 9, 2024 at 7:24 AM

            Not giving link

            Delete Comment
          • black_snowAugust 10, 2020 at 11:09 PM

            hey...i am not getting the direct link after everything is i doing something wrong?

            Delete Comment
          • Aryan kaushik photo
            Aryan kaushikAugust 27, 2020 at 2:59 PM

            is it not possible locate our device if we lost or someone stole it.And the fucking police they never help to find such devices that does not cost high. is there any solution to do it on ourself

            Delete Comment
            • Kali Linux photo
              Kali LinuxAugust 27, 2020 at 5:49 PM

              This tool is not created for finding or locating phones. You should insure your mobile device.

              Delete Comment
            • AnonymousAugust 31, 2020 at 7:47 PM

              its not showing the pin phising page

              Delete Comment
              • AnonymousSeptember 2, 2020 at 11:55 AM

                Yeah!! I am facing the same issue

                Delete Comment
                • Kali Linux photo
                  Kali LinuxSeptember 2, 2020 at 5:40 PM

                  This tool doesn't created by us. The creator of this tool is discontinued this project so we re-uploaded this work. This seems not working.

                  Delete Comment
                • JaaM Arif photo
                  JaaM ArifSeptember 19, 2020 at 10:09 AM


                  Delete Comment
                  • Kovid SrivartSeptember 23, 2020 at 12:48 AM

                    i am unable to create the direct link

                    Delete Comment
                    • Päwäñ ßäï photo
                      Päwäñ ßäïSeptember 24, 2020 at 7:13 PM

                      I can't access it in my mobile some of that commands are not working for me how can I do.

                      Delete Comment
                    • cyberdigital photo
                      cyberdigitalNovember 17, 2020 at 10:37 AM

                      i am unable to create the direct link
                      check here:

                      Delete Comment
                      • Kali Linux photo
                        Kali LinuxNovember 17, 2020 at 11:12 AM

                        Sorry to say but this project is discontinued.

                        Delete Comment
                        • cyberdigital photo
                          cyberdigitalNovember 18, 2020 at 12:08 AM

                          thank you...

                          Delete Comment
                          • AnonymousOctober 25, 2023 at 4:38 PM

                            yeah!! even i have done the process correct everything is going good but it is not displaying the direct link..

                            Delete Comment
                          • Unknown photo
                            UnknownMarch 18, 2021 at 12:39 PM

                            Not getting a direct link... are servers down?

                            Delete Comment
                            • Kali Linux photo
                              Kali LinuxMarch 22, 2021 at 11:28 AM

                              Might be servers are down. If you are using termux then try to run lockphish during mobile wifi hotspot on.

                              Delete Comment
                            • iamKK photo
                              iamKKMay 7, 2021 at 1:37 AM

                              how come it did not gave a direct link url adress it shows blank in terminal

                              Delete Comment
                            • HijrahHoleescht photo
                              HijrahHoleeschtJune 10, 2021 at 10:32 PM

                              Hi bro I Pretty 👍 just visiting the nice article and clear info bout it then your response comment are hint me,what ur said bout google yeah i agree with that,

                              Delete Comment
                              • Kali Linux photo
                                Kali LinuxJune 11, 2021 at 5:48 PM

                                Thanks a lot. Got lots of motivation from your comment. Keep Visiting. More awesome contents are coming. Thanks again.

                                Delete Comment
                              • Unknown photo
                                UnknownAugust 20, 2021 at 3:10 PM

                                It's not giving a link there's an empty space after direct link:
                                PLZ HELP

                                Delete Comment
                                • Kali Linux photo
                                  Kali LinuxAugust 21, 2021 at 4:25 AM

                                  Are you on Termux? Then please close everything and first open your WiFi hotspot then open Termux and run the script.

                                  Delete Comment
                                  • Anthony Klean Newtoxton photo
                                    Anthony Klean NewtoxtonDecember 23, 2021 at 3:10 PM

                                    its running on
                                    just find a way to run ngrok or any forwarder and forward port 3333 under http
                                    get the link and spam...

                                    Delete Comment
                                  • Unknown photo
                                    UnknownAugust 24, 2021 at 10:52 PM

                                    im getting no linkkkkkkkkkkkkkkkkkkkkkkk im using kali linuxxxxxx helpppppppppp meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

                                    Delete Comment
                                  • Karen Neves photo
                                    Karen NevesOctober 6, 2021 at 11:31 PM

                                    Não está aparecendo o link, me ajudem

                                    Delete Comment
                                    • Kali Linux photo
                                      Kali LinuxOctober 7, 2021 at 5:58 PM

                                      Esta ferramenta é muito antiga. Tente hospedar a página em seu sistema e encaminhar manualmente a porta via ngrok

                                      Delete Comment
                                    • AnonymousApril 12, 2023 at 1:14 PM

                                      Hello, I'm writing with a problem in the code execution.
                                      After writing :
                                      [+] Redirect after phishing (Default: Youtube ):
                                      everything should be green, but I get this:

                                      [+] Starting php server...
                                      [+] Starting ngrok server...
                                      [+] Building webpages
                                      [+] Direct link:

                                      that is, the last two items are not highlighted in green and the code does not work

                                      Delete Comment
                                      • AnonymousMay 14, 2023 at 11:27 AM

                                        I have done everything correctly but the direct link is not showing. Please tell me what to do?

                                        Delete Comment
                                        • AnonymousJanuary 13, 2024 at 7:21 PM

                                          yes the same issue Direct link is not appearing only blank

                                          Delete Comment