프로젝트 소개

pwned는 hibp Node.js 모듈을 사용하여 Troy Hunt의 'Have I been pwned?' 서비스와 연동되는 명령줄 도구입니다. 사용자가 자신의 계정이나 이메일 주소가 알려진 데이터 유출에 연루되었는지 확인하고, 페이스트를 검색하고, 비밀번호 노출을 검증하고, 유출 정보를 조회할 수 있습니다. ## 설치 npm을 통해 전역으로 설치합니다: ```shell npm install pwned -g ``` 또는 npx로 필요할 때 실행합니다: ```shell npx pwned ``` ## 보호된 명령 2019년 7월 18일부터 일부 API 엔드포인트는 API 키가 필요합니다. `ba`, `pa`, `search`와 같은 명령은 인증이 필요합니다. [haveibeenpwned.com/API/Key](https://haveibeenpwned.com/API/Key)에서 API 키를 발급받아 `pwned apiKey`로 설정하세요. 다른 명령은 키 없이 작동합니다. ## 사용법 ``` pwned <command> Commands: pwned apiKey [key] set the API key for authenticated requests pwned ba <account|email> get all breaches for an account pwned bd <domain> get all breached email addresses for a domain pwned breach <name> get a single breached site by breach name pwned breaches get all breaches in the system pwned dc get all data classes in the system pwned lb get the most recently added breach pwned pa <email> get all pastes for an account pwned pw <password> securely check a password for public exposure pwned sd get all subscribed domains for your account pwned search <account|email> search breaches and pastes for an account pwned slbe <email> get all stealer log domains for an email address pwned slbed <email-domain> get all stealer log email aliases for an email domain pwned slbwd <website-domain> get all stealer log email addresses for a website domain pwned subStatus get the subscription status of your API key Options: -h, --help Show help -v, --version Show version number ``` ## 예시 - 계정의 유출 확인: `pwned ba email@example.com` - 도메인으로 필터링하여 모든 유출 목록 조회: `pwned breaches -d adobe.com` - 특정 유출 조회: `pwned breach MyCompany` - 데이터 클래스를 원시 JSON으로 조회: `pwned dc --raw` - 이메일의 페이스트 확인: `pwned pa nobody@nowhere.com` - 비밀번호 노출 확인: `pwned pw Password1234` - 유출 및 페이스트 검색: `pwned search nobody` ## 라이선스 MIT License