Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
#17042 - 08/02/02 08:13 AM
boredom strikes again...
|
Junior Member
Registered: 05/21/02
Posts: 67
Loc: Los Angeles,CA
|
Ok, while being bored reading at my desk and trying to configure Tripwire, I had an idea similar to what Tripwire does and that is to check the integrity of binary files. So here's a script that I made. Just pop in a new floppy. #!/bin/sh
printf "Making clean filesystem...\n";
mkfs.ext2 /dev/fd0
mount /dev/fd0 /mnt/floppy
cd /mnt/floppy
uname -a > master.file
ifconfig -a >> master.file
md5sum /bin/* >> master.file
md5sum /sbin/* >> master.file
md5sum /usr/bin/* >> master.file
md5sum /usr/sbin/* >> master.file
md5sum /usr/local/bin/* >> master.file
md5sum /usr/local/sbin/* >> master.file
chmod 700 master.file
printf "Finished with system checksum.\n";
printf "Label the floppy and store in a safe place ;)\n";
cd ~ ; umount /dev/fd0
So there it is. It's nothing special and it definitely doesn't replace something like tripwire or other well know integrity checkers, but oh well. It's more of a lazy way of doing things...heheh. But it works fairly well. Ok, now You're probably asking yourself, "ok I have the checksums of all the binary files on my system, now what??", well when you think your b0x or b0xen have been compromised, you would make a new checksum list and check it against the previous one that you made. You would check what changes have been made by using the diff command, type man diff or info diff for more info on how to use the command . You can also incorporate all this into a cronjob and have it run weekly or monthly. Whatever you'd like. Well that's it. Can you tell I'm paranoid??? 
_________________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use.
|
|
Top
|
|
|
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
|
#17044 - 08/02/02 08:47 AM
Re: boredom strikes again...
|
Junior Member
Registered: 05/21/02
Posts: 67
Loc: Los Angeles,CA
|
Well here is an example chksum:
ded15256d767929b02a3ed8eaba80c8d /bin/ping
I'm guessing that's what you meant by the size of the chksum and not the actual file that my script creates, right?? Oh and I am aware that 2 different files can have the same output. Althought I've never seen it myself. Even though I don't doubt you, would you mind explaining the proccess of how the chksums are created and why they might have the same output?? That is, if you have time. I've never looked into it that much, but now that you brought it up, it is intriguing.
EDIT: Are you sure 2 of the same files can have the same checksums ??
_________________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use.
|
|
Top
|
|
|
|
#17046 - 08/04/02 03:27 AM
Re: boredom strikes again...
|
Junior Member
Registered: 05/21/02
Posts: 67
Loc: Los Angeles,CA
|
Heheh...thanks for explaining that even though ya didn't have to 
_________________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use.
|
|
Top
|
|
|
|
#17047 - 08/04/02 05:39 AM
Re: boredom strikes again...
|
Member
Registered: 03/12/02
Posts: 626
Loc: LAN
|
Whats is this world coming 2? FUCKIN FLYING HAMSTERS, DOWN I SAY, DOWN! LOL, well done, just try to masturbate when bored.
_________________________
-hKzKnight "The ghost... Was never there and you'll never see me"
|
|
Top
|
|
|
|
|
Registered: 03/07/02
Posts: 270
|
|
2198 Members
46 Forums
24906 Topics
60076 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
1 registered (Gremelin),
31
Guests and
13
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|