摘要: 发送端 #!/usr/bin/python3 import socket import struct import binascii raw_socket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(0x9213)) 阅读全文
posted @ 2022-01-24 17:52 roverqqq 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 服务端 #!/usr/bin/python3 import socket print("server") host = '' port = 9999 address = (host,port) s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) s 阅读全文
posted @ 2022-01-24 11:16 roverqqq 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 服务端 #!/usr/bin/python3 import socket print("server") host = '' port = 9999 s = socket.socket() s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,True 阅读全文
posted @ 2022-01-24 11:08 roverqqq 阅读(35) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3 # -*- coding: UTF-8 -*- import logging logging.basicConfig(level=logging.DEBUG,format='%(levelname)s:%(filename)s:%(lineno)d:%(mess 阅读全文
posted @ 2022-01-24 10:12 roverqqq 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 头文件 #ifndef __QUEUE_H__ #define __QUEUE_H__ typedef struct queue_node { struct queue_node *next; struct queue_node *prev; } queueNode; #define QUEUE_H 阅读全文
posted @ 2022-01-18 14:49 roverqqq 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 头文件 #ifndef __STACK_H__ #define __STACK_H__ typedef struct stack_node { struct stack_node *next; struct stack_node *prev; } stackNode; #define STACK_H 阅读全文
posted @ 2022-01-18 14:04 roverqqq 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 头文件 #ifndef __DLIST_H__ #define __DLIST_H__ typedef struct dlist_node { struct dlist_node *next; struct dlist_node *prev; } DlistNode; #define DLIST_H 阅读全文
posted @ 2022-01-18 10:31 roverqqq 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3 class python_class: name = '' age = 0 def __init__(self,name='roverq',age=18): self.name = name self.age = age print("name :" + sel 阅读全文
posted @ 2022-01-15 15:37 roverqqq 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 连接服务 #!/usr/bin/python3 from pwn import * conn = remote('ftp.ubuntu.com',21) str = conn.recvline() print(str) conn.send(b'USER anonymous\r\n') str = c 阅读全文
posted @ 2022-01-15 14:45 roverqqq 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 发送端 #include <stdio.h> #include <stdlib.h> #include <unistd.h>// close() #include <string.h>// strcpy, memset(), and memcpy() #include <netdb.h> // st 阅读全文
posted @ 2021-12-31 09:07 roverqqq 阅读(109) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示