- We can post any string to update.php as "nickname" array.
- A object was broken with serialize() and filter().
- String length increased a char as filter() replace a serialized string from 'where' to 'hacker'.
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
function deleteDisableUsersDirectory{ | |
[CmdletBinding()] | |
param( | |
[parameter( | |
position = 0, | |
mandatory = 0 | |
)] | |
[string] | |
$path | |
) |
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
function makeEnableUsersDirectory{ | |
[CmdletBinding()] | |
param( | |
[parameter( | |
position = 0, | |
mandatory = 0 | |
)] | |
[string] | |
$path | |
) |
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
# Set domain | |
$usersDomain = "" | |
# Set ad server | |
$ADServerName = "" | |
# Set forced directory | |
$forcedDirectory = "" | |
function makeEnableUsersDirectory{ |
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
#!/bin/bash | |
usage_exit(){ | |
echo "[*] Usage: $0 [-w] [-n suffix_num] [-f] [-o output_dir] filename" | |
echo | |
echo "backup a file as {filename}.{date}[.{suffix_num}]" | |
echo " -w: bachup without suffix_num" | |
echo " -n: set suffix_num" | |
echo " -f: cp without -i option" | |
echo " -o: output to directory" |
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
# -- default shell -- | |
set-option -g default-shell /bin/zsh | |
set-option -g default-command /bin/zsh | |
# -- prefix -- | |
set -g prefix C-s | |
unbind C-b | |
# -- line max -- | |
set -g history-limit 50000 |
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
# Set up the prompt | |
autoload -Uz promptinit | |
promptinit | |
PROMPT=' | |
%K{blue}%n@%m%k %B%F{cyan}%~%f%b | |
%# ' | |
#RPROMPT='[%(?.%?.%B%F{red}%?%f%b), %D %*] # process result | |
setopt histignorealldups sharehistory |
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
export GOPATH="$HOME/.go" | |
export PATH=$PATH:$HOME/.go/bin |
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
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
awful.rules = require("awful.rules") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") | |
-- Theme handling library | |
local beautiful = require("beautiful") | |
-- Notification library |
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
#include <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#define N 100 | |
template <typename RandomAccessIterator, typename Predicate> | |
int bogo_sort(RandomAccessIterator begin, RandomAccessIterator end, Predicate p) { | |
std::random_device rd; |
OlderNewer