一. 实训23(MD5的计算和破解)
123456
e10adc3949ba59abbe56e057f20f883e
1234567
fcea920f7412b5da7be0cf42b8c93759
#3508d8fedc70d04c5d178dbbc2eac72a(7位,纯数字)对应的原始值
print("5271764")#填入MD5对应的字符串
#ef73781effc5774100f87fe2f437a435(8位,数字+字母)对应的原始值
print("1234abcd")#填入MD5对应的字符串
#909cc4dab0b2890e981533d9f27aad97(8位,数字+字母+特殊符号)对应的原始值
print("123abc$#")#填入MD5对应的字符串
二. 防火墙
linux下IPTABLES配置详解 - 三毛仔 - 博客园
iptables -A INPUT -s 0.0.0.0 -p tcp --dport 22 -j ACCEPT
iptables -save > iptables.txt
三. 静态NAT配置
GNS3 vpcs ip、网关设置_不知名的猪的博客-CSDN博客_gns3pc怎么配置ip和网关
使用GNS3进行子网及路由的简单配置_橘子女侠的博客-CSDN博客_gns3路由器配置
⭐右键设置,把两个路由器的slot1设置成NM-4T,才有s接口
(太久了有点想不起了,挑重点写点)
conf t
//f0设为内部接口
int f0/0
ip nat inside
//配置f0的ip
ip address 192.168.1.1 255.255.255.224
no shutdown
//s0设为外部接口,配置ip
int s1/0
ip nat outside
ip address 100.99.12.1 255.255.255.224
no shutdown
……
//PC配置网关
ip 192.168.1.10/24 192.168.1.1/24
……
//配置静态 NAT
//ip nat inside(内部) source static(静态) 192.168.1.1(源地址) 100.1.1.1(外部接口IP地址)
ip nat inside source static 192.168.1.10 100.99.12.10
ip nat inside source static 192.168.1.20 100.99.12.20
速通检测文件:
hostname R1
interface Serial1/0
ip address 100.99.12.1 255.255.255.0
ip nat outside
ip virtual-reassembly
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip nat inside source static 192.168.1.10 100.99.12.10
ip nat inside source static 192.168.1.20 100.99.12.20
hostname R2
interface Serial1/0
ip address 100.99.12.2 255.255.255.0
set pcname PC1
ip 192.168.1.10 192.168.1.1 24
set pcname PC2
ip 192.168.1.20 192.168.1.1 24
四. 远程会话
第一关:其实应该在静态NAT之前做,可以用来熟悉一下gns3,跟cisco packet tracer差不多
速通检测文件:
interface Loopback1
ip address 192.168.10.1 255.255.255.0
--
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
set pcname PC1
ip 192.168.1.10 192.168.1.1 24
第二关:也是直接按题目做,这题其实比静态NAT那题简单
- 建工程
- 连拓扑图
- R1R2配置ip
- R1R2配置 telnet,允许特权模式登录,密码设置为 123
R1(config)#enable password 123 //启用进入特权模式的密码,如果不设置则 telnet 无法进入特权模式
R1(config)#line vty 0 4 //允许 0 到 4 共 5 个人登录
R1(config-line)#password 123 //登录密码设置为 123
R1(config-line)#login //启用登录
R1(config-line)#exit
R2(config)#enable password 123 //启用进入特权模式的密码,如果不设置则 telnet 无法进入特权模式
R2(config)#line vty 0 4 //允许 0 到 4 共 5 个人登录
R2(config-line)#password 123 //登录密码设置为 123
R2(config-line)#login //启用登录
R2(config-line)#exit
- 按题目write
速通检测文件:
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
enable password 123
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
enable password 123