Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. # make honeypot reachable through localhost
  2. up route -n add -net 20.0.0.0/24 gw 127.0.0.1
  3.  
  4. # Defaults for honeyd initscript
  5. RUN="yes"
  6. INTERFACE="lo"
  7. NETWORK=20.0.0.0/24
  8. OPTIONS="--disable-webserver"
  9. #OPTIONS="--fix-webserver-permissions"
  10.  
  11. create winxp
  12. set winxp personality "Microsoft Windows XP Professional SP1"
  13. set winxp default tcp action reset
  14. set winxp default udp action block
  15. set winxp default icmp action open
  16. add winxp tcp port 23 "sh scripts/telnet/faketelnet.pl"
  17.  
  18. bind 20.0.0.100 winxp
  19.  
  20. Kernel IP routing table
  21. Destination Gateway Genmask Flags Metric Ref Use Iface
  22. default 10.0.0.1 0.0.0.0 UG 0 0 0 ens160
  23. 10.0.0.0 * 255.255.255.0 U 0 0 0 ens160
  24. 20.0.0.0 localhost 255.255.255.0 UG 0 0 0 lo
  25.  
  26. $ service honeyd start
  27. Job for honeyd.service failed because the control process exited with error code. See "systemctl status honeyd.service" and "journalctl -xe" for details.
  28.  
  29. $ service honeyd status
  30. ● honeyd.service - LSB: Service to simulate hosts and networks
  31. Loaded: loaded (/etc/init.d/honeyd; bad; vendor preset: enabled)
  32. Active: failed (Result: exit-code) since Mon 2017-01-23 17:36:02 CET; 1min 19s ago
  33. Docs: man:systemd-sysv-generator(8)
  34. Process: 1529 ExecStart=/etc/init.d/honeyd start (code=exited, status=1/FAILURE)
  35. Tasks: 2
  36. Memory: 12.0M
  37. CPU: 47ms
  38. CGroup: /system.slice/honeyd.service
  39. ├─1550 /usr/bin/honeyd -f /etc/honeypot/honeyd.conf -l /var/log/honeypot/honeyd.log -p /etc/honeypot/nmap.prints -a /etc/honeypot/nmap.assoc -0 /etc/honeypot
  40. └─1552 /usr/bin/rrdtool -
  41.  
  42. Jan 23 17:36:02 ubuntu-srv honeyd[1529]: * Starting Honeyd daemon honeyd
  43. Jan 23 17:36:02 ubuntu-srv honeyd[1549]: started with -f /etc/honeypot/honeyd.conf -l /var/log/honeypot/honeyd.log -p /etc/honeypot/nmap.prints -a /etc/honeypot/nmap.as
  44. Jan 23 17:36:02 ubuntu-srv honeyd[1549]: listening on lo: ip and (dst net 20.0.0.0/24)
  45. Jan 23 17:36:02 ubuntu-srv honeyd[1529]: * ERROR while starting please check /var/log/honeypot/daemon.log
  46. Jan 23 17:36:02 ubuntu-srv honeyd[1529]: ...fail!
  47. Jan 23 17:36:02 ubuntu-srv systemd[1]: honeyd.service: Control process exited, code=exited status=1
  48. Jan 23 17:36:02 ubuntu-srv systemd[1]: Failed to start LSB: Service to simulate hosts and networks.
  49. Jan 23 17:36:02 ubuntu-srv systemd[1]: honeyd.service: Unit entered failed state.
  50. Jan 23 17:36:02 ubuntu-srv systemd[1]: honeyd.service: Failed with result 'exit-code'.
  51. Jan 23 17:36:02 ubuntu-srv honeyd[1550]: Demoting process privileges to uid 111, gid 117
  52.  
  53. Mon, 23 Jan 2017 17:36:02 +0100 - Starting honeyd
  54. Honeyd V1.5c Copyright (c) 2002-2007 Niels Provos
  55. honeyd[1549]: started with -f /etc/honeypot/honeyd.conf -l /var/log/honeypot/honeyd.log -p /etc/honeypot/nmap.prints -a /etc/honeypot/nmap.assoc -0 /etc/honeypot/pf.os -x /etc/honeypot/xprobe2.conf -u 111 -g 117 --disable-webserver -i lo 20.0.0.0/24
  56. honeyd[1549]: listening on lo: ip and (dst net 20.0.0.0/24)
  57. Honeyd starting as background process
  58.  
  59. $ ps aux | grep honeyd
  60. honeyd 1550 0.0 0.7 31896 7124 ? Ss 17:36 0:00 /usr/bin/honeyd -f /etc/honeypot/honeyd.conf -l /var/log/honeypot/honeyd.log -p /etc/honeypot/nmap.prints -a /etc/honeypot/nmap.assoc -0 /etc/honeypot/pf.os -x /etc/honeypot/xprobe2.conf -u 111 -g 117 --disable-webserver -i lo 20.0.0.0/24
  61. honeyd 1552 0.0 1.1 126164 11180 ? S 17:36 0:00 /usr/bin/rrdtool -
  62.  
  63. $ ping 20.0.0.100
  64. PING 20.0.0.100 (20.0.0.100) 56(84) bytes of data.
  65. 64 bytes from 20.0.0.100: icmp_seq=1 ttl=128 time=23.6 ms
  66. 64 bytes from 20.0.0.100: icmp_seq=2 ttl=128 time=13.8 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement