Toralize is a simple C program designed to establish a connection to a target host via a SOCKS proxy server. It constructs and sends a SOCKS proxy request, receives the response, and attempts to connect to the specified destination host and port. The program can be used to test proxy connectivity and perform basic HTTP requests through the proxy.
- A C compiler (e.g., GCC)
- A SOCKS proxy server (e.g., Tor)
- Basic knowledge of C programming and network concepts
-
Install Dependencies: Ensure you have a C compiler and the necessary networking libraries installed.
-
Proxy Server: Set up a SOCKS proxy server if you don't already have one. For example, you can use the Tor network:
sudo apt install tor
-
Download Toralize: Clone or download the Toralize source code from the repository.
To run the Toralize program, use the following command:
./toralize <host> <port><host>: The target host IP address.<port>: The target port number.
./toralize 46.227.66.141 80This command attempts to connect to the target IP 46.227.66.141 on port 80 through the SOCKS proxy.
To compile the Toralize program, use the provided Makefile or compile manually with GCC:
gcc toralizer.c -o toralizer.so -fPIC -shared -ldl -D_GNU_SOURCEEnsure all source files (toralize.c and toralize.h) are in the same directory.
- toralize.c: The main source file containing the program logic for sending SOCKS proxy requests and handling responses.
- toralize.h: The header file defining structures and constants used in the program.
-
Connection Refused: If you encounter a "Connection refused" error, ensure your proxy server is running and accessible at the specified address and port.
-
Firewall Issues: Ensure that your firewall settings allow connections to and from the proxy server.
-
Incorrect Proxy Information: Double-check the proxy settings (
PROXYandPROXYPORTintoralize.h) to ensure they are correct.
Contributions are welcome! If you have suggestions, bug reports, or improvements, please open an issue or submit a pull request.