08 2018 档案

摘要:转载于:https://blog.csdn.net/rebelqsp/article/details/22109925 1、Socket 类型 套接字格式: socket(family,type[,protocal]) 使用给定的地址族、套接字类型、协议编号(默认为0)来创建套接字。 socket类 阅读全文
posted @ 2018-08-30 11:08 i11USi0n 阅读(249) 评论(0) 推荐(0)
摘要:总体思路: 调用了socket模块并用connect()函数链接了相应的IP和端口号,用send()函数发送数据并用recv()函数检查响应. 1 # -*- coding:utf-8 -*- 2 3 __author__='Dou—wei' 4 5 import socket 6 import s 阅读全文
posted @ 2018-08-30 10:45 i11USi0n 阅读(312) 评论(0) 推荐(0)
摘要:总体思路: os.path.abspath('.') #获取当前路径 os.listdir #获取指定的文件夹包含的文件或文件夹的名字的列表 os.path.join #用获取的文件名拼接路径 os.path.isdir #判断路径是否为目录,用于递归 1 # -*- coding:utf-8 -* 阅读全文
posted @ 2018-08-30 00:22 i11USi0n 阅读(205) 评论(0) 推荐(0)
摘要:Python Socket编程中端口被占用的解决方法 转载于:https://blog.csdn.net/appleyuchi/article/details/78071640 使用Python Socket编程的时候,可能会遇到 python socket.error: [Errno 48] Ad 阅读全文
posted @ 2018-08-29 23:32 i11USi0n 阅读(2213) 评论(0) 推荐(0)
摘要:查看历史命令很关键,但Linux默认没有时间戳。。。 阅读全文
posted @ 2018-08-22 17:01 i11USi0n 阅读(668) 评论(0) 推荐(0)
摘要:端口:0 服务:Reserved 说明:通常用于分析操作系统。这一方法能够工作是因为在一些系统中“0”是无效端口,当你试图使用通常的闭合端口连接它时将产生不同的结果。一种典型的扫描,使用IP地址为0.0.0.0,设置ACK位并在以太网层广播。 端口:1 服务:tcpmux 说明:这显示有人在寻找SG 阅读全文
posted @ 2018-08-22 16:05 i11USi0n 阅读(403) 评论(0) 推荐(0)