> For the complete documentation index, see [llms.txt](https://micro8.gitbook.io/micro8/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micro8.gitbook.io/micro8/contents-1/51-60/54-ji-yu-powershell-zuo-socks45-dai-li.md).

# 第五十四课：基于Powershell做Socks 4-5代理

**连载2：**\
在上一篇连载中讲到powershell可无缝来调.net framework。而在实战中，内网的代理尤其重要，如常见的端口转发被反病毒软件盯死。本章无图，其他同学如有环境测试，可补图。

介绍 github：\
<https://raw.githubusercontent.com/p3nt4/Invoke-SocksProxy/master/Invoke-SocksProxy.psm1>

## Examples

**Create a Socks 4/5 proxy on port 1234:**

```bash
Import-Module .\Invoke-SocksProxy.psm1 
Invoke-SocksProxy -bindPort 1234
```

**Create a simple tcp port forward:**

```bash
Import-Module .\Invoke-SocksProxy.psm1
Invoke-PortFwd -bindPort 33389 -destHost 127.0.0.1 -destPort 3389
```

可目前过大部分反病毒软件。

> Micropoor
