Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated README with Ruby / RoR example.

  • Loading branch information...
commit a6a5e96b9b140e580ba84ff27136e160ff3fcdb7 1 parent c5ba608
Corey Ehmke authored
Showing with 13 additions and 2 deletions.
  1. +6 −1 README.md
  2. +7 −1 README.rdoc
View
7 README.md
@@ -19,7 +19,12 @@ You can send messages to remote machines by specifying a host and port in the cl
synack -h my_remote_machine -p 1013 "I'm here, what did you want?"
-You can even use UNIX pipes to send messages (first line of input only, for now):
+You can use UNIX pipes to send messages (first line of input only, for now):
echo 'Foo to you, sir.' | synack
+You can even invoke it from within a Ruby or Rails application:
+
+ def log_remote_event(event_name)
+ Synack::Client.new(:host => '10.0.1.1').say("Event #{event_name} captured")
+ end
View
8 README.rdoc
@@ -18,10 +18,16 @@ You can send messages to remote machines by specifying a host and port in the cl
synack -h my_remote_machine -p 11113 "I'm here, what did you want?"
-You can even use UNIX pipes to send messages (first line of input only, for now):
+You can use UNIX pipes to send messages (first line of input only, for now):
echo 'Foo to you, sir.' | synack
+You can even invoke it from within a Ruby or Rails application:
+
+ def log_remote_event(event_name)
+ Synack::Client.new(:host => '10.0.1.1').say("Event #{event_name} captured")
+ end
+
== Contributing to synack
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
Please sign in to comment.
Something went wrong with that request. Please try again.