博客
关于我
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 加密解密(base64, AES)
    查看>>
    Python 和Java 哪个更适合做自动化测试?
    查看>>
    python 图片转ico
    查看>>
    python 图片转文字、语音转文字、文字转语音保存音频并朗读
    查看>>
    python 在包含类似字符\x16、\x12、\x某某的数组中将以\x开头的字符找出来的方法
    查看>>
    Python 在并行进程之间共享字典
    查看>>
    Python 垃圾收集器文档
    查看>>
    python 基于 wordcloud + jieba + matplotlib 生成词云
    查看>>
    python 基于detectron或mask_rcnn的mask遮罩区域进行图片截取
    查看>>
    Python 基础 - Day 5 Learning Note - 模块 之 标准库:time (1)
    查看>>
    python 基础第七篇
    查看>>
    Python编程:Tkinter图形界面设计(1)
    查看>>
    Python 基础语法:None
    查看>>
    Python 基础语法:基本数据类型(一)
    查看>>
    python编程读取写入excel_Python读取txt内容写入xls格式excel中的方法
    查看>>
    Python 基础语法:基本数据类型(字典)
    查看>>
    Python 基础语法:基本数据类型(字符串)
    查看>>
    Python 基础语法:基本数据类型(集合)
    查看>>
    Python编程的终极十大工具
    查看>>
    python 堆排序
    查看>>