Общаемся 2 часа с перерывом на 15 минут
Моя задача рассказать об интересных атаках и объяснить как научиться их проводить
Первый час будет рассказ об атаках на веб приложения
Второй час будет демонстрацией практического применения атак
This file contains hidden or 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
| <xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="WhenContractType" id="T/{v:[*Lu.4o]KAuJ-n,"><field name="timeout">10</field><statement name="case"><block type="DepositActionType" id="f9G#}l.7*M:Ay0:|q`r("><value name="from_party"><block type="RolePartyType" id="JcZQg_vcs39ngyV5I#K9"><field name="role">alice</field></block></value><value name="value"><block type="ConstantValueType" id="S]$dNpwwcT2S^$MK.D9D"><field name="constant">1000000000</field></block></value><value name="token"><block type="AdaTokenType" id="j8!j{M/Q97Oh+,wzAt7-"/></value><value name="party"><block type="RolePartyType" id="NiQ_hc^%ill)Cn?NSUc:"><field name="role">alice</field></block></value><statement name="contract"><block type="WhenContractType" id=")U~T4(jdZBt|K,Q|BLJ_"><field name="timeout">20</field><statement name="case"><block type="DepositActionType" id="_AqAGm?]o+4V|k+`e~UA"><value name="from_ |
This file contains hidden or 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
| import qualified Data.Text as T | |
| import Language.Plutus.Contract hiding (when) | |
| import Language.PlutusTx.Prelude | |
| import Playground.Contract | |
| -- | A 'Contract' that logs a message. | |
| hello :: Contract BlockchainActions T.Text () | |
| hello = logInfo @String "Hello, world" | |
| endpoints :: Contract BlockchainActions T.Text () |
Это 1й шаг из 10. Прежде чем мы сможем начать писать функциональные возможности игры, нам необходимо создать базовую структуру для рендеринга игры внутри. Это можно сделать с помощью HTML и элемента <canvas>.
Структура HTML документа довольно проста, так как игра будет полностью визуализироваться в [``](https://developer.mozilla.org/ru/docs/Web/HTML/Element/canvas 'HTML Элемент может быть использо
This file contains hidden or 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 bash | |
| # Usage: | |
| # ghc-run [ghc command-line-options-and-input-files] [-- programm-args] | |
| # Sample: | |
| # ghc-run main.hs | |
| # ghc-run main.hs -- foo bar | |
| # echo "foo bar" | ghc-run main.hs |
This file contains hidden or 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 bash | |
| # Install | |
| # wget https://git.io/JqtZd -O ~/.local/bin/png2svg && chmod +x ~/.local/bin/png2svg | |
| if [ "$1" == "" ]; then | |
| echo "Usage: $0 png file" | |
| exit 0; | |
| fi |
This file contains hidden or 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
| # This guide assumes that you're running MacOS and already have a fully synced Daedalus testnet wallet | |
| # For mainnet some minor tweaks are required | |
| # The line below assumes the default location for the testnet wallet at the time of writing this guide | |
| # If your node socket is located somewhere else, you should be able to finding by inspecting the running processes on your machine | |
| export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Testnet/cardano-node.socket | |
| # Make testnet id available as environment variable; not needed for the mainnet | |
| # This one is active at the time of writing this guide | |
| export TESTNET_ID=1097911063 |
cd fabric-storage
bash scripts/bootstrap.sh
cd network
../bin/cryptogen generate --config=./crypto-config.yaml
export FABRIC_CFG_PATH=$PWD
export CHANNEL_NAME=testchannel
../bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
This file contains hidden or 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
| # source bash_aliases_for_cardano.sh | |
| alias cardano-cli="docker run --rm -it -u $(id -u):$(id -g) -v "$(pwd)":/data -w /data --entrypoint cardano-cli inputoutput/cardano-node" | |
| #source <(cardano-cli --bash-completion-script cardano-cli) | |
| _cardano-cli() | |
| { | |
| local CMDLINE | |
| local IFS=$'\r\n' | |
| CMDLINE=(--bash-completion-index $COMP_CWORD) | |
| for arg in ${COMP_WORDS[@]}; do |
