Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. Nmap scan report for 192.168.xx.xxx
  2. Host is up (0.066s latency).
  3. PORT STATE SERVICE
  4. 139/tcp open netbios-ssn
  5. 445/tcp open microsoft-ds
  6. MAC Address:
  7.  
  8. Host script results:
  9. | smb-os-discovery:
  10. | OS: Windows Server (R) 2008 Standard 6001 Service Pack 1 (Windows Server (R) 2008 Standard 6.0)
  11. | OS CPE: cpe:/o:microsoft:windows_server_2008::sp1
  12. | Computer name:
  13. | NetBIOS computer name:
  14. | Workgroup: WORKGROUP
  15. |_ System time: 2015-12-22T17:01:33-08:00
  16.  
  17. Nmap scan report for 192.168.xx.xx1
  18. | OS: Windows XP (Windows 2000 LAN Manager)
  19. Nmap scan report for 192.168.xx.xx5
  20. | OS: Windows 2000 (Windows 2000 LAN Manager)
  21. Nmap scan report for 192.168.xx.xx8
  22. Nmap scan report for 192.168.xx.x15
  23.  
  24. Line 1
  25. | Line2
  26. Line 3
  27. | Line 4
  28. Line 5
  29. | Line 6
  30. Line 7
  31. Line 8
  32. Line 9
  33. | Line 10
  34. Line 11
  35.  
  36. Line 1
  37. Line 3
  38. Line 5
  39. Line 9
  40.  
  41. ... | sed '/^Nmap scan report for/h;/^|[[:blank:]]*OS: Windows/!d;g'
  42.  
  43. ... | awk '/^Nmap scan report for/{t=$5};/^|[[:blank:]]*OS: Windows/{print t}'
  44.  
  45. sed -e'$!N;/n|/P;D'
  46. <<""
  47. Line 1
  48. | Line2
  49. Line 3
  50. | Line 4
  51. Line 5
  52. | Line 6
  53. Line 7
  54. Line 8
  55. Line 9
  56. | Line 10
  57. Line 11
  58.  
  59. Line 1
  60. Line 3
  61. Line 5
  62. Line 9
  63.  
  64. sed -e'/^ *|/!{$!N;/n|/P;}' -eD
  65. <<""
  66. Line 1
  67. | Line2
  68. | Line 3
  69. |___| Line 4
  70. | Line 5
  71. |___Line 6
  72. Line 7
  73. Line 8
  74. Line 9
  75. | Line 10
  76. Line 11
  77.  
  78. Line 1
  79. Line 9
  80.  
  81. sed -ne'/^Nmap.* /!{/^|.*: Win.*(W/!d;}'
  82. -e's///;/)/H;x;s/n/: (W/p'
  83. <<""
  84. Nmap scan report for 192.168.xx.xxx
  85. Host is ...
  86. bla... and more ...
  87. and bla and so on...
  88. #
  89. Host script results:
  90. | smb-os-discovery:
  91. | OS: not windows Server (R) ... !(Windows Server (R) 2008 Standard 6.0)
  92. | OS CPE: cpe:/o:microsoft:windows_server_2008::sp1
  93. | Comp ... some words ...
  94. | Net... more words ...
  95. | Work... words again ...
  96. |_ Sys...
  97. #
  98. Nmap scan report for 192.168.xx.xxx
  99. Host is ...
  100. MAC Address:
  101. #
  102. Host script results:
  103. | smb-os-discovery:
  104. | OS: Windows Server (R) 2008 Standard 6001 Service Pack 1 (Windows Server (R) 2008 Standard 6.0)
  105. |_ System time: 2015-12-22T17:01:33-08:00
  106.  
  107. 192.168.xx.xxx: (Windows Server (R) 2008 Standard 6.0)
Add Comment
Please, Sign In to add comment