diff --git a/welcome/challenge/solve b/welcome/challenge/solve index b0fb16b..3b0540d 100644 --- a/welcome/challenge/solve +++ b/welcome/challenge/solve @@ -1,4 +1,4 @@ -#!/usr/bin/exec-suid -- /bin/bash -p +#!/usr/bin/exec-suid --real -- /bin/bash -p # art from https://emojicombos.com/kick-ascii-art cat <> /etc/bashrc +echo 'source /challenge/.bashrc' >> /etc/bash.bashrc +ln -s /etc/bash.bashrc /etc/bashrc chmod 400 /challenge/.secret diff --git a/welcome/desktop-paste/solve b/welcome/desktop-paste/solve index 1803076..045cdee 100755 --- a/welcome/desktop-paste/solve +++ b/welcome/desktop-paste/solve @@ -1,4 +1,4 @@ -#!/usr/bin/exec-suid -- /bin/bash -p +#!/usr/bin/exec-suid --real -- /bin/bash -p # art from https://emojicombos.com/karate-ascii-art cat <> /etc/bashrc +echo 'source /challenge/.bashrc' >> /etc/bash.bashrc +ln -s /etc/bash.bashrc /etc/bashrc diff --git a/welcome/desktop/solve b/welcome/desktop/solve index 6dbb183..b8edbfc 100755 --- a/welcome/desktop/solve +++ b/welcome/desktop/solve @@ -1,4 +1,4 @@ -#!/usr/bin/exec-suid -- /bin/bash -p +#!/usr/bin/exec-suid --real -- /bin/bash -p # art from https://emojicombos.com/karate-ascii-art cat <> /etc/bashrc +echo 'source /challenge/.bashrc' >> /etc/bash.bashrc +ln -s /etc/bash.bashrc /etc/bashrc diff --git a/welcome/restart/solve b/welcome/restart/solve index 7d8a688..8cf47a0 100755 --- a/welcome/restart/solve +++ b/welcome/restart/solve @@ -1,4 +1,4 @@ -#!/usr/bin/exec-suid -- /bin/bash -p +#!/usr/bin/exec-suid --real -- /bin/bash -p # art from https://emojicombos.com/karate-ascii-art cat <> /etc/bashrc +echo 'source /challenge/.bashrc' >> /etc/bash.bashrc +ln -s /etc/bash.bashrc /etc/bashrc chmod 4711 /challenge/solve diff --git a/welcome/sensai/solve b/welcome/sensai/solve index 249af3b..66e63f6 100755 --- a/welcome/sensai/solve +++ b/welcome/sensai/solve @@ -1,4 +1,4 @@ -#!/usr/bin/exec-suid -- /bin/bash -p +#!/usr/bin/exec-suid --real -- /bin/bash -p # art from https://www.asciiart.eu/electronics/light-bulbs cat <