Tag Archives: SOCKS

Socks 5: Credentials on Windows

In this installment, we will continue our implementation of GSSAPI/SSPI, this time on Windows, where we’ll try to get some credentials. We will look at two topics this time: first, we’ll look at data encapsulation, after which we’ll look at … Continue reading

Posted in C++ for the self-taught | Tagged , | Comments Off on Socks 5: Credentials on Windows

Socks 5: Continuing on Debian

In this installment, we will be starting an implementation of the same factory we started with SSPI, but using GSS-API. We’ll be doing this one a vanilla Debian-Lenny system, with one caveat: we’ll be using our own compiled version of … Continue reading

Posted in C++ for the self-taught | Tagged , | 1 Comment

Socks 5: Expanding the factory

In this installment, we will expand the MechanismFactory class for SSPI. We will take a slightly closer look at the SSPI call than we would normally do, and we will also take a look at the Unicode/”ANSI” differences on Windows. … Continue reading

Posted in C++ for the self-taught | Tagged | Comments Off on Socks 5: Expanding the factory

Socks 5: Starting GSS-API – The Factory Pattern

In this installment, we’ll be doing a final bit of clean-up and starting to implement a GSS-API/SSPI client program, while focusing on the Abstract Factory Pattern

Posted in C++ for the self-taught, Software Design | Tagged | Comments Off on Socks 5: Starting GSS-API – The Factory Pattern

Socks 5: Porting the test to Windows

Porting networking code from POSIX to Windows is actually remarkably simple: Windows’ sockets implementation, winsock, implements almost exactly the same interface and there are really onlt very few caveats to take into account.

Posted in Uncategorized | Tagged , | Comments Off on Socks 5: Porting the test to Windows

Socks 5: Finishing sending a token

In this installment, we will finish the implementation for sending a token from the client to the server. We will answer the remaining open questions and, in doing so, improve the code a bit more. When we’re done, we will … Continue reading

Posted in C++ for the self-taught | Tagged | Comments Off on Socks 5: Finishing sending a token

Socks 5: Continuing Sending a Token – Anecdote

Recording the latest episode of the podcast reminded me of a story that I’d like to tell you: a few years ago, I started working as a programmer on a project in which there was a policy to include the … Continue reading

Posted in C++ for the self-taught | Tagged | Comments Off on Socks 5: Continuing Sending a Token – Anecdote

Socks 5: Continuing Sending a Token

In this installment, we’ll first go over the answers to the questions from the previous installment, in which we introduced working, but less-than-perfect code.

Posted in C++ for the self-taught | Tagged | Comments Off on Socks 5: Continuing Sending a Token

SOCKS 5 Step 2: exchanging a token

With a few minor adjustments to the existing Token class, we can finish the first part of our implementation of RFC 1961 for now – we will hook it into an implementation of the GSS API later. Before we do … Continue reading

Posted in C++ for the self-taught | Tagged | Comments Off on SOCKS 5 Step 2: exchanging a token

SOCKS 5, step 1: Serializing a Token

The first project in the C++ for the self-taught series is a SOCKS proxy server that we will call “Chausette” – which is french for sock. SOCKS is a simple proxying protocol that supports proxying for any number of other … Continue reading

Posted in C++ for the self-taught | Tagged | Comments Off on SOCKS 5, step 1: Serializing a Token