- javascript: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
alert(document.cookie) |
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
alert(document.cookie) |
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/sh | |
# Requirements: | |
# parted - to make gpt and partion | |
# sfdisk - to make mbr and partition over gpt | |
# blkid - to get UUID of partition for grub | |
# grub-pc-bin - files to install grub from UEFI-booted machines to MBR | |
usb="/dev/sdX" # path to usb device file (without number at end) sudo fdisk -l | |
iso="/path/to/windows.iso" # path to windows iso |
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
source /tmp/library.cfg | |
set -x | |
set -u | |
set -e | |
#trap exiting EXIT | |
drive=${1:-sdX} | |
partition=${drive}1 | |
file_iso=$HOME/Downloads/XenServer-6.5.0-xenserver.org-install-cd2.iso | |
mode_cp=cp | |
filename_iso='xenserver.iso' |
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 | |
set -e | |
export WRAPPER="`readlink -f "$0"`" | |
HERE="`dirname "$WRAPPER"`" | |
. $HERE/../lib/utils.sh | |
. $HERE/../lib/os.sh | |
EAP=0 | |
echo $* | grep eap > /dev/null && EAP=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
set -u | |
ssid=Linnovate | |
echo type the password for connecting to $ssid | |
read password | |
sudo wpa_passphrase $ssid $password > /tmp/wpa0 | |
cat /tmp/wpa0 | |
sudo rfkill unblock all | |
sudo wpa_supplicant -Dwext -iwlan0 -c/tmp/wpa0 |
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
clear | |
replace2 () | |
{ | |
exclude_dir='.git'; | |
old_string="$1"; | |
new_string="$2"; | |
path=$3; | |
cmd="grep --exclude-dir=$exclude_dir -rl '$old_string' $path | xargs sed -i s@$old_string@$new_string@g"; |
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
clear | |
#Example: rename filename from article to phone: | |
#from=article | |
#to=phone | |
from=article | |
to=phone | |
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
ssid=${1:-$SSID} | |
key=${2:-$PASSWORD} | |
test -n "$ssid" || { echo '[required args] : ssid password'; exit 0; } | |
pkgs='wpa_passphrase' #dhcp-gtk | |
type $pkgs || ( sudo apt-get install $pkgs) | |
connect_passwordless_wifi(){ | |
commander sudo ifconfig $device up | |
commander sudo iw dev $device connect $ssid |
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
<script> | |
var json1 = {site: 'www.google.com'}; | |
</script> | |
<box> | |
<h1 class="abc" >sdf</h1> | |
</box> |
NewerOlder