Realist

vendredi 5 mars 2021, 00:54  #1
Realist - Bash System Disaster
jam
jam
  • 99 posts

Well guys,

I have seen the "id" command can be used to make the user seem to be another user, but i think there are other issues.
Trying to control the variables inside the script, can be done so easily...(sniff) All i got was a change of environment and nothing was held by the script. The environment resets the variables and bash’s preserve is not an option for users like you and me :), at least i think so. ’sudo’ command must be run to get the flags.
How to inject something that is not held by the script ?
Any help...

thx for giving a tick-tack,
so long quack quack,

Be cool, be awesome...
 😎  😉

vendredi 2 avril 2021, 03:34  #2
Realist - Bash System Disaster
Booster21
  • 15 posts

Je ne vais pas pouvoir t’aider plus qua ça car moi aussi je bloque.

Grace aux limits j’arrive à faire exécuter correctement les 5 premier tests, mais le dernier sur l’éxistence du fichier me fait dire que le truc doit être ailleurs (car je ne pense pas pouvoir le by pass comme les 5 autres).

Je suis pour l’instant entre de me focuser sur le seul paramètre non filtré de tout le script
ppid=$(ps -o ppid= $pid | awk ’print $1’)

qui provient de la lecture de la commande
ps a | grep -v COMMAND | awk ’print $1

et bien sur j’ai essayé d’appeler à partir d’un fichier contant un "\n" sans succès car ps a n’imprime pas le retour à la ligne