Skip to content

Instantly share code, notes, and snippets.

View aaronweaver's full-sized avatar
🎯
Focusing

Aaron Weaver aaronweaver

🎯
Focusing
View GitHub Profile
@aaronweaver
aaronweaver / sql.java
Created October 8, 2017 19:19
Challenge #2
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
class Login {
public Connection getConnection() throws SQLException {
DriverManager.registerDriver(new
com.microsoft.sqlserver.jdbc.SQLServerDriver());
@aaronweaver
aaronweaver / snippet.c
Last active October 8, 2017 19:08
Code Challenge #1
typedef struct ssl3_record_st
{
/*r */ int type; /* type of record */
/*rw*/ unsigned int length; /* How many bytes available */
/*r */ unsigned int off; /* read/write offset into 'buf' */
/*rw*/ unsigned char *data; /* pointer to the record data */
/*rw*/ unsigned char *input; /* where the decode bytes are */
/*r */ unsigned char *comp; /* only used with decompression - malloc()ed */
/*r */ unsigned long epoch; /* epoch number, needed by DTLS1 */
/*r */ PQ_64BIT seq_num; /* sequence number, needed by DTLS1 */
@aaronweaver
aaronweaver / efigylite_cli.py
Created October 4, 2017 19:58
EFI check for Jamf
#!/usr/bin/env python
#-----------------------------------------------------------
# Filename : EFIgyLite_cli.py
#
# Description : Initial EFIgy client that uses the EFIgy
# API to check the EFI firmware version
# your Mac is running is the expected one.
# OS X/macOS 10.10,10.11,10.12 only for now.
#
# Created By : Rich Smith (@iodboi)