telnet

Linux配置SVN和MemCached

牧云@^-^@ 提交于 2019-12-16 14:39:26
SVN   Linux安装svn   yum -y install subversion(安装svn)   mkdir -p /svndata/projects/easyBuy   svnadmin create /svndata/projects/easyBuy(创建svn)   cd /svndata/projects/easyBuy/conf(修改配置文件)   vi authz(添加用户)        vi passwd(创建密码)        vi svnserve.conf(设置权限)                  svnserve -d -r /svndata(启动svn;-d:后台执行,-r:版本库的根目录)   iptables -I INPUT -p tcp --dport 3690 -j ACCEPT   service iptables save(开启svn默认端口)   MyEclipse添加svn   将 site-1.10.13-1.9.x 中的如下文件复制到:                  提交/上传项目    MemCached   Linux安装MemCached和Telnet   yum -y install memcached(安装Memcached)   memcached -u root -d -m 1024 -p 11211

Cisco防火墙基础介绍及配置

天大地大妈咪最大 提交于 2019-12-16 00:10:44
一、ASA(状态化防火墙)安全设备介绍: Cisco硬件防火墙技术应用领域: PIX 500 系列安全设备。 ASA 5500系列自适应安全设备。 Catalyst 6500 系列交换机和Cisco 7600 系列路由器的防火墙服务模块。 Cisco ASA 5500 系列自适应安全设备提供了整合防火墙、入 侵保护系统(IPS)、高级自适应威胁防御服务,其中包括应用安全和简化网络安全解决方案的V P N服务。 二、ASA状态化防火墙的安全算法: 状态化防火墙维护一个关于用户信息的连接表,称为 Conn表 Conn表中的关键信息如下: 源IP地址 目的IP地址 IP协议(例如TCP或UDP) IP协议信息(例如TCP/UDP端口号,TCP序列号,TCP控制位) 在上图中,当PC访问web服务器时,状态化防火墙处理的过程如下: 1、 PC发起一个HTTP请求给web服务器; 2、HTTP请求到达防火墙,防火墙将链接信息(如源IP地址和目的IP地址、使用的TCP协议、源IP地址和目的IP地址的TCP端口号)添加到conn表; 3、 防火墙将HTTP请求转发给web服务器; 流量返回时,状态化防火墙处理的过程如下: 1、web服务器相应HTTP请求,返回相应的数据流量; 2、防火墙拦截该流量,检查其连接信息; 如果在conn表中查找到匹配的连接信息,则流量被允许。

Telnet send string by character

余生颓废 提交于 2019-12-14 03:35:03
问题 I wrote code can send a message to server. Problem is if I capture communication in Wireshark my string message sent from my application looks like this: hello - 1 packet If I check the same message sent from Telnet cmd terminal message looks like this: h - 1 packet e - 1 packet l - 1 packet l - 1 packet o - 1 packet So finally it sent entire string by character. Server can read the message from cmd Telnet terminal and reply but can't read the message sent from my application. Is there some

empty buffer but IdTCPClient.IOHandler.InputBufferIsEmpty is false

半腔热情 提交于 2019-12-14 01:44:32
问题 I have problem in below code with idTCPClient for reading buffer from a telnet server: procedure TForm2.ReadTimerTimer(Sender: TObject); var S: String; begin if IdTCPClient.IOHandler.InputBufferIsEmpty then begin IdTCPClient.IOHandler.CheckForDataOnSource(10); if IdTCPClient.IOHandler.InputBufferIsEmpty then Exit; end; s := idTCPClient.IOHandler.InputBufferAsString(TEncoding.UTF8); CheckText(S); end; this procedure run every 1000 milliseconds and when the buffer have a value CheckText called.

Multiple telnet clients/commands under AnyEvent

不想你离开。 提交于 2019-12-13 19:37:40
问题 If I'm reading multiple $_->{thand}->cmd($cmd) commands through same telnet connection, I've got disconnects. This manifests as multiple calls to ae_connect() . How to properly send and fetch data under AnyEvent ? use strict; use warnings; use Data::Dumper; use AnyEvent::Socket; use AnyEvent; use Net::Telnet; $| = 1; my $arr = [ { username => "user+ct", passwd => "1234", Host => "92.242.254.8", Port => 1094 }, { username => "user+ct", passwd => "1234", Host => "92.242.254.8", Port => 1095 },

Telnet fails to run properly when run from daemon process

白昼怎懂夜的黑 提交于 2019-12-13 19:26:28
问题 When I call telnet to connect to daytime server from interactive shell, it works fine. However, when the same telnet call is issued from a shell script run by cron or some bash daemon process, it fails to yield any otput. I straced the both calls, and here they are: Successful one: execve("/usr/bin/telnet", ["telnet", "192.168.0.11", "13"], [/* 24 vars */]) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0x40005000 stat("/etc/ld.so.cache", {st_mode=S

Expect script problems

寵の児 提交于 2019-12-13 18:55:14
问题 I am new to expect and i was using a logic to automate diconnecting telnet session where user is logged in and leave other lines as it is: for {set i 0} {$i ==4} {incr i} { send "clear line vty $i\r" "confirm]" {send "\r"} "% Not allowed" {send "quit\r"; exit} } it disconnects all the lines now i use "show user" command but it's hard for me to write a script around it, the output is not friendly enough for me.so i wrote IF statements in this for loop but it was not good and not even deserving

how to read whole lines using ruby's net/telnet?

浪子不回头ぞ 提交于 2019-12-13 17:02:05
问题 I'm using the net/telnet library in ruby to read data from a server. It's sending commands as whole lines with a newline at the end, so I thought I'd do this: connection = Net::Telnet.new(options) connection.waitfor(/\n/) do |txt| process txt end That doesn't work because it sends me a whole bunch of lines all at once. I can fix that fairly easily by instead doing: connection.waitfor(/\n/) do |txt| txt.split("\n").each do |line| process line end end Except there's a problem with that too: the

Python Telnetlib read_until '#' or '>', multiple string determination?

瘦欲@ 提交于 2019-12-13 13:45:16
问题 if (tn.read_until('>')): action1 else: action2 or if (tn.read_until() == '>'): action1 else: action2 I just want the read_until() to check which desired String comes first, and do different actions. Or is there any equivalent ways? 回答1: Look at the docs. Read until wants the expected string as a positional argument and an optional timeout. I would do it like this: >>> try: ... response = tn.read_until(">", timeout=120) #or whatever timeout you choose. ... except EOFError as e: ... print

Expect Script Telnet email script

别来无恙 提交于 2019-12-13 10:34:03
问题 Trying to use Expect Script the Active TCL in Windows to send an email out every it is run. Below is the code I have but there is an error message displayed below and would appreciate any help on how to avoid the problem. Thank you. #!/usr/bin/expect # \ exec tclsh "$0" ${1+"$@"} package require Expect spawn plink -telnet IP PORT send "ehlo *******.com\r"; send "AUTH LOGIN\r"; expect "334 VXNlcm5hbWU6" sleep .1; send "*************\r"; sleep .1; expect "334 UGFzc3dvcmQ6\r" send "********\r";