Class: Onyphe::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/onyphe/cli.rb

Instance Method Summary collapse

Instance Method Details

#ctl(domain) ⇒ Object



9
10
11
# File 'lib/onyphe/cli.rb', line 9

def ctl(domain)
  with_error_handling { puts api.ctl(domain).to_h.to_json }
end

#datascan(query) ⇒ Object



14
15
16
# File 'lib/onyphe/cli.rb', line 14

def datascan(query)
  with_error_handling { puts api.datascan(query).to_h.to_json }
end

#forward(ip) ⇒ Object



19
20
21
# File 'lib/onyphe/cli.rb', line 19

def forward(ip)
  with_error_handling { puts api.forward(ip).to_h.to_json }
end

#geoloc(ip) ⇒ Object



24
25
26
# File 'lib/onyphe/cli.rb', line 24

def geoloc(ip)
  with_error_handling { puts api.geoloc(ip).to_h.to_json }
end

#inetnum(ip) ⇒ Object



29
30
31
# File 'lib/onyphe/cli.rb', line 29

def inetnum(ip)
  with_error_handling { puts api.inetnum(ip).to_h.to_json }
end

#ip(ip) ⇒ Object



34
35
36
# File 'lib/onyphe/cli.rb', line 34

def ip(ip)
  with_error_handling { puts api.ip(ip).to_h.to_json }
end

#md5(md5) ⇒ Object



39
40
41
# File 'lib/onyphe/cli.rb', line 39

def md5(md5)
  with_error_handling { puts api.md5(md5).to_h.to_json }
end

#onionscan(onion) ⇒ Object



44
45
46
# File 'lib/onyphe/cli.rb', line 44

def onionscan(onion)
  with_error_handling { puts api.onionscan(onion).to_h.to_json }
end

#pastries(ip) ⇒ Object



49
50
51
# File 'lib/onyphe/cli.rb', line 49

def pastries(ip)
  with_error_handling { puts api.pastries(ip).to_h.to_json }
end

#reverse(ip) ⇒ Object



54
55
56
# File 'lib/onyphe/cli.rb', line 54

def reverse(ip)
  with_error_handling { puts api.reverse(ip).to_h.to_json }
end

#sniffer(ip) ⇒ Object



59
60
61
# File 'lib/onyphe/cli.rb', line 59

def sniffer(ip)
  with_error_handling { puts api.sniffer(ip).to_h.to_json }
end

#synscan(ip) ⇒ Object



64
65
66
# File 'lib/onyphe/cli.rb', line 64

def synscan(ip)
  with_error_handling { puts api.synscan(ip).to_h.to_json }
end

#threatlist(ip) ⇒ Object



69
70
71
# File 'lib/onyphe/cli.rb', line 69

def threatlist(ip)
  with_error_handling { puts api.threatlist(ip).to_h.to_json }
end