This file contains hidden or 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
| import Data.Char (ord) | |
| import Data.Bits (xor) | |
| -- Complete the incantation... | |
| flag = "HTB{4_m0n4d_15_ju57_4_m0n01d_1n_7h3_c47360ry_0f_3nd0func70r5!!}" | |
| extractFlag :: String -> String | |
| extractFlag (s:rest) | |
| | s == 'H' || s == 'T' || s == 'B' | |
| = extractFlag rest |
This file contains hidden or 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 -e | |
| lastport=`cat ~/.lastport || echo 4000` | |
| newport=$(($lastport+1)) | |
| docker run -d -e "CTF_KEY=juicelympicsgobrrrrr" -e "NODE_ENV=ctf" -p $newport:3000 bkimminich/juice-shop |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| puts <<-"EOF" | |
| ____ _____ _____ __ _ _____ | |
| / __ \\ / ____|/ ____| \\ \\ /\\ | | / ____| /\\ | |
| | | | | (___ | | _____\\ \\ / \\ | | | (___ / \\ | |
| | | | |\\___ \\| | |______> > / /\\ \\ | | \\___ \\ / /\\ \\ | |
| | |__| |____) | |____ / / / ____ \\| |____ ____) / ____ \\ | |
| \\____/|_____/ \\_____| /_/ /_/ \\_\\______|_____/_/ \\_\\ |
This file contains hidden or 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
| _._._. ._._._ | |
| _,_)/''/'/ \'\''\(_,_ | |
| )'`' ` '/ \' ''`'( | |
| _(` '( _________ )' `)_ | |
| _(' \ `/ / ' \, \` / ')_ | |
| ( \ '( \ ' ' ' '\ , )' / ) | |
| ( \ \ ') /',-- ' --` ) (` / / ) | |
| \ \ \ `\ / '@@" "@@` \ /' / / / | |
| ( \ \ ') / ' `,' '," \ (' / / ) | |
| \ \ \ \ `\ \ ' ' ' ' | /' / / / |
This file contains hidden or 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 -e | |
| DSTDIR="/tmp" | |
| if [[ -z $1 ]]; then | |
| echo No package specified >&2 | |
| exit 1 | |
| fi |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require 'net/http' | |
| body = Net::HTTP.get(URI("https://www.thesaurus.com/e/synonym-of-the-day/")) | |
| r = /<a.*href="https:\/\/www\.thesaurus\.com\/browse\/.+".*>(\S+)<\/a>\s*is another word for\s*<a.*href="https:\/\/www\.thesaurus\.com\/browse\/.+".*>\s*(\S+)\s*<\/a>\s*<\/h2>/ | |
| firstword, secondword = r.match(body).captures | |
| system("{ |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require './morse_dict.rb' | |
| require 'readline' | |
| LED = '/sys/class/leds/input3::numlock/brightness' | |
| OLD = File.read LED | |
| File.write LED, 0 |
This file contains hidden or 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
| #tmux at -t irssi || tmux new -s irssi irssi | |
| # Starting is handled by [email protected] | |
| tmux at -t irssi |
This file contains hidden or 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/pp_oscdriver.py b/pp_oscdriver.py | |
| index e21ffc6..3f30c95 100644 | |
| --- a/pp_oscdriver.py | |
| +++ b/pp_oscdriver.py | |
| @@ -345,19 +345,19 @@ class OSCDriver(object): | |
| self.prepare_show_command_callback('close ', args,1) | |
| def closeall_handler(self,address, tags, args, source): | |
| - self.prepare_show_command_callback('closeall',args,0) | |
| + self.prepare_show_command_callback('closeall',args,1) |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require "sinatra" | |
| set :port, 1337 | |
| get "/" do | |
| return <<-'EOF' | |
| Welkom. Kun je dit kraken? | |
| <form action="/login" method="post"> | |
| <input type="text" name="username"><br> |