Skip to content

Instantly share code, notes, and snippets.

@kataya1
Created October 13, 2023 05:24
Show Gist options
  • Save kataya1/d5ef6be67021e9cb8539dd49a20da587 to your computer and use it in GitHub Desktop.
Save kataya1/d5ef6be67021e9cb8539dd49a20da587 to your computer and use it in GitHub Desktop.
Set up communications between kali and metasplotlib
  1. check settings > network of both machines, check if both of them are nat

  2. cd /etc/network ( navigating to the /etc/network )

  3. cat interfaces on metasploitable ( to show the content of interfaces )

  4. copy what's in metasploitabe interfaces to kali machine /etc/network "interfaces" example:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static

address 192.168.254.12
netmask 255.255.255.0
network 192.168.254.0

keep network and netmask the same but change the last octet in the address

  1. comment the line source /etc/network/interface.d/* by adding a # before it. like this #source /etc/network/interface.d/*

  2. restart both machines > login > type /etc/init.d/networking restart (on both machines)

sources: https://gist.github.com/dutchand/ddb9de7bd49f9fecb38a403716dc9187

machines:

metasploitable - username,password: msfadmin:msfadmin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment