简体   繁体   English

像使用python在两个套接字之间切换一样

[英]acting like a switch between two sockets with python

am very new to this community 对这个社区来说很陌生

192.168.10.159:35621 communicates with 192.168.10.40:9000 where i have act like a switch between two ports validate the inbound and outbound data and send on successful validation i have send same to respected IP's 192.168.10.159:35621与192.168.10.40:9000通信,在此我像两个端口之间的交换机一样,对入站和出站数据进行验证,并发送成功的验证,并将其发送给受尊重的IP

is there any sniffers or virtual network tools to help me on this please suggest 有没有嗅探器或虚拟网络工具可以帮助我解决这个问题,请提出建议

Try ncat like this: 像这样尝试ncat

ncat -o dump -l 192.168.10.159 35621 --sh-exec "ncat 192.168.10.40 9000"

If your distribution doesn't come with ncat or you are on windows you can get it from Nmap download page . 如果您的发行版不是ncat附带的,或者您在Windows上,则可以从Nmap下载页面获取它。 No installation required, just drop it somewhere convenient. 无需安装,只需将其放在方便的地方即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM