Kali Apache2

ホストオンリーアダプター

# ifconfig
eth0: flags=4163  mtu 1500
        inet 192.168.56.104  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::a00:27ff:fecf:9a31  prefixlen 64  scopeid 0x20
        ether 08:00:27:cf:9a:31  txqueuelen 1000  (イーサネット)
root@kali:~# ifconfig eth0 down
root@kali:~# ifconfig eth0 192.168.56.105 up
root@kali:~# ifconfig
eth0: flags=4163  mtu 1500
        inet 192.168.56.105  netmask 255.255.255.0  broadcast 192.168.56.255
        ether 08:00:27:cf:9a:31  txqueuelen 1000  (イーサネット)
        RX packets 128  bytes 17413 (17.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37  bytes 21777 (21.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
# service apache2 start

f:id:hirose-test:20190814053242j:plain

/* -----codeの行番号----- */