Skip to content

Instantly share code, notes, and snippets.

tar --create --verbose --owner=0 --group=0 --numeric-owner --mode=go=rX,u+rw,a-s --sort=name --sparse '--mtime=2015-10-21 00:00Z' --xz --directory=/home/user/whonix_binary --file Whonix-Gateway-XFCE-14.0.0.9.9.libvirt.xz Whonix-Gateway-XFCE-14.0.0.9.9.qcow2 Whonix-Gateway-XFCE-14.0.0.9.9.xml Whonix_external_network-14.0.0.9.9.xml Whonix_internal_network-14.0.0.9.9.xml
mkdir -p ~/temp
touch one.txt two.txt three.txt
tar --create --verbose --owner=0 --group=0 --numeric-owner --mode=go=rX,u+rw,a-s --sort=name --sparse '--mtime=2015-10-21 00:00Z' --xz --directory=/home/user/temp --file archived.xz one.txt two.txt three.txt
#!/bin/bash
set -x
set -e
src_a_file=~/some-file
src_b_file=~/some-file.asc
touch "$src_a_file" "$src_b_file"
This file has been truncated, but you can view the full file.
user@qubes-build:~$ ./qubes-whonix-build-new
++ cd qubes-builder
++ DISTS_VM='whonix-gateway whonix-workstation'
++ COMPONENTS='linux-template-builder builder builder-debian template-whonix'
++ BUILDER_PLUGINS='builder-debian template-whonix'
++ USE_QUBES_REPO_VERSION=3.2
++ USE_QUBES_REPO_TESTING=1
++ VERBOSE=3
++ DEBUG=1
++ REPO_PROXY=http://127.0.0.1:3142
@adrelanos
adrelanos / README.md
Created August 19, 2016 14:37 — forked from ethan2-0/README.md
A Python 3 libnetfilter_queue handler intended to mitigate CPU load covert channels based on ping timings

Usage

To install the dependencies, run the script install_deps.sh as root.

To set up the filter, run setup_iptables.sh as root. You may need to change the queue-num parameter if you already have some NFQUEUE-based iptables rules.

To run the filter, run python3 main.py as root. If you used a queue number other than 0, you'll need to pass it as the first parameter to main.py.

@adrelanos
adrelanos / clearsign_decrypt_demo
Last active August 29, 2015 14:13
clearsign failed intuition demo
#!/bin/bash
set -x
set -e
true "Clean up eventual previous run."
rm -f clearsign_decrypt_demo_test_file.txt.asc
rm -f clearsign_decrypt_demo_test_file.txt

Keybase proof

I hereby claim:

  • I am adrelanos on github.
  • I am adrelanos (https://keybase.io/adrelanos) on keybase.
  • I have a public key whose fingerprint is 916B 8D99 C38E AF5E 8ADC 7A2A 8D66 066A 2EEA CCDA

To claim this, I am signing this object:

@adrelanos
adrelanos / deactivate_vpn_firewall
Created April 13, 2014 02:07
deactivate vpn firewall
#!/bin/bash
set -x
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT