apache

Deploy Angular 4 App on Apache Webserver

自闭症网瘾萝莉.ら 提交于 2021-02-04 16:34:46
问题 I want to deploy my Angular Application on my Apache Webserver. I already added a .htaccess file to my /var/www/html folder, I tried several base-hrefs. But like many people I have problems with routing. I can only see my Startpage, but when I want to get to a other URL it fails. What else can I try or have I missed something? 回答1: You have to enable/install the Apache mod_rewrite module, and then put this in either your .htaccess or your apache configuration for your site: <IfModule mod

java导入excel

跟風遠走 提交于 2021-02-04 10:48:20
package cc.mrbird.common.util; import java.io.InputStream; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.poi.hssf.usermodel.HSSFRichTextString; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.RichTextString; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel

CVE-2019-0193:Apache Solr远程命令执行漏洞复现

烂漫一生 提交于 2021-02-04 09:52:00
0x00 漏洞背景 2019年8月1日,Apache Solr官方发布了CVE-2019-0193漏洞预警,漏洞危害评级为严重 0x01 影响范围 Apache Solr < 8.2.0 0x02 环境搭建 下载地址: https://www.apache.org/dyn/closer.lua/lucene/solr/7.7.2/solr-7.7.2.zip 在本地解压,进入solr-7.7.2目录,执行命令 bin/solr -e dih (前提:java环境) 然后访问 http://localhost:8983/solr 即可访问环境 0x03 漏洞利用 首先我们可以通过接口 curl http://127.0.0.1:8983/solr/admin/cores 来获取所有 core 信息,下面我们构造 payload 需要 name 信息 在Burp中发送以下POC即可执行命令弹出计算器,下面的<your_core_name> 需要替换为你获取到的 core 的 name(共两处) POST /solr/<your_core_name>/dataimport HTTP/1.1 Host : 127.0.0.1:8983 Content-Length : 763 User-Agent : Mozilla/5.0 Content-type : application/x-www

CVE-2019-0193:Apache Solr 远程命令执行漏洞复现

和自甴很熟 提交于 2021-02-04 09:51:49
CVE-2019-0193: Apache Solr 远程命令执行漏洞复现 0X00漏洞简介 CVE-2019-0193是一个存在于 Apache solr搜索引擎中的命令执行漏洞 0X01漏洞原因 Apache solr 是一款开源的搜索服务器并且使用 java语言开发;主要的工作方式:用户通过 http请求像搜索引擎发出索引条件, solr对条件进行分词 处理,根据分词结果查找索引,继而找到文档   在 Apache solr的可选模块 DatalmportHandler中的 DIH配置是可以包含脚本,因此存在安全隐患,在 apache solr < 8.2.0版本之前 DIH配置中 dataconfig可以被用户控制 0X02漏洞影响范围 影响范围: Apache solr < 8.2.0 0X03漏洞环境搭建 下载地址 https://www.apache.org/dyn/closer.lua/lucene/solr/7.7.2/solr-7.7.2.zip 解压完成后使用cmd进入bin文件夹执行solr –e dih 访问系统提示的界面 http://localhost:8983/solr 即可访问 查看虚拟机ip并在本机访问可成功访问 0X04漏洞利用 cmd 命令执行 curl http://localhost:8983/solr/admin/cores

java之导入excel

