Skip to content

Instantly share code, notes, and snippets.

View ybur-yug's full-sized avatar

yburyug ybur-yug

View GitHub Profile
# Instagram iOS session hijack
Instagram makes API calls to non-HTTPS endpoints with session cookies in the
request headers allowing full session hijack by a malicious actor.
Steps to reproduce (on Mac OS X):
- Jump on an open or WEP encrypted wifi access point
- Put your network interface into promiscuous mode filtering on i.instagram.com
<pre>
var alphabet = "abcdefghijklmnopqrstuvwxyz";
);
var query = from a in alphabet
from b in alphabet
from c in alphabet
select "" + a + b + c;
foreach (var item in query)
{
HAI
CAN HAS STDIO?
I HAS A VAR IZ 0
IM IN YR LOOP
UPZ VAR!!1
IZ VAR BIGR THAN 100?
GTFO.
KTHX
IZ VAR LEFTOVAR 15 LIEK 0?
VISIBLE "FIZZBUZZ"
class Nerd:
def __init__(self):
self.habits = 'philosophy'
class Kendall(Nerd):
def __init__(self, name, email):
self.name = name
self.email = email
def name_and_email():
Verifying that +bobb is my openname (Bitcoin username). https://onename.io/bobb

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

@ybur-yug
ybur-yug / sleep_sort.py
Last active August 29, 2015 14:13
sleep sort, for the lulz
from time import sleep
from threading import Timer
# this is completely ridiculous and should never be used
def sleepsort(values):
sleepsort.result = []
def add_one(x):
sleepsort.result.append(x)
mx = values[0]
for v in values:
e = Tesseract::Engine.new {|e|
e.language = :eng
e.blacklist = '|'
}
e.each_line_for('/home/bobby/rhgraysonii.github.io/sam/rba.png')
output:
devbox:~/ruby_ocr_tutorial/app/lib$ ruby ocr_engine.rb
WARN: Unresolved specs during Gem::Specification.reset:
require 'fileutils'
include FileUtils
# U G O
# rwxrwxrwx
0b111101101
perms = 0b111101101
perms.to_s(8)
#=> 755
chmod perms 'somefile'
devbox% python
Python 2.7.8 (default, Oct 20 2014, 15:05:19)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> os
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'os' is not defined
>>> sys
Traceback (most recent call last):