Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/usr/bin/env python3 | |
import sys | |
import pyautogui as pg | |
# List of form courses generated as | |
# JSON.stringify([...$0.children].map(x => x.innerHTML).filter(k => k)) | |
FORM_COURSES = [ # {{{ | |
'BM-201', | |
'EC-423', | |
'CHI-403', |
/* Typings */ | |
type TicTacToe< | |
MovesOrNextBoard extends Board | Turn[], // On initial round this will be a Turn[], on next rounds it will be a Board with some moves done | |
MovesOrMissing extends Turn[] = [], // On initial round this will be empty, on next rounds it will be the moves | |
PreviousMark extends ValidMark | undefined = undefined, // On initial round this will be missing, on next rounds it will be the mark of the last move | |
CurrentBoard extends Board = ResolveBoardFromArgs<MovesOrNextBoard>, // Parsed argument | |
Moves extends Turn[] = ResolveNextMovesFromArgs<MovesOrNextBoard, MovesOrMissing> // Parsed argument | |
> = | |
Moves extends [infer NextMove, ...infer NextMoves] ? | |
NextMove extends Turn ? |
#!/usr/bin/python3 | |
# | |
# CVE-2018-10993 libSSH authentication bypass exploit | |
# | |
# The libSSH library has flawed authentication/connection state-machine. | |
# Upon receiving from connecting client the MSG_USERAUTH_SUCCESS Message | |
# (as described in RFC4252, sec. 5.1.) which is an authentication response message | |
# that should be returned by the server itself (not accepted from client) | |
# the libSSH switches to successful post-authentication state. In such state, |