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vIjo1OTg2NDR9LCJwcmV2IjoiMTZlZWMzZTVhZjljNGQ4YWNmMTM5MjZlYWJmOWQ0
@mfaerevaag
mfaerevaag / DES.md
Last active September 21, 2017 07:56
Cryptanalysis of DES

Cryptanalysis of DES

Calculate and XOR Distribution Tables (XDT) for S-Boxes and best 2-round iterative characteristic (1/234).

All output of program is written to output.txt, found in the current working directory.

Should be compiled with C99 support.

@mfaerevaag
mfaerevaag / vol.sh
Last active April 8, 2018 12:40
amixer script - toggling mute and more
#!/bin/sh
# signal window manager to update volume bar
signal() {
pkill -RTMIN+1 i3blocks
}
# change after your setup
CARD='0'
CHANNELS="Master Front Surround Center LFE"
@mfaerevaag
mfaerevaag / dots-import.sh
Last active April 20, 2018 11:49
Import dot files
#!/usr/bin/sh
REPO="https://github.com/mfaerevaag/dots.git"
DIR="$HOME/.dots"
BACKUP="$HOME/.dots-backup"
function dots {
/usr/bin/git --git-dir=$DIR --work-tree=$HOME $@
}
@mfaerevaag
mfaerevaag / index.html
Created December 19, 2018 13:06
JavaScript payloads in a#href attributes using mimetypes
<h1>JavaScript payloads in a#href attributes using mimetypes</h1>
<b>Scenario:</b>
<pre>&lt;a href="[PAYLOAD]"&gt;&lt;/a&gt;</pre>
<b>Examples:</b>
<table border="1">
<thead>
<tr>
<th>Description</th>
@mfaerevaag
mfaerevaag / lp.sh
Last active June 3, 2019 16:02
dmenu script for Lastpass
#!/bin/sh
# login
if not lpass status; then
lpass login m@frv.ag || exit
fi
# get alternatives
passwords=$(lpass ls | grep -v '.*\/\s' | grep -v 'Generated' | awk '{print $1;}')