This file contains 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 sys | |
import os | |
import csv | |
try: | |
core_file = sys.argv[1] | |
except IndexError: | |
print('Использование: {} файлназначения.csv'.format(sys.argv[0])) | |
exit(1) |
This file contains 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 streams | |
import protobuf | |
const protoSpec = """ | |
syntax = "proto3"; | |
message Example2 { | |
string field1 = 1; | |
int32 field2 = 2; | |
} |
This file contains 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
Драйверы MediaTek: | |
- mt7601u (в ядре с версии 4.2): поддерживает режим ТД, мониторинга и инъекции | |
чипы: MT7601U, MT7601UN | |
- mt76 (в ядре с версии 4.19): поддерживает режим ТД, мониторинга и инъекции | |
чипы: MT7603E, MT7603EN, MT7610E, MT7610EN, MT7610U, MT7610UN, MT7612E, MT7612EN, MT7612U, MT7612UN, MT7615, MT7615E, MT7615N, MT7630E, MT7662E, MT7662EN, MT7628A, MT7628K, MT7628N | |
Драйверы Ralink: | |
- r2500usb (в ядре): поддерживает режим ТД, мониторинга и инъекции | |
чипы: RT2571W, RT2671 | |
- rt2800usb (в ядре):поддерживает режим ТД, мониторинга и инъекции |
This file contains 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
from os import walkFiles, paramStr, paramCount, tryRemoveFile | |
import csvtools | |
from strutils import join, toLowerAscii | |
import strformat | |
proc input(prompt: string = ""): string = | |
stdout.write(prompt) | |
stdout.flushFile() | |
result = stdin.readLine() |
This file contains 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
#include <stdio.h> /* printf, scanf */ | |
#include <stdlib.h> /* srand, rand */ | |
#include <time.h> /* time */ | |
void manualSeed (void) { | |
int seed; | |
printf("Введите seed: "); | |
fflush(stdout); | |
scanf("%d", &seed); | |
srand(seed); |
This file contains 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
from strutils import parseInt, split, join | |
let n = uint8(parseInt(readLine(stdin))) | |
var x_roads_asphalted: seq[uint8] | |
var y_roads_asphalted: seq[uint8] | |
var days: seq[uint8] | |
var counter: uint8 = 1 | |
for i in uint8(1)..(n * n): | |
let t = split(readLine(stdin), ' ') | |
var x_road = uint8(parseInt(t[0])) |
This file contains 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 argparse | |
import csv | |
from datetime import datetime | |
if __name__ == '__main__': | |
table_header = ['IP Address', 'Port', 'Time (ms)', 'Status', | |
'Authorization', 'Server name / Realm name / Device type', | |
'Radio Off', 'Hidden', 'BSSID', 'ESSID', 'Security', | |
'Key', 'WPS PIN', 'LAN IP Address', 'LAN Subnet Mask', | |
'WAN IP Address', 'WAN Subnet Mask', 'WAN Gateway', |
This file contains 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 sys | |
def WPSchecksum(pin): | |
''' | |
Standard WPS checksum algorithm. | |
@pin — A 7 digit pin to calculate the checksum for. | |
Returns the checksum value. | |
''' |
This file contains 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
n, k = map(int, input().split()) | |
table = [[True]*n, [False]*n] | |
for i in range(2, n + 1): | |
table.append([]) | |
for j in range(n): | |
temp = True | |
m = i if (j + 2) > i else (j + 2) | |
for s in range(m): | |
temp &= table[i-s-1][s] | |
table[i].append(not temp) |
This file contains 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
s, p = map(int, input().split()) | |
res = 'NO SOLUTION' | |
for x in range(10001): | |
y = s - x | |
if x * y == p: | |
x, y = sorted([x, y]) | |
res = '{} {}'.format(x, y) | |
print(res) |