摘要: #!/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 阅读(42) 评论(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 阅读(213) 评论(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 阅读(122) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #includ 阅读全文
posted @ 2021-12-28 09:06 roverqqq 阅读(120) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <sys/shm.h> #include <unistd.h> #include <string.h> int main() { key_t key; // 用于打开指定的共享内存 int shm_id; // 共享内存id char *p; 阅读全文
posted @ 2021-12-28 09:05 roverqqq 阅读(42) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> int main() { int fd[2]; char buf[1024]; memset(buf,'\0',sizeof(buf)); pi 阅读全文
posted @ 2021-12-28 09:04 roverqqq 阅读(94) 评论(0) 推荐(0)
摘要: getsockopt #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> union val { int i_val; long l_val; struct linger linger_val; struct timeval t 阅读全文
posted @ 2021-12-27 17:40 roverqqq 阅读(44) 评论(0) 推荐(0)
摘要: 服务端 #include<stdio.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<strings.h> #include<sys/select.h> #include<sys/time 阅读全文
posted @ 2021-12-27 17:38 roverqqq 阅读(79) 评论(0) 推荐(0)
摘要: 服务端 #include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #define log(fmt,...) printf("%s:%d:"fmt"\n",__func__,__LINE_ 阅读全文
posted @ 2021-12-27 17:37 roverqqq 阅读(239) 评论(0) 推荐(0)
摘要: 服务端 #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #define SERVER_PORT 8888 #define BUF 阅读全文
posted @ 2021-12-27 17:35 roverqqq 阅读(99) 评论(0) 推荐(0)