Chinaunix

标题: 大过年的,不打牌没事,来学习一下bsd---学习手稿2-16 [打印本页]

作者: action08    时间: 2015-02-16 16:18
标题: 大过年的,不打牌没事,来学习一下bsd---学习手稿2-16
唯有学习才能使人进步
作者: action08    时间: 2015-02-16 16:19
本帖最后由 action08 于 2015-02-16 16:21 编辑

今天想问一个问题,如何ports安装nmap才能正常工作
  1. # pkg_add nmap
  2. quirks-2.9 signed on 2014-08-02T11:06:13Z
  3. Error from http://mirror.internode.on.net/pub/OpenBSD/5.6/packages/i386/nmap-6.46p0.tgz
  4. Redirected to http://112.25.25.92:801/videoplayer/nmap-6.46p0.tgz?ich_u_r_i=cf5901849a3cf8fd069eb9293bd1e8d7&ich_s_t_a_r_t=0&ich_e_n_d=0&ich_k_e_y=7c48de6086934f2234054d272f74ae0bf8b215067a39469a98f98b7d57b55bde&ich_t_y_p_e=1&ich_d_i_s_k_i_d=2&ich_s_e_q=98200771&ich_u_n_i_t=1
  5. Requesting http://112.25.25.92:801/videoplayer/nmap-6.46p0.tgz?ich_u_r_i=cf5901849a3cf8fd069eb9293bd1e8d7&ich_s_t_a_r_t=0&ich_e_n_d=0&ich_k_e_y=7c48de6086934f2234054d272f74ae0bf8b215067a39469a98f98b7d57b55bde&ich_t_y_p_e=1&ich_d_i_s_k_i_d=2&ich_s_e_q=98200771&ich_u_n_i_t=1
  6. #
  7. #
  8. # nmap localhost

  9. Starting Nmap 6.46 ( http://nmap.org ) at 2015-02-17 00:11 CST
  10. Nmap scan report for localhost (127.0.0.1)
  11. Host is up (0.00011s latency).
  12. Not shown: 998 closed ports
  13. PORT   STATE SERVICE
  14. 22/tcp open  ssh
  15. 25/tcp open  smtp

  16. Nmap done: 1 IP address (1 host up) scanned in 22.34 seconds
  17. #
  18. # id
  19. uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator), 20(staff), 31(guest)
  20. #
  21. # uname -a
  22. OpenBSD openbsd.my.domain 5.6 GENERIC#274 i386
  23. #
  24. #
复制代码
我自己ports下载nmap编译安装,nmap工具就不能工作,不知道有什么诡异问题

作者: action08    时间: 2015-02-16 16:36
openbsd关机init 0还不好使


可用的命令shutdown -hp now
作者: lsstarboy    时间: 2015-02-16 21:56
回复 2# action08


    你觉得nmap怎么样才算正常工作?我怎么觉得nmap已经比较正常了呢?
作者: action08    时间: 2015-02-17 14:15
lsstarboy 发表于 2015-02-16 21:56
回复 2# action08


make install clean出来的nmap就不正常,
这个是pkg_add的,效果还不错




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2