Skip to main content

Importing Exploit-DB Exploits into Metasploit in Kali Linux for Offline Access

You're going to need three terminals open for this.

Terminal 1 for starting metasploit

Terminal 2 for importing the exploit to local Metasploit repository

Terminal 3 for searchsploit which we will use to search for the exploit instead of opening your browser and looking in exploitdb.

Let's be done with it!

1. First, open the first terminal to run metasploit with the following commands:

> service postgresql start
> msfconsole

 2. Go to Terminal 3 and run the following command to update its database:

> searchsploit -u

3. Open Terminal 2, then go to the metasploit modules directory by:

> cd .msf4/modules

4. Then create a directory inside the msf4 modules folder:

> mkdir exploits

5. Now, back to the Terminal 3. We will to search for an exploit we want to import. Let's first try to look for the explore ms15-100 by typing:

> searchsploit msf15-100

After pressing Enter, you should be able to see the search result. It will be a table with two columns -- Exploit Title and Path. We are interested in the path for now for the next step.

6. In the Terminal 2, I assume that you are still in .msf4/modules/exploits. Now we want to create the same directory structure as the one in the searchsploit result for ms15-100. There are two. Let's get the one with the Ruby for now. Using the terminal, create the same folder structure:

> mkdir windows
> cd windows
>mkdir remote
>cd remote

7. Now let's copy the exploit into our newly created folder. The exploit should be inside the /usr/share/exploitdb/ folder as stated in searchsploit results. So go ahead and type:

> cp /usr/share/exploitdb/exploits/windows/remote/38195.rb /root/.msf4/modules/exploits/windows/remote/

8. Now if you type the ls command, you should see the newly pasted file 38195.rb

9. Now, in order to use the newly imported exploit in msfconsole, we need to update the kali folder directory with:

>updatedb

10. No, in the Terminal 1 restart the msconsole:

> exit
>msfconsole

11. Now in the same Terminal 1 when msfconsole started successfully, you can search the ms15-100 exploit:

>search ms15-100

You will find that it is located in our folder exploit/windows/remote/38195.

You can now use it without the internet.

Popular posts from this blog

Using Termux in Android to Download Youtube Videos

In termux: apt update && apt upgrade Give termux access to your phone's filesystem via ~/storage/shared termux-setup-storage Install python: packages install python Install youtube-dl pip install youtube-dl Create a folder to store your downloaded videos: mkdir /data/data/com.termux/files/home/storage/shared/Youtube Create youtube-dl config (volume-down key emulates Ctrl in termux): nano ~/.config/youtube-dl/config The contents of my config is as follows: --no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f "best[height<=480]" (the height<=480 tells youtube-dl to download the best quality version up to 480px in width. You can change to 240, 360, 720 or 1080, etc to suit your needs / bandwidth restrictions. Save with "Volume-down" + O, then close nano with "Vol-down" + X Create "termux-url-opener" in ~/bin to enable one-click download via the "Share" menu i...

Different ways Product Managers can add value

Product Management is NOT about adding new features to your product! It's about adding VALUE! ๐—›๐—ฒ๐—ฟ๐—ฒ ๐—ฎ๐—ฟ๐—ฒ ๐Ÿด ๐—ฑ๐—ถ๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐˜ ๐˜„๐—ฎ๐˜†๐˜€ ๐˜†๐—ผ๐˜‚ ๐—ฐ๐—ฎ๐—ป ๐—ฎ๐—ฑ๐—ฑ ๐˜ƒ๐—ฎ๐—น๐˜‚๐—ฒ ๐˜๐—ผ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜: ๐˜๐˜ข๐˜ญ๐˜ถ๐˜ฆ ๐˜ข๐˜ด ๐˜‹๐˜ช๐˜ณ๐˜ฆ๐˜ค๐˜ต ๐˜ฎ๐˜ฆ๐˜ต๐˜ณ๐˜ช๐˜ค๐˜ดโ€™ ๐˜จ๐˜ณ๐˜ฐ๐˜ธ๐˜ต๐˜ฉ  -  This most basic, business-driven aspect of the โ€œvalueโ€ concept. It will often drive your product goals, and itโ€™s easy (and mandatory!) to measure. New features will mostly fall under this category! ๐˜๐˜ข๐˜ญ๐˜ถ๐˜ฆ ๐˜ข๐˜ด ๐˜ฑ๐˜ณ๐˜ฆ๐˜ท๐˜ฆ๐˜ฏ๐˜ต๐˜ช๐˜ฏ๐˜จ ๐˜ข ๐˜ฑ๐˜ณ๐˜ฐ๐˜ฃ๐˜ข๐˜ฃ๐˜ญ๐˜ฆ ๐˜ง๐˜ถ๐˜ต๐˜ถ๐˜ณ๐˜ฆ ๐˜ฅ๐˜ณ๐˜ฐ๐˜ฑ ๐˜ช๐˜ฏ ๐˜ฎ๐˜ฆ๐˜ต๐˜ณ๐˜ช๐˜ค๐˜ด -  Any product is like a house; if not maintained and fixed, it will eventually collapse. This aspect translated into quality that the client/user often doesnโ€™t get to appreciate until itโ€™s too late. To achieve this kind of value, you will have your development team fixing bugs, making products scalable, and introducing/replacing old technologies in favour of newer ones. ๐˜๐˜ข๐˜ญ๐˜ถ๐˜ฆ ๐˜ข๐˜ด ๐˜ต๐˜ฉ๐˜ฆ ๐˜ข๐˜ฃ๐˜ช๐˜ญ๐˜ช๐˜ต๐˜บ ๐˜ต๐˜ฐ ๐˜ต๐˜ณ๐˜ข?...