Writeup by Tian Cilliers of The Order of Bit (#1 South African CTF team!)
Sprint faster than this binary!
| #!/usr/bin/python3 | |
| # tfw no working sources to ensure values are correct | |
| # https://web.archive.org/web/20100705221006/http://code.devicenull.org:80/index.php?title=Python:PluginReader | |
| # https://wcfan.de/diverse/spfile.php | |
| import struct, zlib, io, hashlib |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Compile plugin", | |
| "type": "shell", | |
| "presentation": { |
| package channelsorter | |
| import ( | |
| "sort" | |
| "github.com/rumblefrog/discordgo" | |
| ) | |
| type ChannelGeneric struct { | |
| Underlying *discordgo.Channel |
| const { Client } = require('discord.js'); | |
| const { token } = require('./config'); | |
| const client = new Client; | |
| client.on('ready', () => console.log('Ready.')); | |
| const events = { | |
| MESSAGE_REACTION_ADD: 'messageReactionAdd', | |
| MESSAGE_REACTION_REMOVE: 'messageReactionRemove', |
| const { Client } = require('discord.js'); | |
| const client = new Client(); | |
| client.on('ready', () => { | |
| console.log('Ready!'); | |
| }); | |
| const events = { | |
| MESSAGE_REACTION_ADD: 'messageReactionAdd', | |
| MESSAGE_REACTION_REMOVE: 'messageReactionRemove', |
| { | |
| "files.autoSave": "onFocusChange", | |
| "editor.tabSize": 4, | |
| "editor.insertSpaces": true, | |
| "editor.detectIndentation": true, | |
| // https://marketplace.visualstudio.com/items?itemName=robertohuertasm.vscode-icons | |
| "workbench.iconTheme": "vscode-icons", | |
| "vsicons.associations.files": [ |
| // ==UserScript== | |
| // @name AlliedModders Night Theme | |
| // @namespace github.com/rsKliPPy/ | |
| // @match https://forums.alliedmods.net/* | |
| // @version 1.3.0 | |
| // @downloadURL https://gist.githubusercontent.com/rsKliPPy/4d4281e6ac447b601958d2e6c4971c30/raw | |
| // @homepageURL https://github.com/rsKliPPy | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== |
| with import <nixpkgs> { system = "i686-linux"; }; | |
| runCommandCC "filename" { buildInputs = [ gcc ]; } '' | |
| cat <<EOF > $out | |
| #!${stdenv.shell} | |
| patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${lib.makeLibraryPath [ zlib ]} \$1 | |
| EOF | |
| chmod +x $out | |
| '' |