Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2018-13797 — 크로스 플랫폼 Node.js 라이브러리로, Linux, macOS, Windows에서 네트워크 인터페이스별 MAC 주소를 검색하며, async 및 sync API를 제공합니다. | Kitploit
도구/GitHubGitHub/dsp-testing/cve-2018-13797
General Purpose UtilitiesNetwork MappingInformation GatheringUtilities & Frameworks
GitHubdsp-testing/cve-2018-13797

CVE-2018-13797

크로스 플랫폼 Node.js 라이브러리로, Linux, macOS, Windows에서 네트워크 인터페이스별 MAC 주소를 검색하며, async 및 sync API를 제공합니다.

저장소 보기
5년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

node-macaddress

Build Status

Linux, OS X, Windows에서 MAC 주소를 검색합니다.

MAC 주소에 대한 일반적인 오해는 모든 호스트가 하나의 MAC 주소를 가진다는 것이지만, 호스트는 여러 개의 MAC 주소를 가질 수 있습니다. 모든 네트워크 인터페이스가 자신의 MAC 주소를 가질 수 있기 때문입니다.

이 라이브러리는 네트워크 인터페이스별로 MAC 주소를 찾을 수 있게 해주며, 호스트 시스템을 식별하는 하나의 MAC 주소만 필요하다면 적절한 인터페이스를 선택합니다 (아래 API + 예제 참조).

기능:

  • Linux, Mac OS X, Windows, 그리고 대부분의 UNIX 시스템에서 동작합니다.
  • node ≥ 0.12 및 io.js는 os.networkInterfaces()에서 MAC 주소를 보고합니다. 이 라이브러리는 가능할 때 이 정보를 활용합니다.
  • 또한 os.networkInterfaces()의 적절한 대체 기능을 제공합니다. (아래 API + 예제 참조).
  • v0.8 이상의 오래된 node 버전에서도 동작합니다 (...)

사용법

root@kitploit:~
npm install --save macaddress
root@kitploit:~
var macaddress = require('macaddress');

API + 예제

root@kitploit:~
(비동기)  .one(iface, callback) → string
(비동기)  .one(callback)        → string
(비동기)  .all(callback)        → { iface: { type: address } }
(동기)   .networkInterfaces()  → { iface: { type: address } }

.one([iface], callback)

지정된 iface의 MAC 주소를 검색합니다.

iface가 생략되면 이 함수는 자동으로 적절한 장치를 선택합니다 (예: Linux의 eth0, OS X의 en0 등).

iface 매개변수 없이:

root@kitploit:~
macaddress.one(function (err, mac) {
  console.log("이 호스트의 MAC 주소: %s", mac);  
});
root@kitploit:~
→ 이 호스트의 MAC 주소: ab:42:de:13:ef:37

iface 매개변수 사용:

root@kitploit:~
macaddress.one('awdl0', function (err, mac) {
  console.log("awdl0의 MAC 주소: %s", mac);  
});
root@kitploit:~
→ awdl0의 MAC 주소: ab:cd:ef:34:12:56

.all(callback)

모든 내부 인터페이스가 아닌 인터페이스의 MAC 주소를 검색합니다.

root@kitploit:~
macaddress.all(function (err, all) {
  console.log(JSON.stringify(all, null, 2));
});
root@kitploit:~
{
  "en0": {
    "ipv6": "fe80::cae0:ebff:fe14:1da9",
    "ipv4": "192.168.178.20",
    "mac": "ab:42:de:13:ef:37"
  },
  "awdl0": {
    "ipv6": "fe80::58b9:daff:fea9:23a9",
    "mac": "ab:cd:ef:34:12:56"
  }
}

.networkInterfaces()

os.networkInterfaces()의 유용한 대체 기능입니다. 내부 인터페이스가 아닌 인터페이스만 보고합니다.

root@kitploit:~
console.log(JSON.stringify(macaddress.networkInterfaces(), null, 2));
root@kitploit:~
{
  "en0": {
    "ipv6": "fe80::cae0:ebff:fe14:1dab",
    "ipv4": "192.168.178.22"
  },
  "awdl0": {
    "ipv6": "fe80::58b9:daff:fea9:23a9"
  }
}
도구 다운로드