p3nt4 / invoke-socksproxy Goto Github PK
View Code? Open in Web Editor NEWSocks proxy, and reverse socks server using powershell.
License: MIT License
Socks proxy, and reverse socks server using powershell.
License: MIT License
This is pretty cool, to have socks 4/5 in one file, but if you use it with Firefox (or Chrome), the connections never get closed, so opening 5 pages eats up all ram and the proxy server becomes unresponsive.
I am using Windows 7 machine to run powershell.exe. The Win 7 machine does have Internet access as well so it can connect out on the internet.
On the win7 client where socks proxy is running, I can see the connection from the kali machine from which the curl session above was run.
I have attached a Wireshark capture as well between kali (192.168.56.101) and win7 (192.168.56.102) where socks proxy is running.
Invoke-SocksProxy.wiresharkcap.pcapng.zip
I'm unable to stop script with CTRL + C
, can you help?
How do I run this script from a bat file?
I tried powershell Import-Module .\Invoke-SocksProxy.psm1
But nothing happens.
Since it's Windows, and we are talking about home PCs in many cases, there is the problem of router not knowing which local IP to route to and Windows Firewall on the PC blocking incoming connections. So you can't connect to such a proxy server.
There is a technique of making the home PC running the proxy server program ("Invoke-SocksProxy" PowerShell module in this case) initiate the connection to an actual server, which is open to the world. And then we, the user, can connect to the server and give directions to the connected proxy server (running on home PC), and to route traffic that way. The actual, open-to-the-world server can also run Windows and PowerShell / .NET.
Let's say our open server has IP 1.1.1.1 and the home PC proxy server has IP 2.2.2.2.
We would use 1.1.1.1:22222 v4/v5 as SOCKS proxy credentials, but our IP would appear as 2.2.2.2 to the web services we connect to.
It's my understanding that both PowerShell and C# are .NET, just use different syntax.
It's also my understanding that it's Microsoft's Bash.
And it's basically meant for one-liners that can do stuff on the command line.
Why not just use C#? Just a curious question, I'm perfectly ok with it.
Hello!
I've got this error when i try to do reverse shell from my windows vps to linux vps
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
how to fix it ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.