Sharing folder on Windows without password

After quite some time of trying around, I think I got it working.

After arguing with Homegroups, I just turned it off. First step done. Don’t forget to turn off password-protected filesharing (basically just disables passwordless shares).

Last step: Permissions & sharing options: Give the desired permissions to “Everyone” and then add “Guest” to the list of users allowed to access the share.

Teeworlds serverlist exploits or How to get your server listed faster

Here’s a little something I posted on IRC yesterday about the Teeworlds serverlist:

12:10:23  minus | todays insight: how to get your server to
                | show up faster in the server list
12:11:02  minus | each time a server is removed from the
                | list the last server in the list is moved
                | to its place
12:12:31  minus | if you're in the beginning of the
                | serverlist your server gets checked
                | quicker
12:13:28  minus | this depends on the br_max_requests
                | setting, which is defaulting to 25, thus
                | you'd have to get your server in the first
                | 25 server addresses of the master that
                | responds the quickest
12:14:15  minus | but in order to get first in the list an
                | old, probably longg running and stable
                | server would have to drop out
12:15:54  minus | your server also has to be the last one in
                | the list, meaning you probably have to
                | work with multiple ports and let it time
                | out after registering once to ensure
                | you're last in the list
12:20:38  minus | having one server in the very front of the
                | list could be used to predict when another
                | server of yours is going to get an INFO
                | request, thus you could send that response
                | prematurely and fake a lower ping in the
                | server list
12:21:17  minus | INFO requests do have a 1 byte token but
                | since it only changes with every
                | serverlist refresh it is useless here

Replacing Soldat’s Fileserver

Here the updates go again… This time I rewrote Soldat‘s internal fileserver in Python.

Leo had problems with it on his TTW server which runs the Windows binary of soldatserver via wine because it runs better (that’s at least his opinion) than the native Linux version, except for the fileserver which doesn’t work with wine at all. So I went ahead and wrote it. It didn’t work at the first try but with a lot of testing with Leo’s help I got it stable and ready for posting here.

Continue reading

Adding your own Certificate Authority to your Debian-like System

Just place it in a custom subdirectory in /usr/share/ca-certificates /usr/local/share/ca-certificates and then run dpkg-reconfigure ca-certificates and you’re done.

Did this on a Ubuntu 10.04 System but should work on every up to date Debian-alike System.

To create your own CA you might want to take a look at xca

Edit, Nov 13 2011: I just found out that you should place your own CAs in /usr/local/share/ca-certificates
Also, I found the command update-ca-certificates which adds all new certificates without a dialog, not sure about this one though.

Edit, Apr 22 2012: Confirmed it working in Arch Linux the exactly same way.

Automated Backups using “dirvish”

So I finally got around to set up a daily, automated backup system.

Noop proposed dirvish to me, along with this tutorial. At first glance the tutorial looked quite complex because dirvish does have quite a lot of options to configure. I decided to try and after an hour of trying I had it working, with a compressed transmission and SSH keyfiles. Since it comes as an Ubuntu package most of the stuff is already set up, you just have to copy the example master.conf or creat one on your own and create configs for your vaults.

So far it seems to run fine and I hope i will never have to use the backups it makes :)

Teeworlds Masterserver

After having a Teeworlds mastersrv running for a week now which wasn’t very stable and already crashed on me the first day I have now fixed the issue after waiting for about one week for it to crash again; this time with gdb attached. After many hours of digging through the source code (and matricks pointing out the fix which he already had on the main mastersrv but not shared in the repository) I found that the packet that caused the NULL-pointer access was not one of those the mastersrv usually takes. Instead of a normal, connectionless packet it had the compression flag set instead of the connectionless one which caused the network code to decompress it. But since the mastersrv does not deal with any compressed data the Huffman look up table is not initialized and thus full of NULL-pointers. The problem was fixed with a simple »if(!pNode) return -1;«.

Code injection wasn’t possible at any time also the client and server were not affected since they initialize the Huffman class.

X-Chat 2 Now Playing Plugin for Quod Libet

I’m using Quod Libet as music player on Ubuntu now since most of the other players weren’t to my likes. XMMS and Audacious are too simple; I need my media library. I don’t like Rythmbox’s media library, I don’t quite remember why though. Amarok. It’s bloatware (plus it’s for KDE desktops).

Quod Libet has a simple media libaray that lets me type into a search box and automatically will use the results as playlist. If I want to listen to one specific song now and then listen to everything again i can simply queue a song. If I want to listen to an Album i open the album view. Continue reading

Why you sometimes need to use www. in your domain

I always ranted about people using the www.-subdomain for their sites. While it makes the URL unnecessarily longer it doesn’t give any advantage.

Wrong. If you have subdomains they would get all the cookies that are set on your main domain.

I have something at the back of my mind about cookies working on subdomains only if the host is ».domain.tld« and not for »domain.tld« though I’m not sure.

Edit: I just checked and it submits the cookie even if there’s not ».« in the beginning.

X-Chat 2 Shell Plugin

I wrote a X-Chat 2 Python Plugin today that allows you to run commands in a shell.

You can split a command you want to run into multiple lines by ending your input with a \ — just like you would do in a terminal. Newlines can be done using \n though this is currently the only workingescape sequence. Your input is passed to bash in a thread so that X-Chat doesn’t freeze. I even got multiple ncat instances connected to a `ncat –chat` inside different channels.
See for yourself, here’s the sourcecode. If you got questions feel free to ask. Continue reading