kali basic commands

kali basic commands


file

Shut down the system immediately shut down shutdown -h nowor init 0
reboot reboot
Create a folder mkdir{folder name}
to create the file touch{filename}
rename the file mv{file or folder name}
delete file rm{filename folder plus parameter (-r)}


Network Configuration

NIC configurationvim /etc/network/interfaces

auto eth0
iface eth0 inet static
netmask 255.255.255.0#子网掩码
address 172.16.30.102#要设置的主机IP地址
gateway 172.16.30.254#网关

Restart cardservice networking restart


Configuring the DNS nano /etc/resolv.conforvim /etc/resolv.conf

nameserver 8.8.8.8


ifconfig

1. Command Format:

ifconfig [网络设备] [参数]

2. Command functions:

ifconfig command to view and configure network devices

3. Command parameters:

up 启动指定网络设备/网卡。
down 关闭指定网络设备/网卡。该参数可以有效地阻止通过指定接口的IP信息流,如果想永久地关闭一个接口,我们还需要从核心路由表中将该接口的路由信息全部删除。
arp 设置指定网卡是否支持ARP协议。
-promisc 设置是否支持网卡的promiscuous模式,如果选择此参数,网卡将接收网络中发给它所有的数据
-allmulti 设置是否支持多播模式,如果选择此参数,网卡将接收网络中所有的多播数据包
-a 显示全部接口信息
-s 显示摘要信息(类似于 netstat -i)
add 给指定网卡配置IPv6地址
del 删除指定网卡的IPv6地址
<硬件地址> 配置网卡最大的传输单元
mtu<字节数> 设置网卡的最大传输单元 (bytes)
netmask<子网掩码> 设置网卡的子网掩码。掩码可以是有前缀0x的32位十六进制数,也可以是用点分开的4个十进制数。如果不打算将网络分成子网,可以不管这一选项;如果要使用子网,那么请记住,网络中每一个系统必须有相同子网掩码。
tunel 建立隧道
dstaddr 设定一个远端地址,建立点对点通信
-broadcast<地址> 为指定网卡设置广播协议
-pointtopoint<地址> 为网卡设置点对点通讯协议
multicast 为网卡设置组播标志
address 为网卡设置IPv4地址
txqueuelen<长度> 为网卡设置传输列队的长度

ifconfg configuration content
Description:

eth0 represents a card, wherein a physical address indicating HWaddr card, can see the current physical address of the NIC (MAC address) is 00: 50: 56: BF: 26: 20

inet addr IP address of the network card is used to indicate, IP address, this card is 192.168.120.204, broadcast address, Bcast: 192.168.120.255, Mask Address Mask: 255.255.255.0

lo is a loopback address of the host, this is generally used to test a web application, but do not want the user LAN or outside the network to view, and the view can only run on which network interfaces on this host. For example, to specify HTTPD server back to the bad address, you will be able to see what you stand WEB site in browser and enter 127.0.0.1. But only you can see, the host or other LAN users do not know.

First line: Connection Type: Ethernet (Ethernet) HWaddr (hardware mac address)

The second line: IP address of the network card, subnet mask

Third row: the UP (NIC on state on behalf of) the RUNNING (on behalf of the network cable is connected to the card) the MULTICAST (supports multicast) the MTU: 1500 (maximum transmission unit): 1500 bytes

Fourth, the five elements: receive and send data packets Statistics

Seventh row: receive and send data bytes statistics.

Commonly used ifconfig command:

On Off NIC

ifconfig eth0 upStart card
ifconfig eth0 downclose card

Configure IPv6 address

ifconfig etho add <ipv6地址>Configure IPv6 address
ifconfig eth0 del <ipv6地址>to delete ipv6 address

MAC address modification ifconfig

ifconfig eth0 hw ether00:22:22:33:44:55Modify the local network card address

Quickly configure the network card address

ifconfig eth0 192.168.120.56 netmask 255.255.255.0 broadcast 192.168.120.255 <Subnet mask> <broadcast address>

On Off arp protocol

ifconfig eth0 arpArp agreement to open
ifconfig eth0 -arpclosed arp protocol

Setting the maximum transmission unit

ifconfig eth0 mtu 1500Maximum transfer unit 1500bytes

A1
条件C1
条件C2
条件C3
模块A
模块B
判断条件C
模块D
模块E
模块F
A B 是否已收到消息? 已收到消息 A B
Mon 11 Mon 18 Mon 25 Mon 02 Mon 09 Mon 16 Mon 23 任务1 任务2 任务3 任务4 项目A 项目B 甘特图

Guess you like

Origin blog.csdn.net/leesinalps/article/details/84302956