Skip to content

Instantly share code, notes, and snippets.

m-rousse / main.js
Created Feb 9, 2018
Proof of bug chrome 65
View main.js
const CDP = require('chrome-remote-interface');
async function wait(duration) {
process.stdout.write('Waiting ' + duration + ' ms ')
await new Promise(resolve => setTimeout(resolve, duration))
console.log('- done!')
m-rousse / index.html
Last active Feb 8, 2018
Proof of bug, chrome devtool protocol and angular
View index.html
<!doctype html>
<html ng-app="testModule">
<body ng-controller="MainController as vm">
<button ng-click="vm.onNgClick()"></button>
<script src=""></script>
<script src=""></script>
m-rousse / badge.php
Created Jun 26, 2017
Script to decode keystrokes for NDHXV BBC
View badge.php
$keys = file_get_contents("keycodes.txt");
$keys = explode("\n", $keys);
foreach($keys as $k){
$dec = hexdec($k);
$clear = $dec ^ hexdec("4E");
m-rousse /
Created May 22, 2017
Dynamically update DNS zone to give domain name to new Dockers
import docker
import pprint
import json
import signal
import sys
import dns.query
import dns.tsigkeyring
import dns.update
m-rousse /
Created May 22, 2017
Script to rewrite links in e-mails, to be used with Sieve
# -*- coding: utf-8 -*-
import email
import email.encoders
import sys
from bs4 import BeautifulSoup
import re
import requests
mail =
m-rousse /
Created May 22, 2017
Script to fetch blacklisted domains from public lists and generate a zone file for bind.
from urllib.request import Request, urlopen
global confFile, sinkZone
urls = [
m-rousse / rev1.writeup.asm
Created Apr 20, 2016
A write up of sCTF 2016 Q1 Rev1 using radare2
View rev1.writeup.asm
[0x00400560]> aaa
[0x00400560]> iz
vaddr=0x00400744 paddr=0x00000744 ordinal=000 sz=28 len=27 section=.rodata type=a string=What is the magic password?
vaddr=0x00400763 paddr=0x00000763 ordinal=001 sz=26 len=25 section=.rodata type=a string=Correct! Your flag is: %s
[0x00400560]> pd 10 @ 0x00400744-5
| 0x0040073f 0001 add byte [rcx], al
| ;-- sym._IO_stdin_used:
| ;-- section..rodata:
| 0x00400740 0100 add dword [rax], eax ; [14] va=0x00400740 pa=0x00000740 sz=61 vsz=61 rwx=-r-- .rodata
You can’t perform that action at this time.