会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
范世强的笔记(SEC-fsq)
专注于网络安全技术 http://www.freebuf.com/author/shentouceshi https://gitee.com/fsqsec
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2017年4月23日
java 对象与二进制互转
摘要: 来自 : http://blog.csdn.net/luckyzhoustar/article/details/50402427 /** * @FileName: ByteToObject.java * @Package:com.test * @Description: TODO * @author
阅读全文
posted @ 2017-04-23 10:37 范世强
阅读(6977)
评论(0)
推荐(0)
2017年4月22日
获取与当前类同级目录下的文件
摘要: URL url = getClass().getResource("SaikeScanClient.fxml");System.out.println(url);输出:file:/D:/myProject/saikescan/target/classes/saikeScan/client/Saike
阅读全文
posted @ 2017-04-22 23:08 范世强
阅读(867)
评论(0)
推荐(0)
Windows下比较小巧的c/c++ ide
摘要: 下载:codeblocks 只有几十兆。 http://www.codeblocks.org/downloads/26#windows codeblocks-16.01mingw-nosetup.zip 此版本自带了gcc,直接解压运行即可进行开发。 eclipse也可以进行 c、c++开发,但需要
阅读全文
posted @ 2017-04-22 18:13 范世强
阅读(6393)
评论(0)
推荐(1)
2017年4月16日
保存到properties
摘要: @FXMLprivate void savaconfig(ActionEvent event) { try { Properties prop = new Properties(); FileWriter fw = new FileWriter("conf" + File.separator + "
阅读全文
posted @ 2017-04-16 22:43 范世强
阅读(246)
评论(0)
推荐(0)
javafx 普通弹框提示
摘要: new Alert(Alert.AlertType.NONE, "xxx不存在", new ButtonType[]{ButtonType.CLOSE}).show();
阅读全文
posted @ 2017-04-16 22:32 范世强
阅读(1828)
评论(0)
推荐(0)
2017年4月13日
获取昨天的日期
摘要: Date as = new Date(new Date().getTime()-24*60*60*1000);SimpleDateFormat matter1 = new SimpleDateFormat("yyyyMMdd");String time = matter1.format(as);Sy
阅读全文
posted @ 2017-04-13 09:21 范世强
阅读(201)
评论(0)
推荐(0)
Properties 使用
摘要: try { private Properties prop = new Properties(); FileReader fr = new FileReader("conf" + File.separator + "config.properties"); BufferedReader br = n
阅读全文
posted @ 2017-04-13 09:17 范世强
阅读(284)
评论(0)
推荐(0)
javafx 最大化窗口
摘要: stage.setMaximized(true);
阅读全文
posted @ 2017-04-13 09:03 范世强
阅读(1026)
评论(0)
推荐(0)
2017年3月14日
okhttp 防止自动删除url中的./和../
摘要: 测试任意文件读取漏洞是需要在url中加上 ../../ 之类的字符,但是如果使用三方库Apache httpclient或okhttp,他们都会自动删除url中的 ../ ,通过修改okhttp的源码可以防止此删除,具体修改如下 修改 HttpUrl.Builder 类的 push方法,注释如下代码
阅读全文
posted @ 2017-03-14 16:52 范世强
阅读(704)
评论(0)
推荐(0)
2016年9月18日
常用代码块:创建httpclient 2
摘要: HttpGet httpGet = new HttpGet(url);SSLContext sslcontext = SSLContexts.custom().loadTrustMaterial(new MyTrustStrategy()).build(); RequestConfig reques
阅读全文
posted @ 2016-09-18 23:50 范世强
阅读(692)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告