Port Redirector for Windows with C Programming

Job ID: 32650478

Budget: $30 – $250 USD

I'm looking for a developer to rewrite the source code for fpipe a TCP/UDP Port Redirector for Windows using the Winsock library with C programming.

Fpipe is a command line utility that accepts a connection on one port and forwards it to another. The source code for the project was lost long ago.

Here is an example usage of fpipe.

fpipe.exe -v -l 2222 -r 22 tilde.town
ssh 127.0.0.1 -p 2222

The fpipe program is very small because it uses the winsock library in windows and has no other dependencies.

You can get a copy of the binary here:
https://www.softpedia.com/get/Network-Tools/Misc-Networking-Tools/FPipe.shtml

Ida pro is able to generate pseudocode for a majority of the code in the binary. You can get a copy of a version with variables replaced here:
https://ku.nz/blog/files/pseudocode.c

Fpipe supports multithreading and can allow up to 512 connections.
Here is an example networking project of winsock programming using threading. According to the decompilation in IDA, fpipe uses something very similar. https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedscalableapp6b.html

Fpipe is able to support UDP as well.

For example:
fpipe.exe -v -u -l 1234 -r 2000 127.0.0.1
nc -l -v -p 2000 -u -vv
nc -u 127.0.0.1 1234
Related categories: C Programming C++ Programming Windows API