This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selena@selena-GL62M-7RDX:~/planets$ find | |
. | |
./inhabited | |
./inhabited/earth.jpeg | |
./inhabited/coruscant.jpeg | |
./inhabited/arrakis.jpeg | |
./inhabited/cybertron.jpeg | |
./real | |
./real/dwarf-planets | |
./real/gas-giants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// folder routes | |
const moviesRouter = require('./movies'); | |
const setupRoutes = (app) => { | |
app.use('/api/movies', moviesRouter); | |
}; | |
module.exports = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { verifyPassword, findByEmail } = require("../models/user"); | |
const authRouter = require("express").Router(); | |
authRouter.post("/checkCredentials", async (req, res) => { | |
const { email, password } = req.body; | |
const isEmail = await findByEmail(email); | |
if (!isEmail) | |
return res.status(401).json("Incorrect email or wrong password"); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your Gruyere instance id is 537325677489646067146943635839871204972. | |
signup : Meow / 88pFV(t.8 | |
Create account : https://google-gruyere.appspot.com/537325677489646067146943635839871204972/newaccount.gtl | |
After create account : https://google-gruyere.appspot.com/537325677489646067146943635839871204972/saveprofile?action=new&uid=Meow&pw=88pFV(t.8&is_author=True | |
New snippet : https://google-gruyere.appspot.com/537325677489646067146943635839871204972/newsnippet.gtl | |
Delete snippet : https://google-gruyere.appspot.com/537325677489646067146943635839871204972/snippets.gtl# | |
In inspector after delete : https://google-gruyere.appspot.com/537325677489646067146943635839871204972/deletesnippet?index=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Sécurité en tant qu'utilisateur : se déconnecter tout de suite après avoir utilisé une application web est une pratique recommandée par l'OWASP. | |
A - Vrai | |
2. Sécurité en tant qu'utilisateur : utiliser un navigateur pour accéder à des applications web sensibles et un autre navigateur pour naviguer sur le web librement est une pratique recommandée par l'OWASP. | |
A - Vrai | |
3. Sécurité en tant qu'utilisateur : le tabbed browsing (le fait de naviguer sur le web en ouvrant plusieurs onglets) augmente ta vulnérabilité aux attaques CSRF. | |
A - Vrai | |
4. Sécurité en tant qu'utilisateur : permettre aux applications web de se « souvenir » de tes identifiants est une pratique recommandée par l'OWASP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1st challenge : | |
https://xss-game.appspot.com/level1/frame?query=<script>alert(1)</script> | |
2nd challenge : | |
<img src=x onerror=alert(1)> | |
3rd challenge : | |
https://xss-game.appspot.com/level3/frame#3' onerror=alert(1)> | |
4th challenge : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface User { | |
name: string; | |
age: number; | |
birthday?: string; | |
} | |
const prettyPrintWilder = (users: User[]): void => { | |
users.map((user) => { | |
console.log(`${user.name} is ${user.age} years old`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nameMovie = "Indiana Jones et la dernière croisade"; | |
echo $nameMovie; | |
$seenMovie = false; | |
echo $seenMovie; | |
$dateMovie = 1989; | |
echo $dateMovie; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$text1 = "0@sn9sirppa@#?ia'jgtvryko1"; | |
$text2 = "q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj"; | |
$text3 = "aopi?sgnirts@#?sedhtg+p9l!"; | |
$keyNumber = strlen($text1)/2; | |
$subChain = substr($text1, 5,$keyNumber); | |
$secretMessage = str_replace('@#?', ' ', $subChain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$movies['Indiana Jones et les Aventuriers de l\'arche perdue'] = 1981 ; | |
$movies['Indiana jones et le Temple maudit'] = 1984; | |
$movies['Indiana Jones et la Dernière Croisade'] = 1989; | |
asort($movies); | |
foreach($movies as $movie => $year){ | |
echo "$year - $movie <br>"; | |
}; |