Skip to content

Instantly share code, notes, and snippets.

View icio's full-sized avatar
💬
icio is typing...

Paul Scott icio

💬
icio is typing...
View GitHub Profile
,,,,,,,,,,,,,;;;;;;;;:::okKXXKKKKKKKKK0KK0OolcclllclodddoloddddxxdddxxxxkOOkkkOolo;,codl:xKXXXXXXXXXKKKKKXXXXXXXXXXXXXXX0xdollllllllooooddoodddddddooooooooodddddo'.'dO00000OOOOO00000OOOOOO00OOOOOO0OOO
,,,,,,,,,,,,;;;;;;;,,,;::coOKKKKKKKKKKKKKK0xoccc:cccclooooddddddoodxxxkkOOOOOOO0kod;,;lolclllokkdlc:;,;lx0XXXXXXXXXXXXOoccllllllclooodoooddddddddddddoooooddddddoc..;x0000000OO00000000OOO00000000000000
,;;,,,,,,;;;:lc,,,,,,,,,;;:lOKXXKKKKKKKKKKK0xll;;c:',;ldxxxxxdllldOkxOOkkOKK00XXX0oo;,,:looolc:,,;::cc:;;;lxO0KKXXXKxlcloloolllloddoddddddddxxxxddddddddlodddxxlo:.,dO0000000000000000000000000000000000
;;;,,,,,,,,,;;,,,,,,,,'....':ld0KKKKKKKKKKKOooollc,'coOkdxkklcoxk0kxkOkKNNNNNNNXXXd:;,,,;;:lllllccllooooooooollloddlloddollloddddddddddddxxxxxxxxdddddddloxxxxo:o,.lO00000000O00000000000000000000000000
,,,,,,,,;;;;;;,,,,,,,,,,,,'....;kKKKXXKKKKOc;looc,,lddodlclcloodkOxxkOKXNNNNNNNNNO,''''''',;cooolloooddooododoolcclooooooddddddddddddddddxxxxxxxxxddddddloxxxxclc.:k0000000O000O000000000000000000000000
,,;;;;;;:::;,,;;;;,

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@icio
icio / gist:1253244
Created September 30, 2011 09:30
Kevin Mitnick Voice Mail and Fax Exploit
http://hsgac.senate.gov/030200_mitnick.htm
8.2 Voice Mail and Fax Exploit
This exploit relies on convincing an employee at a large company to enable a voice mailbox: the intruder would call the people who administer the voice mailboxes for the target company and request a mailbox. The pretext would be that the intruder works for a different division, and would like to retrieve messages without making a toll call.
Once the intruder has access to the voice mail system, the intruder would call the receptionist, represent himself as an employee of the company, and ask that they take messages for him; last but not least, the intruder would request the fax number and ask that incoming faxes be held for pickup. This sets the stage for the call to the target division of the company.
At this point, the intruder would call the target division to initiate the fax exploit with the goal of obtaining the targeted confidential company information. During that call the intruder would identify himself as an employee of th
@icio
icio / size-split.sh
Created September 24, 2011 17:56
Split (by line) a file into similarly-sized parts each less than a given size
#!/usr/bin/env bash
# Filesize limit (MiB)
limit=$(($1 * 1000**2))
shift
# Accept multiple files in the arguments
for file in $@
do
# Skip arguments that aren't regular files
#! /usr/bin/env php
<?php
route();
/*
* =======================================================
*/
/**
* Route the user input to the correct function.
<div class='blockHeader' style='padding-bottom:5px;border-bottom:1px solid #cbcbcb !important;border-top:1px solid #c8c8c8 !important;font-weight:bold;height:24px; vertical-align:top;top:-23px;position:relative; padding-left: 33px;color:#2c3434 !important;padding-top:13px;'>
<font style=' background: -webkit-gradient(linear, 0% 25%, 0% 80%, from(#707070), to(#050505) );-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:14px;'>
Would you help company
</font>
</div>
@icio
icio / get_prime.php
Created March 22, 2011 22:37
N-th Prime Numbers
<?php
/**
* A method for finding n-th prime numbers. Usage example follows at the end.
* @author Paul Scott <paul.scotto@gmail.com>
*/
/**
* Calculate the n-th prime number(s).
*
@icio
icio / manifest.json
Created March 17, 2011 17:44
Chrome extension to list all tab locations and copy them to the clipboard
{
"name": "Open URL Collector",
"version": "1.0",
"description": "Creates a list of the URLs of open tabs.",
"browser_action": {
"default_icon": "famfamfam_silk_cut_tab.png",
"popup": "popup.html"
},
"permissions": ["tabs"]
}
@icio
icio / gist:848120
Created February 28, 2011 21:54
Newton-Raphson in R
#| Using the Newton-Raphson Method, find the root of
#| the function f (with derivative fdx) near the
#| point x (with tolerance e [solution x has abs f(x) < e]
#| and within a limit of 1000 steps)
newtonRaphson <- function(x, f, fdx, e = 0.001, maxSteps = 1000)
{
step = 0;
while (abs(x) > e && step < maxSteps)
{
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
public class Main extends Sprite