Skip to content

Instantly share code, notes, and snippets.

Feb 24 08:02:34 bastion sshd[19993]: Connection from 49.88.112.68 port 19068 on 164.8.230.209 port 22 rdomain ""
Feb 24 08:02:36 bastion sshd[19993]: error: PAM: Authentication failure for root from 49.88.112.68
Feb 24 08:02:36 bastion sshd[19993]: Failed keyboard-interactive/pam for root from 49.88.112.68 port 19068 ssh2
Feb 24 08:02:37 bastion sshd[19993]: error: PAM: Authentication failure for root from 49.88.112.68
Feb 24 08:02:37 bastion sshd[19993]: Failed keyboard-interactive/pam for root from 49.88.112.68 port 19068 ssh2
Feb 24 08:02:37 bastion sshd[19993]: error: PAM: Authentication failure for root from 49.88.112.68
Feb 24 08:02:37 bastion sshd[19993]: Failed keyboard-interactive/pam for root from 49.88.112.68 port 19068 ssh2
Feb 24 08:02:37 bastion sshd[19993]: Received disconnect from 49.88.112.68 port 19068:11: [preauth]
Feb 24 08:02:37 bastion sshd[19993]: Disconnected from authenticating user root 49.88.112.68 port 19068 [preauth]
Feb 24 08:04:06 bastion sshd[19999]: Connection from 49.88.112.
00B1-XXY-XYX-YYX-122
0071-223-333-YXX-313
00A1-XXY-XYY-212-YYX
0061-XYY-211-112-XXY
00E1-313-YXX-XYX-313
00F1-XYX-212-YXY-XXX
0061-222-YYY-323-223
0021-112-123-XXY-123
0081-123-XYX-322-XXY
0061-223-YYX-133-121
This file has been truncated, but you can view the full file.
-- Logs begin at Sun 2021-01-31 08:44:27 UTC, end at Wed 2021-02-24 10:09:14 UTC. --
Jan 31 08:44:27 bastion sshd[3679]: error: PAM: Authentication failure for root from 221.181.185.29
Jan 31 08:44:27 bastion sshd[3679]: Failed keyboard-interactive/pam for root from 221.181.185.29 port 63853 ssh2
Jan 31 08:44:28 bastion sshd[3679]: error: PAM: Authentication failure for root from 221.181.185.29
Jan 31 08:44:28 bastion sshd[3679]: Failed keyboard-interactive/pam for root from 221.181.185.29 port 63853 ssh2
Jan 31 08:44:29 bastion sshd[3679]: error: PAM: Authentication failure for root from 221.181.185.29
Jan 31 08:44:29 bastion sshd[3679]: Failed keyboard-interactive/pam for root from 221.181.185.29 port 63853 ssh2
Jan 31 08:44:30 bastion sshd[3679]: Received disconnect from 221.181.185.29 port 63853:11: [preauth]
Jan 31 08:44:30 bastion sshd[3679]: Disconnected from authenticating user root 221.181.185.29 port 63853 [preauth]
Jan 31 08:44:31 bastion sshd[3689]: Connection from 221.181.185.29 port 51429 on 16
#include <iostream>
#include <limits>
#include <algorithm>
#include <vector>
#include <optional>
#include <sstream>
const int error = 0;
const int ignore = -1;
const auto alphabet_size = std::numeric_limits<char>::max();
#include "Automaton.h"
#include <iostream>
void Automaton::reset() {
state = start;
}
void Automaton::next(char c) {
state = table[state][c];
}

FIRST

Stavčno obliko α izpljemo tako daleč, da imamo na začetku terminal. FIRST(α) je množica teh terminalov za vse možne izpljave. Povedano drugače vsi stavki, ki jih lahko izpeljemo iz stavčne oblike α se začnejo s terminalom, ki je element FIRST(α).

α => ... => a β
α => ... => c 𝛾
FIRST(α) = {a, c}
import java.io.File
import java.io.InputStream
import java.util.LinkedList
const val EOF_SYMBOL = -1
const val ERROR_STATE = 0
const val SKIP_VALUE = 0
const val NEWLINE = '\n'.code
data class Token(val value: Int, val lexeme: String, val startRow: Int, val startColumn: Int)
interface Scanner {
fun eof(): Boolean
fun getToken(): Token?
}
class MockupScanner(private var tokens: List<Token>) : Scanner {
override fun eof() = tokens.isEmpty()
import java.io.InputStream
import java.util.LinkedList
const val EOF_SYMBOL = -1
const val ERROR_STATE = 0
const val SKIP_VALUE = 0
const val EOF_VALUE = -1
const val A_VALUE = 1
const val B_VALUE = 2
interface List {
override fun toString(): String
}
class Cons(private val num: Int, private val tail: List) : List {
override fun toString(): String {
return num.toString() + "::" + tail.toString();
}
}