博客
关于我
3、使用Windows命令来实现端口转发
阅读量:195 次
发布时间:2019-02-28

本文共 1701 字,大约阅读时间需要 5 分钟。

0x00 ??

?Windows?????XP???????????????????????????????????TCP???IPv4?IPv6????????????????????????????????????????????????Windows??????????????????

?Linux??iptables?????Windows?????????????????????????????????Windows???


0x01 ????

???Windows?????????????Portproxy????Netsh??????????????????

netsh interface portproxy add v4tov4 listenaddress=localaddress listenport=localport connectaddress=destaddress connectport=destport

?????

  • listenaddress????????IP???
  • listenport???????TCP???
  • connectaddress??????????????IP???
  • connectport??????????
  • ?????????RDP??????3389??????3340????????????

    netsh interface portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110

    0x02 ????

  • ???????????netstat????3340?????????
  • netstat -ano | findstr :3340
    1. ????????????????????3340???????????????????
    2. netsh advfirewall firewall add rule name="forwarded_RDPport_3340" protocol=TCP dir=in localip=10.1.1.110 localport=3340 action=allow
      1. ?????????netsh interface portproxy show all??????????????

      2. 0x03 ????

        ??TCP???????

        ????????3389??????????192.168.100.101??????????

        netsh interface portproxy add v4tov4 listenport=3389 listenaddress=0.0.0.0 connectport=3389 connectaddress=192.168.100.101

        ??????????????

        ??????????80???????????HTTP????????????

        netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=157.166.226.25 protocol=tcp

        0x04 ????

      3. IP Helper?????iphlpsvc?????????????????????
      4. ????????????????????????????????
      5. ??IP?????????????????????IP?????IP??????????
      6. ????????????????????????????

      7. 0x05 ??

        ?Windows Server 2012 R2??????????????????????????????????IP???????????????????????


        0x06 ?????

        ????????Windows 2003/XP????Tcpip???IPEnableRouter???????1????????????

    转载地址:http://pmrc.baihongyu.com/

    你可能感兴趣的文章
    Python 中如何使用 lambda 函数
    查看>>
    Python 中如何创建多行字符串?
    查看>>
    Python 中如何处理异常?
    查看>>
    Python 中如何实现列表的切片?
    查看>>
    Python 中如何实现字典的排序?
    查看>>
    Python 中常用的数据类型及相关操作详解
    查看>>
    Python 中的离线语音转文本
    查看>>
    Python 中的线程
    查看>>
    Python 中的继承机制是什么样的?
    查看>>
    Python 中的装饰器是什么?
    查看>>
    Python 中的装饰器是如何工作的,有哪些实际应用场景?
    查看>>
    python读excel
    查看>>
    Python 中读取 CSV 文件-ChatGPT4o作答
    查看>>
    python请求html_使用Python请求获取HTML?
    查看>>
    Python 之匿名函数和偏函数
    查看>>
    python 之栈的实现
    查看>>
    python语音播放
    查看>>
    python语言:装饰器原理
    查看>>
    Python 交互式数据可视化详解
    查看>>
    python语言有哪些优点和缺点_Python有哪些优缺点,你了解吗?
    查看>>