Skip to content

Instantly share code, notes, and snippets.

Bob Burns BobBurns

Block or report user

Report or block BobBurns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View check_zone.pl
#!/usr/bin/perl -w
# Author: Mark Foster
# (c) 2009 Credentia http://www.credentia.cc/
# $Id: check_zone.pl 104 2009-04-13 10:04:51Z mdf $
# Based on zonechk.pl, this script is a nagios plugin
#
# BUGS
# Not known
#
# TO DO
@BobBurns
BobBurns / cwtest.go
Last active Jan 1, 2018
Example of pushing disk and cpu metrics to AWS Cloudwatch
View cwtest.go
/* quick and dirty code to play around pushing
* aws metrics to cloudwatch
*/
package main
import (
"bufio"
"time"
"fmt"
@BobBurns
BobBurns / sockpay.c
Created Oct 3, 2017
fun payload for process infection
View sockpay.c
/* compile:
* gcc -fpic -pie -nostdlib sockpay.c -o sockpay
* use with https://github.com/BobBurns/hijack-process
* create a listener with nc -l -p 4444
*/
long _write(long fd, char *buf, unsigned long len)
{
long ret;
@BobBurns
BobBurns / hloop.go
Last active Sep 21, 2017
trying to trace golang program with ptrace from Learning Linux Binary Analysis by Elfmaster Ryan O'Neill
View hloop.go
package main
import (
"fmt"
"time"
)
func print_hello(str string) {
fmt.Println("hello", str)
}
@BobBurns
BobBurns / cloudwatch_nrpe.php
Created Oct 15, 2016
Nagios plugin to check AWS Cloudwatch Metrics with AWS PHP SDK
View cloudwatch_nrpe.php
#!/usr/bin/php
<?php
# php script to get aws cloudwatch data and format output
# for nagios check
# can be expanded to get Metrics from all AWS namespaces
# requires aws cli configured and aws sdk for php
# http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
@BobBurns
BobBurns / aws_check_nrpe.php
Last active Oct 15, 2016
Php wrapper script that can be used for nagios checks with an AWS ec2 instance
View aws_check_nrpe.php
#!/usr/bin/php
<?php
# see https://gist.github.com/BobBurns/bc16d6e45fc01e61138f026c18187b00
# for a more efficient script using the aws php sdk
# wrapper script that can be used for nagios checks with aws ec2 instance
#
# Must have Instance Id $dim_value
@BobBurns
BobBurns / lfsr6x5.c
Created Jan 9, 2016
Understanding Cryptography 2.11
View lfsr6x5.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STREAM (256 * 8)
/* short program to understand linear feed shift register
* and its use in stream ciphers.
*
* modified to solve problem 2.11 in Understanding Cryptography by C. Paar
@BobBurns
BobBurns / lfsr.c
Created Jan 8, 2016
Linear feed shift register in C with 8 bits
View lfsr.c
#include <stdio.h>
#include <stdlib.h>
#define STREAM (256 * 8)
/* short program to understand linear feed shift register
* and its use in stream ciphers.
*/
int
@BobBurns
BobBurns / aff_c.c
Created Jan 3, 2016
c algorithm to decipher affine cipher
View aff_c.c
#include <stdio.h>
#include <stdlib.h>
/* quick program to solve affine cipher with key a, b mod 26 */
/* usage: ./aff_c <key a> <key b> <optional e=encrypt>
* cipher-text from stdin or pipe
*/
int
@BobBurns
BobBurns / rijndael_field_sbox.c
Created Dec 30, 2015
Rijndail S-box the long way
View rijndael_field_sbox.c
#include <stdio.h>
/* Rijndael Field S-box transformation
* part of the AES encryption algorythm or Rijndal's block cipher.
*
* code expanded on blog @ www.samiam/galois.html
*/
/* global vars */
You can’t perform that action at this time.