首页 > 其他分享 >仿真模拟--telnet服务两种认证模式(自作)

仿真模拟--telnet服务两种认证模式(自作)

时间:2024-06-20 22:58:52浏览次数:21  
标签:仿真 aaa -- telnet server xiaodi client user local

自己做的笔记,有问题或看不懂请见解一下~

 

目录

两个路由器间实现telnet服务(password认证模式)

server

client

两个路由器间实现telnet服务(aaa认证模式)

server

client


改名

tab键补齐

不会就扣问号                                 ?

save

两个路由器间实现telnet服务(password认证模式)

server

接口配置好ip

开启telnet服务

设置用户端的监听

(认证模式,密码最大长度,密码,用户权限等级)

---自己搜搜吧....


client

将接口配置ip后

直接telnet连接服务端即可.

<Huawei>sy	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy	
[Huawei]sysname client
[client]
[client]
[client]
[client]int	
[client]interface G	
[client]interface GigabitEthernet 0/0/0
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]ip add	
[client-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[client-GigabitEthernet0/0/0]
Jun 20 2024 22:28:45-08:00 client %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]di	
[client-GigabitEthernet0/0/0]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 192.168.2.2 255.255.255.0 
#
return
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]qu
[client]
[client]
<client>sa	
<client>save 
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<client>
<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Password:
<server>
<server>

两个路由器间实现telnet服务(aaa认证模式)

server

进入接口,选择aaa模式认证.

进入aaa界面

创建账户名

(密码,权限等级,协议服务)

[server]aaa
[server-aaa]loca	
[server-aaa]local-user ?
  STRING<1-64>    User name, in form of 'user@domain'. Can use wildcard '*',    
                  while displaying and modifying, such as *@isp,user@*,*@*.Can  
                  not include invalid character / \ : * ? " < > | @ '
  wrong-password  Use wrong password to authenticate
[server-aaa]local-user xiaodi
                              ^
Error:Incomplete command found at '^' position.
[server-aaa]local-user xiaodi ?
  access-limit   Set access limit of user(s)
  ftp-directory  Set user(s) FTP directory permitted
  idle-timeout   Set the timeout period for terminal user(s)
  password       Set password 
  privilege      Set admin user(s) level
  service-type   Service types for authorized user(s)
  state          Activate/Block the user(s)
  user-group     User group
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi password ?
  cipher  User password with cipher text
[server-aaa]local-user xiaodi password  c	
[server-aaa]local-user xiaodi password  cipher ?
  STRING<1-32>/<32-56>  The UNENCRYPTED/ENCRYPTED password string
[server-aaa]local-user xiaodi password  cipher 123
Info: Add a new user.
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi passwor	
[server-aaa]local-user xiaodi password 
[server-aaa]local-user xiaodi password	
[server-aaa]local-user xiaodi pt	
[server-aaa]local-user xiaodi pr	
[server-aaa]local-user xiaodi pri	
[server-aaa]local-user xiaodi privilege 3
                                        ^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege >?
                                        ^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege ?
  level  Set admin user(s) level
[server-aaa]local-user xiaodi privilege l	
[server-aaa]local-user xiaodi privilege level 3
[server-aaa]
[server-aaa]
[server-aaa]local-user xiaodi ?
  access-limit   Set access limit of user(s)
  ftp-directory  Set user(s) FTP directory permitted
  idle-timeout   Set the timeout period for terminal user(s)
  password       Set password 
  privilege      Set admin user(s) level
  service-type   Service types for authorized user(s)
  state          Activate/Block the user(s)
  user-group     User group
[server-aaa]local-user xiaodi se	
[server-aaa]local-user xiaodi service-type tel	
[server-aaa]local-user xiaodi service-type telnet 
[server-aaa]
[server-aaa]
[server-aaa]
[server-aaa]di	
[server-aaa]dis this
[V200R003C00]
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
 local-user xiaodi password cipher %$%$zx!S#Qzc72@-{%"5}:<ZX:\'%$%$
 local-user xiaodi privilege level 3
 local-user xiaodi service-type telnet
#
return
[server-aaa]

client

telnet连接服务端,

输入账户密码,登录~

<client>
<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Password:
<server>
<server>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please retry to log on

  The connection was closed by the remote host
