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
| fun main(args : Array<String>) | |
| { | |
| val post = Post() | |
| post.url = "https://cybersecuritychallenge.org.uk/signup/" | |
| post.add("username" , "y5fs546sdt") | |
| post.add("password" , "4645645634") | |
| post.add("email" , "[email protected]") | |
| post.add("eu_citizen" , "EU Citizen") | |
| post.add("fname" , "\u202eEvelyn") | |
| post.add("lname" , "\u202eWolfface") |
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
| public class ProductInSeries | |
| { | |
| public static void main(String[] args) | |
| { | |
| System.out.println(new ProductInSeries().productInSeries(input)); | |
| } | |
| public long productInSeries(String input) | |
| { | |
| char[] moo = input.toCharArray(); |
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
| fun main(args :Array<String>) | |
| { | |
| println(productInSeries( | |
| "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843" + | |
| "8586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557" + | |
| "6689664895044524452316173185640309871112172238311362229893423380308135336276614282806444486645238749" + | |
| "3035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776" + | |
| "6572733300105336788122023542180975125454059475224352584907711670556013604839586446706324415722155397" + | |
| "5369781797784617406495514929086256932197846862248283972241375657056057490261407972968652414535100474" + | |
| "8216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586" + |
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
| #!/usr/bin/env python3 | |
| from functools import reduce | |
| import operator | |
| def productInSeries(input): | |
| moo = [] | |
| for v in input: | |
| moo.append(ord(v) - 48) # 48 == ord('0') | |
| value = 0 |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| uint64_t solve(char* input) | |
| { | |
| size_t moo_len = strlen(input); | |
| uint8_t *moo = malloc(moo_len); | |
| int i = 0, o = 0; |
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
| fun main(args :Array<String>) | |
| { | |
| println(solve( | |
| "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843" + | |
| "8586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557" + | |
| "6689664895044524452316173185640309871112172238311362229893423380308135336276614282806444486645238749" + | |
| "3035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776" + | |
| "6572733300105336788122023542180975125454059475224352584907711670556013604839586446706324415722155397" + | |
| "5369781797784617406495514929086256932197846862248283972241375657056057490261407972968652414535100474" + | |
| "8216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586" + |
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
| #!/usr/bin/env python3 | |
| import json, time, subprocess | |
| from datetime import datetime | |
| # Dependencies | |
| import psutil | |
| import netifaces | |
| print('{"version": 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
| #!/usr/bin/env python3 | |
| import base64, string, sys | |
| B64 = string.ascii_uppercase + string.ascii_lowercase + string.digits + '+/=' | |
| B64 = [ord(c) for c in B64] | |
| def decode(inp): | |
| inp += b"\x00" |
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
| #!/usr/bin/env python3 | |
| import argparse, time, datetime, os | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("command", ) | |
| args = parser.parse_args() | |
| while True: | |
| t1 = datetime.datetime.now() |
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
| def validate(ts: str) -> bool: | |
| dotcount = [1000]*10 | |
| for digit in ts: | |
| if digit.isnumeric(): | |
| intdigit = int(digit) | |
| if (dotcount[10-intdigit]<3): return False | |
| dotcount[intdigit] = 0 | |
| elif digit==".": | |
| dotcount = [a+1 for a in dotcount] | |
| else: |
OlderNewer