跟風遠走 提交于 2021-02-04 09:50:29
接口: 1 /** 2 * 3 * Description: 导入excel表 4 * @param map 5 * @param request 6 * @param session 7 * @return 8 * @author shiqianyu 9 * @throws Exception 10 * @Data 2018年3月12日 下午2:40:52 11 */ 12 @RequestMapping("/importExcelData" ) 13 public ModelAndView importExcelData(ModelMap map,HttpServletRequest request,HttpSession session,@RequestParam(value = "file", required = true )MultipartFile multfile) throws Exception{ 14 // 获取页面信息 15 Map<String, String> pageCrawlValue = StringUtil.getArrayValue(request.getParameterMap()); 16 pageCrawlValue.put("CRAWLRESULTPATH", pageCrawlValue.get("CRAWLRESULTPATH")

漏洞复现: Apache Druid 远程代码执行漏洞 (CVE-2021-25646)

匆匆过客 提交于 2021-02-04 09:00:53
作者:Ja0k 本文为作者投稿,Seebug Paper 期待你的分享,凡经采用即有礼品相送! 投稿邮箱:paper@seebug.org 一.漏洞概要 Apache Druid 是用Java编写的面向列的开源分布式数据存储,旨在快速获取大量事件数据,并在数据之上提供低延迟查询。 Apache Druid 默认情况下缺乏授权认证,攻击者可以发送特制请求,利用Druid服务器上进程的特权执行任意代码。 二.影响范围 影响版本: Apache Druid < 0.20.1 安全版本: Apache Druid 0.20.1 三.环境搭建 https://github.com/apache/druid/ https://druid.apache.org/docs/latest/tutorials/index.html 下载0.19版本 https://github.com/apache/druid/releases/tag/druid-0.19.0 解压 cd druid-druid-0.19.0-rc1\distribution\docker docker-compose up -d 打开 http://192.168.123.10:8888 四.漏洞复现 Poc1:通用 POST /druid/indexer/v1/sampler HTTP/1.1 Host: 192.168.123

“Waiting for available socket”, fix from the server end

不打扰是莪最后的温柔 提交于 2021-02-04 07:26:23
问题 I am accessing my PHP/Apache website from Chrome. And Chrome refuses to load the page, saying "Waiting for available socket". Other pages on this same virtual host also have the problem. Other virtual hosts on the same server load perfectly fine. Please advise how I can fix this. 回答1: According to various sources, Chrome opens a maximum of 6 simultaneous connections to the same server. Possible solutions include Host data on different virtual hosts on the same machine. Consolidate content to

“Waiting for available socket”, fix from the server end

爱⌒轻易说出口 提交于 2021-02-04 07:26:05
问题 I am accessing my PHP/Apache website from Chrome. And Chrome refuses to load the page, saying "Waiting for available socket". Other pages on this same virtual host also have the problem. Other virtual hosts on the same server load perfectly fine. Please advise how I can fix this. 回答1: According to various sources, Chrome opens a maximum of 6 simultaneous connections to the same server. Possible solutions include Host data on different virtual hosts on the same machine. Consolidate content to

金灿灿的季节

夙愿已清 提交于 2021-02-04 04:26:14
在这个金灿灿的收获季节,经过 Apache DolphinScheduler PPMC 们的推荐和投票,Apache DolphinScheduler 收获了 5 位新Committer 。他们是:nauu(朱凯)、Rubik-W(温合民)、gabrywu、liwenhe1993、clay4444。 对于成为 Committer ,小伙伴们说道: 朱凯 : 非常荣幸能够成为DolphinSchedule 的 Committer。这既是一份喜悦,也是一份责任。我将以终为始,继续打怪升级,助力 DS 早日毕业。 温合民 : 很荣幸成为DS Committer团队的一员。通过技术调研了解到DS,最终选型决定引入DS,高效的社区支持使项目最终顺利落地。DS是我参与开源的第一个项目,深受益于开源,同时也想为开源做一些力所能及的贡献,希望未来能更多的为DS添砖加瓦,愿DS顺利毕业。 社区介绍: Apache DolphinScheduler 是一个非常多样化的社区,至今贡献者已近100名, 他们分别来自 30 多家不同的公司。 微信群用户3000人。 Apache DolphinScheduler 部分用户案例(排名不分先后) 已经有300多家企业和科研机构在使用DolphinScheduler,来处理各类调度和定时任务,另有 近500家 公司开通了海豚调度的试用: Apache

Ant -----ant标签和自定义任务

懵懂的女人 提交于 2021-02-04 04:26:01
随便记一下 Ant的用法吧。ant ,maven, gradle ,三个打包工具到齐了,Ant 常见标签解析,ant 自定义task 。 <?xml version="1.0" encoding="UTF-8"?> <project name="pase2" default="allElements"> <property environment="env" /> <!-- ===================================================================== --> <!-- Run a given ${target} on all elements being built --> <!-- Add on <ant> task for each top level element being built. --> <!-- ===================================================================== --> <available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml"/> <property name=