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
<?php | |
//verify QR code of Japanese COVID-19 vaccination certificate app | |
// https://spec.smarthealth.cards/examples/example-00-f-qr-code-numeric-value-0.txt | |
$shc = | |
"shc:/56762909524320603460292437404460312229595326546034602925407728043360287028647167452228092861333145643765314159064022030645045908564355034142454136403706366541713724123638030437562204673740753232392543344332605736010645293353123320242853503861415427430004753129732924613628592228745843637025633507624310445605276341230873773410384042310567070707557107456708120606570623663777033227585056600966652061117174674573052039356659081177056970202340093324411221033620704509340334726467084141553342105243565305117726236003330521350707280644115077311275690310252859522456650834302142030032421132356925364207640341547153233158256573404361230833427550287355370364073612617152257762554334416343592473506303250640723232755255224553615345283508034505715835543824640362752809742110292808262363330070672827105052096258577360225721657062351032403464112037593862616074377 |
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
## GitLab | |
## | |
## Modified from nginx http version | |
## Modified from http://blog.phusion.nl/2012/04/21/tutorial-setting-up-gitlab-on-debian-6/ | |
## Modified from https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html | |
## | |
## Lines starting with two hashes (##) are comments with information. | |
## Lines starting with one hash (#) are configuration parameters that can be uncommented. | |
## | |
################################## |
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/python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import sys | |
import os | |
import datetime | |
import urllib.parse | |
conf_data = { |
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
<?php | |
define("URL", "http://gitlab.example.com/"); | |
define("PER_PAGE", 100); | |
$set_hook_param = array( | |
'url' => 'http://gitlab-download-app.example.com/update_projects_json.php', | |
'token' => '', | |
'push_events' => 'TRUE', | |
'push_events_branch_filter' => '', | |
'tag_push_events' => 'FALSE', | |
'note_events' => 'FALSE', |
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
<?php | |
if ($argc < 2) { | |
echo_exit("Usage: php -f {$argv[0]} SddlFilePath ListPath\n"); | |
} | |
define("NAMETOSID_COMMAND", "nametosid.exe"); | |
define("ADMINISTRATOR", "administrator"); | |
define("DOMAIN", "AD"); | |
define("SDDL_HEAD", 'D:PAI'); // SE_DACL_PROTECTED | SE_DACL_AUTO_INHERITED | |
define("ACL_STRING_READ", '(A;OICI;0x1200a9;;;$$USER_SID$$)'); // (RX) : 0x1200a9 | |
// FILE_GENERIC_READ | |
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
# Create LDIF for Active Directory | |
# 70200 AD users, 702 groups. | |
# Each group has 100 people from 001 to 100. | |
# Usage: | |
# python3 create_ad_users_groups_ldif.py > dummy.ldif | |
# ldapadd -H ldaps://example.contoso.com -x -D "CN=administrator,CN=Users,DC=ad,DC=contoso,DC=com" -w "password" -f dummy.ldif | |
import base64 | |
PASSWORD = "password$01" |
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
<?php | |
# Create LDIF for Active Directory | |
# 70200 AD users, 702 groups. | |
# Each group has 100 people from 001 to 100. | |
# Usage: | |
# php create_ad_users_groups_ldif.php > dummy.ldif | |
# ldapadd -H ldaps://example.contoso.com -x -D "CN=administrator,CN=Users,DC=ad,DC=contoso,DC=com" -w "password" -f dummy.ldif | |
define("PASSWORD", "password$01"); | |
$unicodePwd = base64_encode(iconv("UTF-8", "UTF-16LE", '"' . PASSWORD . '"')); |
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
<?php | |
for ($i = 0x3041; $i <= 0xff5e; $i++) { | |
if ( | |
(0x3041 <= $i && $i <= 0x3096) || | |
(0x30a0 <= $i && $i <= 0x30ff) || | |
(0x3400 <= $i && $i <= 0x4db5) || | |
(0x4e00 <= $i && $i <= 0x9fcb) || | |
(0xf900 <= $i && $i <= 0xfa6a) || | |
(0x2e80 <= $i && $i <= 0x2fd5) || | |
(0xff5f <= $i && $i <= 0xff9f) || |
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
<!DOCTYPE html> | |
<html> | |
<head lang="ja"> | |
<meta charset="UTF-8"> | |
<title>Custom Protocol Detection</title> | |
</head> | |
<body> | |
<a href="microsoft-edge:https://itccorporation.jp" class="custom_protocol">microsoft-edge:https://itccorporation.jp</a><br /> | |
<a href="microsoft-edgeXXX:https://itccorporation.jp" class="custom_protocol">microsoft-edgeXXX:https://itccorporation.jp</a><br /> | |
<a href="foobar:https://itccorporation.jp" class="custom_protocol">foobar:https://itccorporation.jp</a><br /> |
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 ConvertFrom-UserParameter { | |
<# | |
.SYNOPSIS | |
Converts a userparameters encoded blob into an ordered dictionary of decoded values. | |
Author: Will Schroeder (@harmj0y) | |
License: BSD 3-Clause | |
Required Dependencies: None |
NewerOlder