localhost

Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID

对着背影说爱祢 提交于 2019-12-03 12:19:55
I am facing strange issue on chrome while debugging local ASP.NET application on chrome. I am not able to open localhost without https . With Https it's giving error: Your connection is not private NET::ERR_CERT_COMMON_NAME_INVALID . It was working on chrome till last update & is working on firefox & IE. There is also no option in advanced setting to skip error & visit site. Please help. Finally banging head on desk for two days I found this setting in chrome://flags/ to Allow invalid certificates for resources loaded from localhost . finally no disable all certificate error, only for

Java 发送邮件

笑着哭i 提交于 2019-12-03 12:19:35
使用Java应用程序发送 E-mail 十分简单,但是首先你应该在你的机器上安装 JavaMail API 和Java Activation Framework (JAF) 。 您可以从 Java 网站下载最新版本的 JavaMail,打开网页右侧有个 Downloads 链接,点击它下载。 您可以从 Java 网站下载最新版本的 JAF(版本 1.1.1)。 你也可以使用本站提供的下载链接: JavaMail mail.jar 1.4.5 JAF(版本 1.1.1) activation.jar 下载并解压缩这些文件,在新创建的顶层目录中,您会发现这两个应用程序的一些 jar 文件。您需要把 mail.jar 和 activation.jar 文件添加到您的 CLASSPATH 中。 如果你使用第三方邮件服务器如QQ的SMTP服务器,可查看文章底部用户认证完整的实例。 发送一封简单的 E-mail 下面是一个发送简单E-mail的例子。假设你的本地主机已经连接到网络。 SendEmail.java 文件代码: // 文件名 SendEmail.java import java . util .*; import javax . mail .*; import javax . mail . internet .*; import javax . activation .*;

ctf中常见的php伪协议应用

旧城冷巷雨未停 提交于 2019-12-03 12:15:18
ctf中常见的php伪协议应用 转载: http://www.4o4notfound.org/index.php/archives/31/ 0x01 知识储备 php支持的协议和封装协议可以看 http://php.net/manual/zh/wrappers.php ,大致有12种,总结了一些真实漏洞和ctf比赛中常出现的案例,发现其中用的最多的四种是:php://、 data://、zlib://、phar:// 三个白帽 payload:php://filter/write=convert.base64-decode/resource=shell.php bypass:死亡die,base64在解码时会忽略特殊字符 pctf2016 payload:data:text/plain;base64,MS50eHQ= bypass:stripos等if判断 hctf2016+swpu2016 payload1+payload2 payload1:php://filter/convert.base64-encode/resource=../flag.php payload2:phar://xxx.jpg/shell 西安华山杯2016 payload:php://input payload:data:text/plain;base64,xxxx 0x02 相关研究 1)、php://

How to fix Error: MySQL shutdown unexpectedly on Xampp due to Plugin 'Aria'

