iis

PHP Exec (ffmpeg) fails on IIS every other request

£可爱£侵袭症+ 提交于 2021-02-04 21:51:22
问题 <?PHP exec("ffmpeg.exe -i something.mp4 -ss 1 -t 1 -r 1 -s 320x240 -y something.jpg"); ?> Calling this script results in a server error 500 every other request . PHP 7.01, IIS 10. I have already ruled out that the problem might be related to the specific ffmpeg paramters of my call. The execution is < than 1 second, so it can't be a PHP or IIS script execution timeout. No matter how much time passes between one "call" to the script and the next, the odd numbered calls result in error 500, the

PHP Exec (ffmpeg) fails on IIS every other request

天涯浪子 提交于 2021-02-04 21:50:22
问题 <?PHP exec("ffmpeg.exe -i something.mp4 -ss 1 -t 1 -r 1 -s 320x240 -y something.jpg"); ?> Calling this script results in a server error 500 every other request . PHP 7.01, IIS 10. I have already ruled out that the problem might be related to the specific ffmpeg paramters of my call. The execution is < than 1 second, so it can't be a PHP or IIS script execution timeout. No matter how much time passes between one "call" to the script and the next, the odd numbered calls result in error 500, the

Why does Asp.Net Core 2.1 WebApi return a 500.19 error?

独自空忆成欢 提交于 2021-02-04 19:40:09
问题 I have a small webapi service, which works under Visual Studio but doesn't work under IIS. I did the next: New application was added to the default web-site in IIS console. Application was published into app folder from VS via File System (Framework-dependent and Portable options were selected). When I try access folder with my app (like http://localhost/example/ ) I receive 500.19 error with code 0x8007000d . I read this error can happen if ApplicationHost.config or Web.config has wrong XML

IIS 6 - Classic ASP - Set *.asp response header's content-type to “text/html;charset=UTF-8”

半世苍凉 提交于 2021-02-04 17:40:53
问题 How do I can set *.asp files (Classic ASP) in a Web Site under IIS to have Response Header's Content-Type set to text/html;charset=UTF-8 ? Right now, the files are served as Content-Type=text/html . An alternate approach is to add <% Response.Charset = "UTF-8" %> to every single page, but I wonder if there's a way to do it globally. Thanks! -K 回答1: There is no means to globally specify the CharSet for an application. There is actually more to it than just telling the client its getting UTF-8.

HTTP Error 500.35

允我心安 提交于 2021-02-03 07:31:37
vs2019 win10 情况:报错 HTTP Error 500.35 - ANCM Multiple In-Process Applications in same Process 微软官方解释: 500.34 ANCM 混合托管模型不受支持 工作进程不能在同一进程中同时运行进程内应用和进程外应用。 要修复此错误,请在单独的 IIS 应用程序池中运行应用。 500.35 ANCM 同一进程内有多个进程内应用程序 工作进程不能在同一进程中同时运行进程内应用和进程外应用。 要修复此错误,请在单独的 IIS 应用程序池中运行应用。 解决方案:删除项目文件夹下的.vs文件夹 参考链接: https://stackoverflow.com/questions/58246822/http-error-500-35-ancm-multiple-in-process-applications-in-same-process-asp-ne 来源: oschina 链接: https://my.oschina.net/u/4347039/blog/3346630

IIS7.5全站301跳转,内页+带参数url,这才是真正的全站跳转

ε祈祈猫儿з 提交于 2021-02-03 01:07:27
说好的转型安全领域,可是我还是忍不住要给大家分享这个教程。因为这个问题很常见,大部分人都遇到了(可能你没注意),困扰了我很久,相信这是一篇真正适合你的IIS301跳转教程。 背景 说到301跳转,作为seoer的你可能自以为是的觉得这是个简单的常识,可是你还真的不一定全会,看上去你的301跳转成功了,但是真的是301吗?真的是全站301吗?你找个内页带参数的url试试就知道。 大部分人做的301只是首页301,或者内页部分301,真正的问题在于你可能还没发现这个问题。 环境与条件 VPS中IIS7.5 需要做全站跳转或者指定规则跳转 不带www域名跳转到带www域名 解决方法 如果你是独立vps云服务器,那么想要做的全站301,不可能靠web.config文件来实现的,web.config文件在实践中只能首页301跳转。 案例 我现在需要将老域名:seo.qiankoo.com,与新域名不带www的secafe.cn域名全部跳转到:http://www.vuln.cn 这是个很经典的案例,大多数人要做301大多数都是这两种。 首先,我新建一个站点,仅绑定域名:www.vuln.cn,指定站点目录为你的网站程序目录,如图: 然后,随便找个地方(最好还是站点同目录)建立一个空文件夹;新建一个站点,绑定需要跳转的域名(可同时绑定多个),指定网站目录为刚才创建的空白文件夹,如图:

