随笔分类 -  python

摘要:使用python编写一个ftp服务器 1 #! /usr/bin/env 2 # -*- encoding:utf-8 -*= 3 ''' 4 Created on 2020年5月14日 5 6 @author: perilong 7 ''' 8 9 import os 10 import conf 阅读全文
posted @ 2020-05-14 22:20 PerilongGideon 阅读(382) 评论(0) 推荐(0)
摘要:信息安全很重要,你的地理位置可能暴露了!!! 使用python和GeoLite2获取目标的地理位置 1 #! /usr/bin/env python 2 #-*- coding:utf-8 -*- 3 4 ''' 5 Created on 2019年12月8日 6 7 @author: Admin 阅读全文
posted @ 2019-12-08 23:52 PerilongGideon 阅读(3358) 评论(2) 推荐(1)
摘要:使用re库匹配IP地址 一、说明 ip地址为xxx.xxx.xxx.xxx,其中xxx为0-255直接数字。 本文匹配为(1-255).(0-255).(0-255).(1-254) 二、匹配表达式 1 ip_match = r"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0 阅读全文
posted @ 2019-12-08 22:15 PerilongGideon 阅读(2371) 评论(0) 推荐(1)