Sources (https://github.com/redpwn/redpwnctf-2020-challenges/tree/master/web/maria-bin) are given for a web application that runs at https://app.maria-bin.tk/. The target is to login as the admin in order for the flag to appear at https://app.maria-bin.tk/new.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependencies: pngjs raw-socket | |
// part of a filing cabinet! | |
const ping = require('./net-ping.js'); | |
const util = require('util'); | |
const PNG = require('pngjs').PNG; | |
const fs = require('fs'); | |
const cluster = require('cluster'); | |
const IMAGE = 'draw.png'; | |
const X_OFFSET = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const repl = require('repl'); | |
const LeagueClientAPI = require('./lol-client-api'); | |
const http = require('http'); | |
const util = require('util'); | |
// set this to the path to LeagueClient.exe (example for linux) | |
const LEAGUE_EXE_PATH = process.env.HOME + '/Games/league-of-legends/drive_c/Riot Games/League of Legends/LeagueClient.exe'; | |
// options for util.inspect when formatting responses | |
const INSPECT_OPTS = { | |
depth: Infinity, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Proton. Hopefully. | |
# Note: DO NOT ACTUALLY RUN THIS SCRIPT. Copy/paste each command so if something goes wrong this thing | |
# doesn't murder your system by accident. | |
# You should probably run this in a container. | |
# If you decide to stop it when it is building wine32, make sure you reinstall the 64-bit versions of | |
# the libraries so you don't have a massive headache while trying to build 64-bit things later on. | |
git clone --depth 10 https://github.com/ValveSoftware/Proton ./proton --recursive --shallow-submodule | |
cd proton | |
# reset all the submodules, no clue why this is needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xe | |
if [[ $EUID -ne 0 ]]; then | |
fakeroot $0 | |
exit $? | |
fi | |
umask 022 | |
VERSION=$(git rev-parse --short HEAD) | |
autoreconf -fsi | |
./configure --prefix=/opt/tinc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libtoolize | |
aclocal | |
autoreconf --install | |
autoconf | |
automake --add-missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
// eslint-plugin-jsdoc doesn't support @template | |
/* eslint-disable jsdoc/no-undefined-types,jsdoc/check-tag-names */ | |
/** | |
* Copy an array, the lame way | |
* @template T | |
* @param {T[]} source Source array | |
* @param {T[]} dest Destination array | |
* @param {number} srcStart Start index of source array | |
* @param {number} srcEnd End index of source array plus one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/mount.h> | |
#include <sys/wait.h> | |
#include <sys/syscall.h> | |
#include <fcntl.h> | |
#include <sched.h> | |
#include <unistd.h> | |
#include <stdio.h> |
Sources (https://github.com/redpwn/redpwnctf-2020-challenges/tree/master/web/maria-bin) are given for a web application that runs at https://app.maria-bin.tk/. The target is to login as the admin in order for the flag to appear at https://app.maria-bin.tk/new.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c | |
index 8fafcb2cd..2b1c7b378 100644 | |
--- a/arch/x86/kvm/vmx/vmx.c | |
+++ b/arch/x86/kvm/vmx/vmx.c | |
@@ -2363,7 +2363,8 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf, | |
CPU_BASED_MWAIT_EXITING | | |
CPU_BASED_MONITOR_EXITING | | |
CPU_BASED_INVLPG_EXITING | | |
- CPU_BASED_RDPMC_EXITING; | |
+ CPU_BASED_RDPMC_EXITING | |