NMAP: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Created page with "== Scan subnet<ref>https://unix.stackexchange.com/questions/585775/nmap-output-with-awk-to-table</ref> == <syntaxhighlight lang="bash"> $sudo nmap -sP 192.168.1.0/24 | awk '{a=0;b=2;c=3;d=4;e=5;f=6} function out() { if (state=="up") { printf "%s \t%s \t%s \t%s\n", ip, mac, name, name2; ip=""; mac=""; name=""; state=""; name2="" } } /Nmap scan report/ { out(); name=$e; ip = substr($f,2,length($f)-2); if (ip=="") { ip=name; name="" } } /Host is/ { state=$c } /MAC Addr...")
 
(Fix: remove --- horizontal lines (7 removed))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Scan subnet<ref>https://unix.stackexchange.com/questions/585775/nmap-output-with-awk-to-table</ref> ==
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}
 
{{TOC}}
 
== Overview ==
 
NMAP에 대한 기술 문서입니다.
 
=== Summary ===
 
* 무엇인가? - NMAP
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
 
 
== Purpose ==
 
이 문서가 존재하는 이유
 
* Goal: NMAP에 대한 기술 정보 제공
* Scope: NMAP의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
 
 
== Key Concepts ==
 
{| class="wikitable"
! Concept
! Description
! Related
|-
| NMAP
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
 
 
== Detailed Explanation ==
 
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$sudo nmap -sP 192.168.1.0/24 | awk '{a=0;b=2;c=3;d=4;e=5;f=6} function out() { if (state=="up") { printf "%s  \t%s  \t%s  \t%s\n", ip, mac, name, name2; ip=""; mac=""; name=""; state=""; name2="" } } /Nmap scan report/ { out(); name=$e; ip = substr($f,2,length($f)-2); if (ip=="") { ip=name; name="" } } /Host is/ { state=$c } /MAC Address/ { mac=$c; name2=substr($a,index($a,$d)) } END { out() }'
$sudo nmap -sP 192.168.1.0/24 10.230.200.0/26 | awk '{a=0;b=2;c=3;d=4;e=5;f=6} function out() { if (state=="up") { printf "%s  \t%s  \t%s  \t%s\n", ip, mac, name, name2; ip=""; mac=""; name=""; state=""; name2="" } } /Nmap scan report/ { out(); name=$e; ip = substr($f,2,length($f)-2); if (ip=="") { ip=name; name="" } } /Host is/ { state=$c } /MAC Address/ { mac=$c; name2=substr($a,index($a,$d)) } END { out() }'
</syntaxhighlight>
</syntaxhighlight>
<references />
== Best Practices ==
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증


== References ==
== References ==
<references />
 
* [https://wiki.hpcmate.com NMAP]
 
 
== Related Pages ==
 
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]
 
 
[[Category:Server]]
== Knowledge Graph ==
 
Related
 
→ [[Linux]]
→ [[Server]]
→ [[Hardware]]
→ [[Network]]
 
[[Category:Reference]]

Latest revision as of 11:29, 17 July 2026

Template:Status

Template:TOC

Overview

NMAP에 대한 기술 문서입니다.

Summary

  • 무엇인가? - NMAP
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: NMAP에 대한 기술 정보 제공
  • Scope: NMAP의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
NMAP HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

$sudo nmap -sP 192.168.1.0/24 10.230.200.0/26 | awk '{a=0;b=2;c=3;d=4;e=5;f=6} function out() { if (state=="up") { printf "%s   \t%s   \t%s  \t%s\n", ip, mac, name, name2; ip=""; mac=""; name=""; state=""; name2="" } } /Nmap scan report/ { out(); name=$e; ip = substr($f,2,length($f)-2); if (ip=="") { ip=name; name="" } } /Host is/ { state=$c } /MAC Address/ { mac=$c; name2=substr($a,index($a,$d)) } END { out() }'


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork