Skip to content

Commit

Permalink
Update RESUME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-freijanes authored Nov 15, 2021
1 parent d47f687 commit c710582
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions RESUME.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,16 @@ CMD [ "python", "./student_age.py" ]
```bash
sudo vi /student-list/website/index.php
```
2. Modifer la ligne 21 et 20 ainsi que la ligne 29
```bash
if ( empty($username) ) $username = 'toto';
if ( empty($password) ) $password = 'cHI0aG9u';
2. Modifer les lignes suivantes
```bash
$username = getenv('USERNAME');
$password = getenv('PASSWORD');
if ( empty($username) $username = 'Y29kYWMtcm8=';
if ( empty($password) $password = 'IUMwZEBjUjA=';
$context = stream_context_create(array(
"http" => array(
"header" => "Authorization: Basic " . base64_decode("$username:$password"),
)));
```
Lien pour encoder ou decoder un mot de passe: [Encode-Decode Base64 ](https://base64decode.org)
```bash
Expand Down

0 comments on commit c710582

Please sign in to comment.