博客
关于我
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中 将你的名字转化成为二进制并输出
    查看>>
    Python中*args 和**kwargs的用法
    查看>>
    Python中*args 和**kwargs的用法
    查看>>
    Python中*args和**kwargs的使用
    查看>>
    python中0、1、True、False、if条件
    查看>>
    python中argparse模块关于 parse_args() 函数详解(全)
    查看>>
    python中base64编码与解码
    查看>>
    python中break怎么用_详解Python中break语句的用法
    查看>>
    python中del函数的垃圾回收
    查看>>
    Python中DrissionPage的详细解析与实战
    查看>>
    python中enumerate、变量类型转换
    查看>>
    python中execute是啥_python – 为什么“c.execute(…)”打破循环?
    查看>>
    python中exit和break区别_Python中exit()和sys.exit()之间的区别
    查看>>
    python中h5的用法
    查看>>
    python中http协议编程_HTTP编程
    查看>>
    python中import os_Python:相对导入与绝对导入(import)、os.path、__file__
    查看>>
    python中is和==操作符
    查看>>
    Python中range对象的使用以及打印九九乘法表
    查看>>
    Python中set.discard和set.remove方法之间的运行时差异?
    查看>>
    python中tkinter中value_输入字段中的python Tkinter get()值
    查看>>