Skip to content

Instantly share code, notes, and snippets.

@1umpus
1umpus / example.xml
Last active February 18, 2019 04:46
tor hiddenserver simulation via shadow
<shadow stoptime="4000" preload="~/.shadow/lib/libshadow-interpose.so" environment="OPENSSL_ia32cap=~0x200000200000000;EVENT_NOSELECT=1;EVENT_NOPOLL=1;EVENT_NOKQUEUE=1;EVENT_NODEVPOLL=1;EVENT_NOEVPORT=1;EVENT_NOWIN32=1">
<!-- our network. the xml data here could instead be specified in a separate topology.xml file and given here as:
<topology path="/path/to/topology.xml" />
-->
<topology>
<![CDATA[<?xml version="1.0" encoding="utf-8"?><graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key attr.name="packetloss" attr.type="double" for="edge" id="d9" />
<key attr.name="jitter" attr.type="double" for="edge" id="d8" />
<key attr.name="latency" attr.type="double" for="edge" id="d7" />
@1umpus
1umpus / startup.sh
Created February 5, 2019 21:54
shadow setup
#!/bin/bash
# Install dependencies
apt-get update
apt-get install -y gcc g++ python libglib2.0-0 libglib2.0-dev libigraph0v5 libigraph0-dev cmake make xz-utils git
apt-get install libc-dbg
apt-get install -y python-matplotlib python-numpy python-scipy python-networkx python-lxml
apt-get install -y git dstat screen htop
apt-get -y install gcc automake autoconf zlib1g-dev liblzma5 liblzma-dev

Keybase proof

I hereby claim:

  • I am 1umpus on github.
  • I am lumpus (https://keybase.io/lumpus) on keybase.
  • I have a public key ASAG4-aiEUeq56YvpwMun0WvdHZ4dGhMfH6ZtQ1EYkDOOgo

To claim this, I am signing this object: