Author Topic: Netcraft - Web Server Signatures help  (Read 1274 times)

preacher

  • VIP
  • Member
  • ***
  • Posts: 858
  • Kudos: 107
    • http://kansascity.cjb.net
Netcraft - Web Server Signatures help
« Reply #30 on: 10 December 2002, 13:46 »
Void main, this just isnt right. Im up here sitting next to my server hoping to one day achieve 300 days uptime, and you successfully cheated this. Not only that, but you can say you are running any OS and webserver. This is too much. Now Im gonna have to try it myself.
Kansas City Hustle
http://kansascity.cjb.net

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Netcraft - Web Server Signatures help
« Reply #31 on: 10 December 2002, 13:48 »
Well I recommend doing it the legit way. I just wanted to see if it could be done. I have a few servers listed with more than that amount of uptime (legit). But if you want to play, it's a great learning experience.
Someone please remove this account. Thanks...

preacher

  • VIP
  • Member
  • ***
  • Posts: 858
  • Kudos: 107
    • http://kansascity.cjb.net
Netcraft - Web Server Signatures help
« Reply #32 on: 18 December 2002, 19:14 »
quote:
Originally posted by void main:
Yes, you actually have to do a little more than that. I downloaded the 2.4.20 kernel source, applied the ippersonality kernel patch (there is a patch for 2.4.20 on sourceforge). Then I did a make config and turned on a couple of other necessary options like connection tracking (the options are listed in the README or INSTALL included with the ippersonality tar.gz package). Then compiled and installed the kernel.

Now that's not the end of it. You also have to patch "iptables". I downloaded the 1.2.7a source for iptables and applied the ippersonality patch for iptables, then modified the Makefile so iptables would install to the same directories that my distro has it already installed in. There was one more thing that needed to be done in the iptables source for 1.2.7a. There is a label/define that needs to be changed in several places in the source because it was changed in the new kernel source. This was easily done with a perl command that I found in one of the ippersonality message list archives. Then I did a "make" and "make install".

Then to masquerade as another OS you have to run a couple of iptables commands along with a configuration file of the  operating system you want to masquerade as and you are done.

This sounds like a lot but if you are interested I could do another step by step instruction and put it in my RedHat tips section. I think if I did that it wouldn't be hard for anyone to follow. I also wrote my own script to make it easy to change what OS you are masquerading as and call it from the /etc/init.d/iptables service script. Basically once installed all you have to do is comment out one line and uncomment another to change which OS you want to masquerade as. I started last night writing my own config file for a Cray supercomputer but fell asleep from exhaustion.        Maybe this evening I will work on it some more. Shouldn't take too long to create.

[ December 05, 2002: Message edited by: void main ]




You are really good with these tutorials, and I am interested in doing this.
Kansas City Hustle
http://kansascity.cjb.net

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Netcraft - Web Server Signatures help
« Reply #33 on: 19 December 2002, 03:38 »
I think I have the uptime thing worked out. It's pretty touchy about how you artificially raise your uptime. What I ended up with is the kernel patch I made and then creating a script that will raise the uptime starting about 6 minutes after the system has been up. The script is called /etc/rc.d/rc.uptime:

Code: [Select]

And a call to it should be added to the end of /etc/rc.d/rc.local right before the last line:

Code: [Select]

I was going to do the PDC tutorial next as I just built a fresh one but I've been putting it off. Maybe I'll do the ippersonality/uptime tutorial next although some people might get huffy about the uptime one...
Someone please remove this account. Thanks...

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Netcraft - Web Server Signatures help
« Reply #34 on: 19 December 2002, 05:07 »
Huh? You quoted old news. I figured out how to modify the uptime with a kernel patch.
Someone please remove this account. Thanks...