Skip to content

Instantly share code, notes, and snippets.

View philhawthorne's full-sized avatar

Phil Hawthorne philhawthorne

View GitHub Profile

Keybase proof

I hereby claim:

  • I am philhawthorne on github.
  • I am philhawthorne (https://keybase.io/philhawthorne) on keybase.
  • I have a public key whose fingerprint is 7157 8306 1354 80F3 EF24 BE7C 2B92 8A94 5D74 6ABF

To claim this, I am signing this object:

@philhawthorne
philhawthorne / castleos_conditional_ping.cs
Created March 16, 2016 09:57
CastleOS Conditional Script based on Pinging an IP Address
using System;
using CastleOSCoreService; // NOTE: this must be included, but you can add other using statements below
using System.Net.NetworkInformation;
public class MyScript
{
public string Main(string[] args)
{
//Specify the IP address you want to check here
string ip_address = "192.168.1.x";