Don't bother like my brother

Just another WordPress weblog

 

HTTP tunnelling over ssh June 11, 2009

Filed under: IT — Artem @ 7:05 pm

It is very easy to tunnel your web traffic over ssh using Firefox and the FoxyProxy plugin. Create your SSH tunnel by executing this command (where “port” is any random port that is not used):

ssh -fND localhost:port al1us.net

“f” key tells SSH to go into the background. If you want to quit later, just kill the process or otherwise don’t use the “f” key.
On the bottom right conrer of the firefox click the FoxyProxy icon with the rght mouse button and go to “Options”, write proxy name, choose SOCKS proxy and in the host field enter “localhost” and the port number your tunnel is running on, save it.
If you want to tunnel also all the DNS queries, in the Firefox address bar write “about:config” and change the key “network.proxy.socks_remote_dns” to true. Voila!

 
 

Copyright regime vs civil liberties June 9, 2009

Filed under: IT, interesting — Artem @ 12:09 am

Congratulations to the Pirate party for winning one place in the EU parliament! Let’s fight for out liberties in the Internet!

 
 

Some reviews May 28, 2009

Filed under: IT, interesting — Artem @ 7:49 pm

I am not very good at reviewing things I have recently read, as I am not good at analyzing texts. It is much easier just to say whether it was good and helpful/interesting for me or not, and mark it as “the recently read”. But anyway I decided to write some small review of the what I was reading recently.

The best of 2600: a hacker odyssey” by Emmanuel Goldstein, the author of the 2600 magazine. This book is a great collection of articles from the 2600 magazine since its creation and until now. It covers everything related to hacking, describes how it was back then and how it is now. Stories from circumventing some firewall, phone protection, to the architecture of telephone lines, computer networks and to the court processes. This books was particularly interesting for me for one reason: phreaking. I am really into old-style phreaking and love to read about the past technologies. However, there are a lot of other thrilling stories, especially about the court processes, police and FBI raids, and other. It really opens your eyes how unlawful corporations and the government could be in the chase for global control and money. If you are somehow related to the information technology I advice to read this book or some parts of it.

A book on C” by Al Kellye and Ira Pohl. I never studied programming in school or university, however I feel the need for doing this. I have looked threw various books about C programming, but none of them were as good for beginners as this one. It is written with a very simple language so that when you read it, things seem very intuitive. A good deal of code examples and descriptions accompanies each chapter. This book gives the basics about C, however with these basics it is easy to start and quickly improve one’s own skills. A must read if you are new to C!

The Wikibook of X86 Disassembly“Another great book, this time for newbie reverse-engineers. It is quite short (only 151 pages) with some chapters missing, but it gives a lot of insights on the compiler’s work, various patterns what different variables, arrays, loops, data structures will look like after the compilation process. It doesn’t really teach you how to disassemble the code and understand how the whole program works, but it brings you a bit closer to the achievement of that goal. It will be a lot easier to read more complicated books on reverse-engineering after having read this one. Also a must read book!

 
 

White chocolate for geeks May 16, 2009

Filed under: IT, interesting — Artem @ 6:03 pm

white_chocolate

 
 

OpenBSD 4.5 released! May 2, 2009

Filed under: IT — Artem @ 2:55 pm

 
 

Windows Vista, DNS settings and IPv6 April 28, 2009

Filed under: IT — Artem @ 12:23 am

Just a quick tip for those, who has the same problem in Vista with DNS settings not updated. Recently my ISP had some problems with DNS server, so the “Internet” was not working, however there was a physical connection and I could ping all the IPs. I defined the DNS addresses manually by putting OpenDNS ip addresses, however after applying settings Vista refused to use these settings. After some experiments it turned out that the problem was IPv6. Everything started to work after disabling the IPv6.

 
 

Skype API on Python = Skype4Py April 10, 2009

Filed under: code — Artem @ 1:30 pm

Recently I needed to write a small utility for Skype. Python seemed as a good start for this purpose as the language is easy and flexible and it has a Skype4Py module with all the necessary APIs. The installation is straightforward. First off, go to the download page and get the latest version. Then go to the folder you downloaded it into and unpack the archive:

tar xzvf Skype4Py-1.0.31.0.tar.gz

Go to the folder with the source and install the module:

cd Skype4Py-1.0.31.0
sudo python setup.py install

Now when everything is installed, you can proceed to the code. There are not much examples of the code in the Internet, but if you know python, then the process is very simple. The project page has extensive documentation on all the classes and methods, and is very helpful in using this module. To demonstrate how it all works, I wrote a small and not very useful program, which however serves its purpose:

import sys
import Skype4Py

# attach our program to the Skype
def OnAttach(status):
    print 'API attachment status: ' + skype.Convert.AttachmentStatusToText(status)
    if status == Skype4Py.apiAttachAvailable:
        skype.Attach()

# create Skype object
skype = Skype4Py.Skype()
skype.OnAttachmentStatus = OnAttach

if not skype.Client.IsRunning:
    print 'Starting Skype..'
    skype.Client.Start()

# get the name of Skype contact from the command line and create an object uprofile
uname = sys.argv[1]
uprofile = skype.User(Username=uname)

# now we can use all the methods from this object (see the documentations for "IUser" class for all available methods)
# print the full name of a person
print 'profile: ' + uprofile.FullName

# open chat with uname
message = 'From cmd: ' + sys.argv[2]
uchat = skype.CreateChatWith(uname)
uchat.SendMessage(message)
print 'message sent: ' + message

sys.exit

The main Skype interface is Skype4Py.Skype, from there you start the chat, get the user profiles, place calls and do all other things.

To run this program, use this command, where skypedummy.py is the name of your program, “i.am” is the skype name of the contact, and in the quotation marks is the message you are sending to him:

python skypedummy.py i.am "Greetings from my first skype app"
 
 

Ubuntu start-up programs

Filed under: IT, software — Artem @ 1:03 pm

Have you ever wondered what services are starting during the booting process of your Ubuntu? Got confused with all these rc levels and other things? There is a very easy to use program called BUM, or boot-up manager which is aimed to help find out and configure all the start-up programs.

To install bum, simply run the following command:

sudo apt-get install bum

And then run it:

sudo bum &

Or just go to the System -> Administration -> Boot-up Manager

bum

 
 

Ubuntu tweak March 21, 2009

Filed under: IT — Artem @ 5:38 pm

An interesting tool called “Ubuntu tweak”, which as you may understand from the name helps you to fine tune some things in your installation. It has all things in one place, so no more need to run “sudo apt-get autoremove” or go to System preferences and look for something you don’t know.

From the vendor page: “Ubuntu Tweak is an application designed to config Ubuntu easier for everyone. It provided many usefull desktop and system options that the default desktop environment isn’t provided.At present, It is only designed for Ubuntu GNOME Desktop, and often follows the newest Ubuntu distribution.” You can download it here.

ubuntu_tweak

 
 

Cheburashka on the Tokyo international anime fair

Filed under: interesting — Artem @ 2:53 pm