David ROBERT website- Home page

GNU httptunnel with CGI

I wrote this patch for GNU httptunnel 3.0.5. this adds the following functionalities :

The server hts cannot be called directly by the web server because it must ensure a persistence with its input-outputs. The idea is to use a small cgi which makes the interface between hts and the web server. I wrote a small script in python which makes this job: tun.py but it is simple to do one in C

How it works ?

  • hts -C -F localhost:22 8888
  • htc -C "/cgi-bin/tun.py" -F 2222 webserver:80
  • htc -C "/cgi-bin/tun.py" -a david:noway -F 2222 webserver:80