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
pragma solidity ^0.4.15; | |
contract BatchOverflow { | |
mapping (address => uint8) balances; | |
event Transfer(address indexed _from, address indexed _to, uint8 _value); | |
function transferProxy(address _from, address _to, uint8 _value, uint8 _feeGg) public payable returns (bool){ |
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
Set-ExecutionPolicy RemoteSigned; (New-Object System.Net.WebClient).DownloadFile("https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1", "ConfigureRemotingForAnsible.ps1"); & ./ConfigureRemotingForAnsible.ps1 |
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
#Run as admin | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs | |
exit | |
} | |
Set-ExecutionPolicy RemoteSigned | |
Write-Output "Downloading Ansible Installation Script" |
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 | |
# vulnerability CVE-2015-7547 | |
# UDP rule: drops DNS packets > 512 bytes | |
# TCP rule: limit all replies to 1024 bytes | |
# http://arstechnica.com/security/2016/02/extremely-severe-bug-leaves-dizzying-number-of-apps-and-devices-vulnerable/ | |
# https://habrahabr.ru/company/pt/blog/277383/#comment_8775611 | |
sudo iptables -N UDP-DNS-LIMIT | |
sudo iptables -N TCP-DNS-LIMIT |