Santhacklaus 2019 - Grepepe

Posted on mar. 24 décembre 2019 in CTF • Tagged with hack, learn, ctf, santhacklaus, looking, bash, misc

Do you know grep ? Regex ? Well you should. It's very useful, especially during CTFs. Remember the flag is something like SANTA{fl4g_f0rmAT}.

MD5 : 6c4299aaa7c7da7250f647e3665fb7a6

L'ennoncé donne la technique à utilisé : grep. J'ai pris rg (ripgrep) qui fait la même chose que grep globalement. On le lance en indiquant que …


Continue reading

Jail - Escape

Posted on ven. 03 décembre 2010 in Review • Tagged with hack, jail, python, bash, shell, espace, cheatsheet

https://www.exploit-db.com/docs/english/44592-linux-restricted-shell-bypass-guide.pdf https://d00mfist.gitbooks.io/ctf/escaping_restricted_shell.html

User 1

app-script-ch14@challenge02:~$ vim --cmd "set shell=/bin/bash" --cmd "shell"

User 2

app-script-ch14@challenge02:~$ echo $PATH /challenge/app-script/ch14/step1/ app-script-ch14@challenge02:~$ export PATH=/bin:/usr/bin app-script-ch14@challenge02:~$ id uid=1314(app-script-ch14 …


Continue reading

Bash

Posted on mer. 24 novembre 2010 in Programmation • Tagged with langage, bash, linux

Présentation

Bash (acronyme de Bourne-Again shell) est un interpréteur en ligne de commande de type script. C'est le shell Unix du projet GNU.

Fondé sur le Bourne shell, Bash lui apporte de nombreuses améliorations, provenant notamment du Korn shell et du C shell. Bash est un logiciel libre publié sous …


Continue reading