json={ "ip"=> "127.0.0.1, "ports"=> '80,135', "data"=>[{"port":22,"item":["22","open","tcp","","ssh"]}] } puts "str:#{ str.to_json}" write_log("nmapre ...
分类:
其他好文 时间:
2021-07-12 18:01:18
阅读次数:
0
2021年7月10日22:44:49 trait zx { // const sss = 9; public static function tt() { echo 'tt'; } public function yy() { echo 'yy'; } } class uu { use zx; co ...
分类:
Web程序 时间:
2021-07-12 17:56:00
阅读次数:
0
定义一个类实现ApplicationRunner接口,然后Override这个ApplicationRunner接口的run方法 @Component public class TaskRunner implements ApplicationRunner { public static final ...
分类:
编程语言 时间:
2021-07-12 17:55:04
阅读次数:
0
k8s四层负载均衡--Service 一、四层负载均衡Service概述 1.1、为什么要有Service 在kubernetes中,Pod是有生命周期的,如果Pod重启它的IP很有可能会发生变化。如果我们的服务都是将Pod的IP地址写死,Pod挂掉或者重启,和刚才重启的pod相关联的其他服务将会找 ...
分类:
其他好文 时间:
2021-07-12 17:50:41
阅读次数:
0
简介 漏洞环境:不另作说明均为vulhub 菜鸟链接:https://www.runoob.com/w3cnote/fastjson-intro.html GitHub:https://github.com/alibaba/fastjson fastjson是阿里巴巴的开源JSON解析库,它可以解析 ...
分类:
Web程序 时间:
2021-07-12 17:41:27
阅读次数:
0
python+uvicorn+fastapi 背景 使用python的同学,有没有因为不知道用什么接口来测试自己的代码而郁闷?这里我们使用python+uvicorn+fastapi来写一些接口DEMO,DEMO中的接口可能包含form-data、x-www-form-urlencoded、json ...
分类:
编程语言 时间:
2021-07-08 17:45:19
阅读次数:
0
准备工作 public class MainClass { public static void main(String[] args) throws Exception { String resources = "mybatis-config.xml"; InputStream inputStre ...
分类:
其他好文 时间:
2021-07-07 17:50:47
阅读次数:
0
在购买服务器且安装了Mysql之后,并且安全组和防火墙都开放了端口,但是还是无法连接 原因就是mysql设置的就是只有本机可以连接 解决办法 # 1. 登录服务器,在服务器上登录mysql # 2. 使用user这个库 use user; # 3. 查看root账户 select host,user ...
分类:
数据库 时间:
2021-07-05 18:40:36
阅读次数:
0
获取类路径下文件的绝对路径 在IDEA软件中,src是类的根路径。 package com.happy.reflection; public class AboutPath { public static void main(String[] args) { String path = Thread ...
分类:
其他好文 时间:
2021-07-05 18:39:57
阅读次数:
0
Code Java中使用TCP进行数据传输时需要用到两个类: Socket ServerSocket 其中,客户端使用Socket来创建Socket对象,服务端使用ServerSocket来创建Socket对象。 功能 项目实现的功能,将idea_demo/src/net/net01/NetDemo ...
分类:
编程语言 时间:
2021-07-05 18:36:35
阅读次数:
0