PT31 / honeyd

Automatically exported from code.google.com/p/honeyd
0 stars 0 forks source link

honeydctl parse errors #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. honeyd -f /etc/honeyd.conf --webserver-port 9100 --webserver-root
/usr/local/share/honeyd/webserver/htdocs/
2. honeydctl -v
3. honeydctl> list

What is the expected output? What do you see instead?

I expect a list of all configured templates but I got a "parse error"

What version of the product are you using? On what operating system?

honeyd-1.5c on OpenBSD (i386, sparc64, amd64 and macppc)

Please provide any additional information below.

$ sudo honeydctl -v
Honeyd 1.5c Management Console
Copyright (c) 2004 Niels Provos.  All rights reserved.
See LICENSE for licensing information.
Up for 695 seconds.
0C 0P honeydctl> help
help             outputs a command help
!                runs a Python command in the Honeyd environment
delete           removes configured templates and ports
list             lists configured templates or subsystems
0C 0P honeydctl> list
<stdin>: parse error
0C 0P honeydctl> delete
<stdin>: parse error
0C 0P honeydctl> !
Traceback (most recent call last):
 File "<filter>", line 11, in ?
NameError: name 'null' is not defined
0C 0P honeydctl>

here's my honeyd.conf (default):

route entry 10.0.0.1
route 10.0.0.1 link 10.2.0.0/24
route 10.0.0.1 add net 10.3.0.0/16 10.3.0.1 latency 8ms bandwidth 10Mbps
route 10.3.0.1 link 10.3.0.0/24
route 10.3.0.1 add net 10.3.1.0/24 10.3.1.1 latency 7ms loss 0.5
route 10.3.1.1 link 10.3.1.0/24

# Example of a simple host template and its binding
create template
set template personality "Microsoft Windows XP Professional SP1"
set template uptime 1728650
set template maxfds 35
add template tcp port 80 "scripts/iis5.net/main.pl"
add template tcp port 22 "sh scripts/test.sh $ipsrc $dport"
add template tcp port 23 proxy $ipsrc:23
add template udp port 53 proxy 141.211.92.141:53
set template default tcp action reset

create default
set default default tcp action block
set default default udp action block
set default default icmp action block

create router
set router personality "Cisco 1601R router running IOS 12.1(5)"
set router default tcp action reset
add router tcp port 22 "scripts/test.sh"
add router tcp port 23 "scripts/router-telnet.pl"

bind 10.3.0.1 router
bind 10.3.1.1 router
bind 10.3.1.12 template
bind 10.3.1.11 template
bind 10.3.1.10 template
set 10.3.1.11 personality "Microsoft Windows NT 4.0 SP3"
set 10.3.1.10 personality "IBM AIX 4.2"

Original issue reported on code.google.com by ruifilip...@gmail.com on 1 Aug 2007 at 4:44

GoogleCodeExporter commented 9 years ago
This is a documentation issue; you need to use the list command with either list
templates or list subsystems.

Original comment by pro...@gmail.com on 2 Feb 2008 at 8:51

GoogleCodeExporter commented 9 years ago
I am experiencing this exact same behavior when I  use "list templates" or "list
subsystems":

rhoulihan@honeyd-test:/var/log$ sudo honeydctl -v
Honeyd 1.5c Management Console
Copyright (c) 2004 Niels Provos.  All rights reserved.
See LICENSE for licensing information.
Up for 682 seconds.
0C 0P honeydctl> help
help         outputs a command help
!        runs a Python command in the Honeyd environment
delete       removes configured templates and ports
list         lists configured templates or subsystems
0C 0P honeydctl> list
<stdin>: parse error
0C 0P honeydctl> list templates
<stdin>: parse error
0C 0P honeydctl> list subsystems
<stdin>: parse error
0C 0P honeydctl> 

Original comment by rick.hou...@gmail.com on 16 Mar 2009 at 4:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The correct commands appear to be "list template" and "list subsystem" (drop 
the s).

0C 0P honeydctl> help list
list <template [pattern]|subsystem [pattern]>
0C 0P honeydctl>

Version 1.5c compiled from source on Debian Lenny i686.

Original comment by JarradS...@gmail.com on 31 Aug 2009 at 9:43