荒凉一梦 提交于 2019-12-03 12:05:51
These were the logs: [ERROR] mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files [ERROR] Plugin 'Aria' init function returned error. [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed. The solution is Removing the aria_log_control file allowed MariaDB to start again. You can find this file in \xampp\mysql\data. Then restart or start xammp. If XAMPP generated following logs [Note] Plugin 'FEEDBACK' is disabled. [ERROR] j:\xampp\mysql\bin\mysqld.exe: unknown option '--skip-federated' [ERROR] Aborting Try to run MySQL with

cm_api

帅比萌擦擦* 提交于 2019-12-03 11:55:25
cm API: https://github.com/cloudera/cm_api/tree/master/python/examples/auto-deploy #看集群有几个cluster curl -u admin:opaytest99 'http://localhost:7180/api/v1/clusters' curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/serviceName/roles' 列出所有服务及健康状态: curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services' 看某个服务下有什么角色: curl -u admin:opaytest99 'http://localhost:7180/api/v32/clusters/opay-test/services/hdfs/roles' 查看host信息: curl -u admin:opaytest99 'http://195.189.142.89:7180/api/v32/hosts' 来源: https://www.cnblogs.com/hongfeng2019/p

tcp流量控制一个非常能学到知识的技术帖

穿精又带淫゛_ 提交于 2019-12-03 11:52:34
模拟测试程序,从客户端向服务器发数据,人工控制服务器收数据。当客户端发了一部分数据后,无法再发送,此时服务器开始每次收取1K。 按照常理推断,服务器收取1K后,客户端应该能够继续发送数据,但实测观察发现,客户端还是无法发送数据,直到服务器收取了一定数据量后,客户端才能够继续发送。 tcp抓包如下: [plain] view plain copy <span style="font-size:18px;">11:42:40.217984 IP localhost.6379 > localhost.28944: . ack 65665 win 0 <nop,nop,timestamp 1816613366 1816613366> 0x0000: 4500 0034 5e08 4000 4006 deb9 7f00 0001 E..4^. @. @....... 0x0010: 7f00 0001 18eb 7110 7c79 0efb 7c5f 2ff1 ......q.|y..|_/. 0x0020: 8010 0000 3a7f 0000 0101 080a 6c47 51f6 ....:.......lGQ. 0x0030: 6c47 51f6 lGQ. 11:42:40.425034 IP localhost.28944 > localhost.6379: . ack 1

axios

不羁的心 提交于 2019-12-03 11:28:25
axios的基本特性 axios 是一个基于Promise用于浏览器和node.js 的http客户端 它具有以下特征: + 支持浏览器和node.js + 支持Promise + 能拦截请求和相应 + 自动转换JSON数据 代码: 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <meta http-equiv="X-UA-Compatible" content="ie=edge"> 8 <title>Document</title> 9 <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js"></script> 10 </head> 11 12 <body> 13 14 </body> 15 <script> 16 // get 17 // restful 形式 18 axios.get('http://localhost:3000/test3/12313') 19 .then(res => console.log(res.data)

Multiple localhost:80-bound sites in IIS?

点点圈 提交于 2019-12-03 11:23:53
(You can skip directly to the question, but the context is on the background section.) Technical Context Windows 8 IIS 7 Background: As several others, I work with IIS and from time to time I need to set up a local version of a site. Now, in setting up different sites, it is quite common to just assign them different ports so that they don't overlap. So you could have your site A at port 80, your site B at port 81 and so on. Now, I want to setup the bindings so that I am able to have several sites under port 80 and with the header host distinction I can at the same time give meaningful URLs to

SSH代理

≡放荡痞女 提交于 2019-12-03 11:20:33
参考: http://www.dkys.org/archives/1111.html SSH的-L与-D代理 SSH有三种代理参数-L,-D,-R。-R代理不是本次重点,有兴趣的读者可以自行查阅man手册。 -L参数会在本地监听一个端口,转发数据到远程主机上。 ssh -NL 3306:localhost:3306 user@remote_ip 在本地监听一个3306端口,转发到远程主机上的localhost:3306上,等于访问本地的3306端口就相当于访问到了远程的mysql服务。这种方式访问远程服务会更安全,远程服务不需要对外网暴露端口。 很明显,这个代理只适用于代理单一ip单一服务的需求有用,本质上是反向代理,客户端不需要额外配置。 -D参数就厉害了,在本地开放一个socks5协议的代理端口,利用这个端口可以动态的访问到远程内网的环境。 ssh -ND 1080 user@remote_ip 这条命令会在本地开放一个1080的socks5端口,支持socks5协议代理的应用程序就可以利用这个端口直接访问到内网资源。比如: curl --socks5 127.0.0.1:1080 localhost 让curl命令利用socks5协议代理访问到远程服务器上的http服务,浏览器直接配置这个代理服务就可以无阻碍的访问到内网中所有的http服务了。 很明显

How to open a create-react-app from another computer connected to the same network?

蓝咒 提交于 2019-12-03 10:24:07
I am using create-react-app and hosting in its default port localhost:3000 and want to access this from another device on the same network. I got the IP of my host's IP (using ifconfig ) 192.168.0.5 and tried opening 192.168.0.5:3000 but that did not work. Is there any way to achieve this? Simply run HOST=0.0.0.0 npm run start . Afterwards open the url from another device on the network. In your case, 192.168.0.5:3000 would work. Documentation for setting HOST environment variables. Can you please turn off your firewall and check 192.168.0.5:3000. Thanks As I can't post comment, In