Skip to content

Instantly share code, notes, and snippets.

View redshiftzero's full-sized avatar
🐉
✧・゚: *✧・゚:* (⊃。•́‿•̀。)⊃ *:・゚✧*:・゚✧

redshiftzero redshiftzero

🐉
✧・゚: *✧・゚:* (⊃。•́‿•̀。)⊃ *:・゚✧*:・゚✧
View GitHub Profile
@redshiftzero
redshiftzero / SD_ROUND_1.md
Last active November 8, 2018 19:34
securedrop workstation round 1

Building securedrop-proxy 0.1.1 and securedrop-client 0.0.2

Following build guidelines in PR #9, in a Debian AppVM:

  1. make install-deps
  2. make syncwheels

securedrop-client

@redshiftzero
redshiftzero / debug_output.txt
Created July 13, 2018 21:37
for a vagrant issue
$ vagrant -v
Vagrant 2.1.2
$ vagrant up app-staging
Bringing machine 'app-staging' up with 'virtualbox' provider...
==> app-staging: Importing base box 'bento/ubuntu-14.04'...
==> app-staging: Matching MAC address for NAT networking...
==> app-staging: Checking if box 'bento/ubuntu-14.04' is up to date...
==> app-staging: A newer version of the box 'bento/ubuntu-14.04' for provider 'virtualbox' is
==> app-staging: available! You currently have version '201803.24.0'. The latest is version
==> app-staging: '201806.08.0'. Run `vagrant box update` to update.
@redshiftzero
redshiftzero / read_flask_cookie.py
Last active October 10, 2018 19:45
read flask cookie without secret key
@redshiftzero
redshiftzero / securedrop-qa.yml
Last active April 30, 2020 17:52 — forked from conorsch/securedrop-qa.yml
QA playbook for testing SD RC debs
---
# Playbook to update SecureDrop VMs configured with the latest stable release
# to use the release candiate packages from apt-test.freedom.press (rather
# than apt.freedom.press). Updates the apt repo pubkey with a testing pubkey,
# and alters the apt source lists to point to the test server.
#
# Steps to use this playbook:
#
# 1. `git checkout 1.2.2`
# 2. Provision prod VMs.
@redshiftzero
redshiftzero / loadtest.txt
Created January 14, 2018 00:48
load testing FPF's tor apt mirror
$ hey -z 1m -c 50 -m GET https://tor-apt.freedom.press/dists/trusty/Release
Summary:
Total: 60.3476 secs
Slowest: 1.2616 secs
Fastest: 0.0277 secs
Average: 0.0860 secs
Requests/sec: 578.8131
Total data: 101995600 bytes
Size/request: 2920 bytes
@redshiftzero
redshiftzero / verylongls.txt
Created October 3, 2017 22:48
ls -lR /vagrant/securedrop
vagrant@development:/vagrant/securedrop$ ls -lR /vagrant/securedrop
/vagrant/securedrop:
total 356
-rw-r--r-- 1 vagrant vagrant 148 Sep 26 17:49 babel.cfg
-rw------- 1 vagrant vagrant 3865 Sep 26 18:19 config.py
-rw------- 1 vagrant vagrant 2410 Sep 26 18:19 config.pyc
-rw-r--r-- 1 vagrant vagrant 3808 Sep 26 17:49 config.py.example
-rw-r--r-- 1 vagrant vagrant 34520 Sep 26 17:49 COPYING
-rw-r--r-- 1 vagrant vagrant 6770 Oct 3 22:39 crypto_util.py
-rw-r--r-- 1 vagrant vagrant 6953 Oct 3 22:39 crypto_util.pyc
@redshiftzero
redshiftzero / README.md
Last active November 12, 2019 03:20
securedrop-hackathon

SecureDrop Hackathon

SecureDrop is a whistleblower submission system that media organizations use to securely accept documents from and communicate with anonymous sources. Originally written by Aaron Swartz, it's currently maintained by Freedom of the Press Foundation. Dozens of news organizations including the New York Times, the Washington Post, the Intercept, and many others now use SecureDrop.

How SecureDrop Works

============================================== FAILURES ===============================================
___________________________ test_app_iptables_rules[ansible://app-staging] ____________________________
[gw1] darwin -- Python 2.7.12 /usr/local/opt/python/bin/python2.7
SystemInfo = <testinfra.modules.base.SystemInfo object at 0x10ee32dd0>
Command = <command>, Sudo = <sudo>
def test_app_iptables_rules(SystemInfo, Command, Sudo):
# Build a dict of variables to pass to jinja for iptables comparison
kwargs = dict(
======================================================= FAILURES =======================================================
____________________________________ test_app_iptables_rules[ansible://app-staging] ____________________________________
[gw3] darwin -- Python 2.7.12 /usr/local/opt/python/bin/python2.7
SystemInfo = <testinfra.modules.base.SystemInfo object at 0x10fcdabd0>
Command = <command>, Sudo = <sudo>
def test_app_iptables_rules(SystemInfo, Command, Sudo):
# Build a dict of variables to pass to jinja for iptables comparison
kwargs = dict(
@redshiftzero
redshiftzero / beep
Created April 4, 2017 21:11
vagrant provision /staging/
TASK: [install-local-packages | Install locally built deb packages (via apt).] ***
failed: [app-staging] => (item=(0, u'securedrop-ossec-agent-2.8.2+0.3.11-amd64.deb')) => {"failed": true, "item": [0, "securedrop-ossec-agent-2.8.2+0.3.11-amd64.deb"]}
stderr: dpkg: error: unknown force/refuse option `yes'
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;