
Honeyd Resources
Main - News - Forums Honeyd ResearchHoneypot ResourcesHappy Hacking
|
Honeyd-0.8 Wrong Respond fix
From: wan fat wu <thizthiz_at_yahoo.com.hk>
Date: Wed, 10 Mar 2004 15:48:13 +0800 (CST)
Hi All,
I have posted an email with title "honeyd-0.8 wrong
I have tried the patch from Niels Provos but it
I found that some of the errors is becuase of the
I will be appreciate for any help and comment. Also
Thanks a lot for everybody!
Best,
************CONFIG PROCEDURE ************************
************FULL ERROR LOG FILE *********************
WARNING: Using the third argument of `AC_DEFINE' and
WARNING: AC_DEFINE([NEED_MAIN], 1,
WARNING: More sophisticated templates can also be
*************My fix on some files********************
My fix on personality.c
My fix on pfctl_ospf.c
diff pfctl_osfp.c ../honeyd-0.8/pfctl_osfp.c
---
> char *line;
115,117c112
< //while ((line = fgetln(in, &len)) != NULL) {
< while ( fgets( line, sizeof(line), in ) !=
NULL ) {
< len = strlen( line ) ;
---
> while ((line = fgetln(in, &len)) != NULL) {
My fix on pyextend.c
[root_at_fred honey-fred-0.8-fix]# diff ./pyextend.c
../honeyd-0.8/pyextend.c
180c180
< return (pyextend_selector(args,
¤t_state->pread, "pyextend_readselector"));
---
> return (pyextend_selector(args,
¤t_state->pread, __func__));
192c192
< pValue = pyextend_selector(args,
&state->pwrite, "pyextend_writeselector");
---
> pValue = pyextend_selector(args,
&state->pwrite, __func__);
My fix on libtool
[root_at_fred honey-fred-0.8-fix]# diff ./libtool
../honeyd-0.8/libtool
730c730
< if test "$pic_mode" = no && test
"$deplibs_check_method" != pass_all; then
---
> if test $pic_mode = no && test
"$deplibs_check_method" != pass_all; then
2709c2709
< if test "$build_libtool_need_lc" = "yes";
then
---
> if test $build_libtool_need_lc = "yes";
then
2982c2982
< if test "$hardcode_into_libs" = yes; then
---
> if test $hardcode_into_libs = yes; then
*****************honeyd.conf**********************
# Example of a simple host template and its binding
create default
set default personality "FreeBSD 2.2.1-STABLE"
set default default tcp action reset
add default tcp port 80 "sh scripts/web.sh"
add default tcp port 22 "sh scripts/test.sh"
add default tcp port 113 reset
add default tcp port 1 reset
create allopen
set allopen personality "NetBSD 1.5.2 running on a
Commodore Amiga (68040 proces
sor)"
set allopen default tcp action open
add allopen tcp port 80 "sh scripts/web.sh"
add allopen tcp port 113 reset
add allopen tcp port 1 reset
create template
set template personality "Check Point FireWall-1 4.0
SP-5 (IPSO build)"
add template tcp port 80 "sh scripts/web.sh"
add template tcp port 23 block
add template tcp port 22 "sh scripts/test.sh"
set template default tcp action reset
set template uid 32767
# Example of a simple host template and its binding
create win
set win personality "Microsoft Windows XP Professional
SP1"
add win tcp port 22 "sh scripts/test.sh $ipsrc $dport"
set win default tcp action reset
add win tcp port 23 proxy $ipsrc:23
add win udp port 53 proxy 141.211.92.141:53
add win tcp port 80 "scripts/iis/main.pl"
create solaris
set solaris personality "Sun Solaris 2.6"
set solaris default tcp action reset
add solaris tcp port 80 "sh scripts/web.sh"
add solaris tcp port 22 "sh scripts/test.sh"
add solaris tcp port 161 "sh scripts/default.snmp"
add solaris tcp port 113 reset
add solaris tcp port 1 reset
bind 192.168.0.30 template
bind 192.168.0.40 allopen
bind 192.168.0.50 win
bind 192.168.0.60 solaris
***************RESULT************************
ARPD(I use xxxx for my MAC):
arpd[3660]: arpd_send: who-has 192.168.0.30 tell
192.168.0.121
arpd[3660]: arpd_send: who-has 192.168.0.30 tell
192.168.0.121
arpd[3660]: arpd_recv_cb: 192.168.0.30 still
discovering (2)
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
arpd[3660]: arpd_lookup: 192.168.0.1 at xxxxx
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
arpd[3660]: arpd_lookup: 192.168.0.254 at xxxxx
arpd[3660]: arpd_recv_cb: 192.168.0.1 is allocated
arpd[3660]: arpd_recv_cb: 192.168.0.254 is allocated
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
arpd[3660]: arpd_recv_cb: 192.168.0.182 at xxxx
arpd[3660]: arpd_recv_cb: 192.168.0.254 is allocated
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
arpd[3660]: arp reply 192.168.0.30 is-at xxxxx
HONEYD(SnapShot of the result)
honeyd[3662]: Connection request: tcp
(192.168.0.120:61717 - 192.168.0.30:22)
honeyd[3662]: Connection dropped by reset: tcp
(192.168.0.120:61717 - 192.168.0.30:22)
honeyd[3662]: Connection request: tcp
(192.168.0.120:61718 - 192.168.0.30:22)
honeyd[3662]: Connection dropped by reset: tcp
(192.168.0.120:61718 - 192.168.0.30:22)
NMAP RESULT
[root_at_fred TARBALL]# nmap -O 192.168.0.30
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on (192.168.0.30):
(The 1598 ports scanned but not shown below are in
state: closed)
Port State Service
22/tcp open ssh
23/tcp filtered telnet
80/tcp open http
No exact OS matches for host (If you know what OS is
running on it, see http://w
ww.insecure.org/cgi-bin/nmap-submit.cgi).
TCP/IP fingerprint:
SInfo(V=3.00%P=i686-pc-linux-gnu%D=3/11%Time=40500E40%O=22%C=1)
TSeq(Class=RI%gcd=1%SI=C391%IPID=I%TS=2HZ)
T1(Resp=Y%DF=N%W=4000%ACK=S++%Flags=AS%Ops=NNT)
T2(Resp=N)
T3(Resp=Y%DF=N%W=3E80%ACK=S++%Flags=AS%Ops=M)
T4(Resp=Y%DF=N%W=4000%ACK=O%Flags=R%Ops=)
T5(Resp=Y%DF=N%W=0%ACK=S++%Flags=AR%Ops=)
T6(Resp=Y%DF=N%W=0%ACK=O%Flags=R%Ops=)
T7(Resp=N)
PU(Resp=Y%DF=N%TOS=0%IPLEN=38%RIPTL=148%RID=E%RIPCK=E%UCK=E%ULEN=134%DAT=E)
Uptime 1.033 days (since Wed Mar 10 14:11:05 2004)
Nmap run completed -- 1 IP address (1 host up) scanned
in 32 seconds
_________________________________________________________
必殺技、飲歌、小星星...
浪漫鈴聲 情心連繫
http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/
Received on Wed Mar 10 2004 - 20:46:52 PST
NB: This is a filtered version of the Honeypots mailing list. Only posts that concern Honeyd are shown here. For more recent discussions visit the forums. | ||||
|
Copyright (c) 1999-2004 by Niels Provos Don't access my pirated music. | |||||