Project

interactsh

0.0
The project is in a healthy, maintained state
Interactsh Ruby Library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1, >= 1.1.3
~> 1.0, >= 1.0.7
~> 0.2.0
~> 1.4, >= 1.4.0
 Project Readme

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