-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathHIBPwned.Rmd
48 lines (38 loc) · 1.07 KB
/
HIBPwned.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "HIBPwned or HIBPasted?"
author: "Russ McRee"
date: "`r Sys.Date()`"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
if(!require("data.table")) install.packages("data.table")
library("data.table")
#' Collapse breach list into a table and present with kable
show_results<-function(x){
Account<-x
knitr::kable(data.table::rbindlist(
Account, idcol = "Account"
))
}
```
## Steph Locke's HIBPwned
Utilise Troy Hunt's HaveIBeenPwned.com API to check if your email addresses and/or user names have been present in a publicly disclosed data breach or paste.
```{r}
if(!require("HIBPwned")) install.packages("HIBPwned")
library("HIBPwned")
```
## Who am I?
Or in other words what accounts should I check?
```{r}
myaccounts<-c("rmcree@yahoo.com", "holisticinfosec@gmail.com", "russ@holisticinfosec.org")
```
## HIBPwned?
```{r}
show_results(account_breaches(myaccounts, truncate = TRUE))
```
## HIBPasted?
Determine what information may have been pasted (Pastebin, etc.)
```{r}
show_results(pastes(myaccounts, truncate = TRUE))
```