Hardware Reference
In-Depth Information
So you're connecting to your Pi via SSH as usual, but the -L argument tells SSH to
open a tunnel in the background. 8080 is a port on the local machine and can use any
free port you like above 1024 . Finally, 192.168.1.1:80 is the device and port on
your home network that you would like to reach, in this case the router and its
web interface.
Now, open up a web browser and enter the http://localhost:8080 URL. You
should be looking at the web interface of your home router just as if you were sitting
at home. The previous example can be applied to any situation where you need to
reach something on a single TCP port on your home network.
However, there are situations in which you don't know in advance all the
destination addresses that you'll want to reach. When evading content filtering
or web censorship for example, you'll want to send all HTTP requests through the SSH
tunnel. Fortunately, SSH can act as a SOCKS proxy where it will tunnel traffic to and
from any address that you specify in your web browser.
Enter this command to enable the SOCKS proxy support:
$ ssh pi@gimmepi.mooo.com -D 8080
Now you need to tell your web browser or underlying operating system to use
localhost:8080 as a SOCKS proxy. Consult the documentation for your browser
and platform. Finally, you can verify that you're connecting from your home IP
address by visiting http://ipogre.com .
Creating a diversion using a chat bot
Ever wish you could run a quick errand during a conversation without the other
party noticing you've gone away? Ever wanted to create the illusion that you've been
sitting in front of your computer all day long? Perhaps you'd just like to freak out
your friends or co-workers? All noble causes for sure. Whatever your reasons may
be, running a chat bot is always a good laugh and a great way to experiment with
instant messaging protocols.
A chat bot or chatter robot is a computer program that tries to have an intelligent
conversation with a human by analysing the input text received from a human and
replying with output text that hopefully makes sense to humans.
These applications are one of the classic topics of artificial intelligence and the famous
Turing Test . To create a convincing chat bot from scratch is far outside the scope of
this topic. Instead, we will create an interface between three great existing chat bots
and a few popular chat services.
 
Search WWH ::




Custom Search