<client>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<client>
<client>tel	
<client>telnet 192.168.2.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.2.1 ...
  Connected to 192.168.2.1 ...

Login authentication


Username:xiaodi
Password:
Error: Local authentication is rejected.

  Logged Fail!

Username:xiaodi
Password:
<server>
<server>


标签:仿真,aaa,--,telnet,server,xiaodi,client,user,local
From: https://blog.csdn.net/2303_80857229/article/details/139844194

相关文章

  • MySQl配置环境变量
    配置环境变量(a)添加一个系统变量,变量名:CATALINA-HOME,变量值:MySql在自己电脑当中的安装路径,注意:5.7版本需要配置的路径是MySQL.Sever5.7的文件夹路径。 (b)在Path变量的结尾添加一个英文分号,之后把上面添加的路径导入进去(%CATALINA-HOME%)在这个结尾处添加\bin.......
  • 【学习笔记】爱立信SPO 1400 CRAFT软件基础知识3——图形用户界面之管理树
    一、前期准备提示:下面所有学习内容都是基于以下条件完成的条件1.已经正确安装并正常运行SPO1400CRAFT软件(以下简称LCT)条件2.确认已正确使用爱立信SPO1400CRAFT软件通过网络登录设备(以下简称NE)具体登录教程参考:使用爱立信SPO1400CRAFT软件通过网络登录设备的详细......
  • 【winform】ListBox如何给item项添加hover
    1、绑定move事件listBox1.MouseMove+=newMouseEventHandler(listBox_MouseMove);2、编写代码privatevoidlistBox_MouseMove(object?sender,MouseEventArgse){ListBox?listBox=senderasListBox;//获取鼠标在ListBox中的位置int......
  • 大模型培训 AUTOWEBGLM:自动网页导航智能体
     大语言模型(LLMs)在智能代理任务中发挥着重要作用,尤其是在网络导航方面。然而,现有的代理在真实世界的网页上表现不佳,主要原因网络导航代理面临着三大挑战:网页上行动的多样性、HTML文本的处理限制以及开放领域决策的复杂性。为了克服这些挑战,AUTOWEBGLM采用了基于ChatGLM3-6B模......
  • frida入门hook写法
    frida环境安装就不说了,参考查找到一篇文章,https://juejin.cn/post/7314981860497113099基础代码实现importfridaimportsysdefon_message(message,data):ifmessage["type"]=="send":print(f"[*]{message['payload']}")else:......
  • 6.2 事件的创建,修改和删除
    6.2.1事件的概述事件(Event)是在指定时刻才被执行的过程式数据库对象。事件通过MySQL中一个很有特色的功能模块——事件调度器(EventScheduler)进行监视,并确定其是否需要被调用。 MySQL的事件调度器可以精确到每秒钟执行一个任务,比操作系统的计划任务更具实时优势。对于......
  • JDBC(简介、入门与IDEA中导入MySQL的驱动)
    (建议学完MySQL的基础部分)JDBC——简而言之:用Java语言操作数据库。JavaDataBaseConnectivity(Java语言连接数据库)目录一、引言(1)基本介绍(2)JDBC简介1、JDBC概念2、详细介绍3、JDBC的本质二、JDBC快速入门(1)用Java代码操作对应的MySQL数据库的基本流程(2......
  • m2_day11 [IO流]
    课程内容:InputStreamReader和OutputStreamWriterIO流新特性InputStreamReader和OutputStreamWriter编码->编码方式->字符集ANSI(微软制定)=ASCII+GBK(本地编码,不同国家不同)​InputStreamReader和OutputStreamWriter是桥转换器,主要用于指定[字符编码]去读取或者写入数......
  • MySQL高级SQL语句
    目录1.MySQL进阶查询1.1select1.2distinct1.3where1.4andor1.5in1.6between1.7通配符1.8like1.9ORDERBY2.MySQL数据库函数2.1数学函数2.2聚合函数2.3字符串函数2.3.1upper、lower大小写转换2.3.2concat拼接2.3.3substr字符串截取2.3.3len......
  • m2_day12 [URL + Socket]
    课程内容:URL和SocketServer端Client端URL和SocketURL=>统一资源定位符:网址URLurl=newURL("网址");URLConnectionuc=url.openConnection();InputStreamis=uc.getInputStream();....​uc.getContentLength();得到目标内容长......