干货 | 渗透之网站Getshell最全总结

爱⌒轻易说出口 提交于 2021-02-02 16:30:37
排版来源于HACK之道 Getshell分为进管理员后台Getshell和不进后台Getshell,本文主要总结常见进后台Getshell和部分。 进后台Getshell 管理员后台直接Getshell 管理员后台直接上传Getshell,有时候带密码的Webshell连接时容易被waf拦截,可以上传不加密的Webshell如有权限限制可以尝试管理后台自带的修改文件名功能在文件名前加../来穿越目录,如上传的文件为a. php ,将a. php 修改为../a. php 。 后台数据库备份Getshell 后台数据库备份getshell,上传图片马并获取图片马路径,通过数据库备份修改后缀名,如有后缀名无法修改或路径无法修改限制可修改前端代码绕过,当所备份的数据库来源无法修改时,我们可以通过首先将一句话木马写入数据库,比如通过新建管理员用户,将用户名用一句话木马代替(用户名通常有长度限制,在前端修改maxlength即可), <%eval request ("pass")%> 然后再通过备份数据库后访问此界面Getshell。 各类上传Getshell https://choge.top/2020/02/29/%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E9%AB%98%E7%BA%A7%E5%88%A9%E7%94%A8/

.netcore部署到IIS上出现HTTP Error 502.5

半腔热情 提交于 2021-02-02 13:52:18
首先网上是有很多解决方案,但是对我这个错误完全没用 如果你们没有环境首先得预装环境如下 1、首先在bing.com下搜索asp.net core download, 然后打开搜索到的信息 . NET Downloads – microsoft . com 2、打开之后进入 https://www.microsoft.com/net/download/windows , 然后点击 Download .NET Core SDK (建议下载最新版) 直接下载安装即可。 因为我的SDK跟我现在的新项目版本不兼容才出现这个问题,所有出现这个问题大家可以往SDK版本方面去找问题 来源: oschina 链接: https://my.oschina.net/u/4320349/blog/3981927

.net core 部署到IIS 以及上 HTTP Error 502.5

你。 提交于 2021-02-02 13:06:18
安装AspNetCoreModule托管模块后执行 1.net stop was /y 2.net start w3svc 测试可以,但是需要装对应的托管模块的版本。 <div id="cnblogs_post_body" class="blogpost-body"><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><strong>1. .NET Core与Windows环境</strong></span></p> <p>  Asp.Net Core 2.2.0</p> <p>  Windows 10</p> <p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><strong>2. 先决条件</strong></span></p> <p>   下载并安装<a href="https://www.microsoft.com/net/permalink/dotnetcore-current-windows-runtime-bundle-installer" target="_blank">.Net Core Hosting Bundle</a>.</p> <p><span style="font-family:

配置IIS FTP服务器

[亡魂溺海] 提交于 2021-02-02 06:06:07
问题如下:最近做一个项目,要用外网通过ftp来连接服务器,取文件。服务器默认端口 21 是正常的,新开了一个28端口,配置好了用户权限。使用FTP连接出现如下响应信息: 状态: 正在连接 42.123.101.210:28 ... 状态: 已经连接到 42.123.101.210:0。正在等待欢迎信息... 响应: 220 Microsoft FTP Service 命令: USER FTPUserN 响应: 331 Password required 命令: PASS ******** 响应: 230 User logged in. 状态: 连接成功 命令: OPTS UTF8 OFF 响应: 200 OPTS UTF8 command successful - UTF8 encoding now OFF. 状态: 正在取得目录列表... 命令: PWD 响应: 257 "/" is current directory. 命令: PASV 响应: 227 Entering Passive Mode (172,16,1,226,252,192). 命令: TYPE A 响应: 200 Type set to A. 命令: LIST 响应: 150 Opening ASCII mode data connection. 错误: 无法打开传输通道。原因