Skip to content

JoshuaMart/Interactsh-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InteractSH-Library

Ruby library for Interactsh

Installation

gem install interactsh

Available method

Interactsh.new # => Initialize a new InteractSH class | [Object]
Interactsh.new_domain # => Generate a new domain | [String]
Interactsh.poll # => Retrieves data from the server for a specific domain | [Hash]

Working with custom server

Interactsh.new accepts your custom domain as an argument. See Custom Interactsh Server Installation

Interactsh.new('domain.tld')
Interactsh.new('domain.tld', 'your-secret-token')

Usage example :

require 'interactsh'
require 'typhoeus'

# Initialization
interactsh = Interactsh.new

# Simulate interaction
domain = interactsh.new_domain
request = Typhoeus::Request.new(domain)
request.run

# We get the the different interactions
datas = interactsh.poll(domain)
datas.each do |data|
  puts "Request type : '#{data['protocol']}' from '#{data['remote-address']}' at #{data['timestamp']}"
end