dns

Windows设置本地DNS域名解析hosts

て烟熏妆下的殇ゞ 提交于 2019-12-11 01:28:48
前言:不涉及其他DNS服务器的解析,只在本地做解析,在局域网内可以解析。(域名只要不冲突) 一、先找到hosts文件,【默认路径:C:\Windows\System32\drivers\etc\hosts】: 修改文件: 刷新dns配置: 确定后,刷新DNS配置(ipconfig /flushdns): 在自己的本地搭建了一个flask,所以启动是80端口,访问如下域名: 大功告成! 其他: 如果web应用不是80端口,那么hosts配置文件保持不变,可以在域名后面加端口,如图所示(这里假设端口为8989): 注意:hosts文件里面不能带端口。 来源: CSDN 作者: qq_38135191 链接: https://blog.csdn.net/qq_38135191/article/details/103482301

Simple regex for domain names

℡╲_俬逩灬. 提交于 2019-12-11 01:15:31
问题 How to make sure that the domain name match those 3 simple criterias : Ends with .com / .net Must not start with http:// or https:// http://www. or https://www. I've managed to understand this part of the regex which correspond with the first criteria : /.*(\.com|\.net)$/ But i have no idea how to achieve the 2 others conditions to make an unique regex. Thanks for your help. 回答1: A regex solution is easy. Simply assert a negative lookahead at the start of the string like so: (With comments...

信息搜集笔记(更新中)

风格不统一 提交于 2019-12-11 01:14:44
方便信息搜集的网站(清单化) 子域名在线收集: 一、谷歌语法 通过特定站点范围查询子域: site:qq.com 二、在线爆破 在线枚举爆破: http://phpinfo.me/domain/ 三、证书搜索 基于SSL证书查询子域: https://crt.sh/ 四、DNS搜索 基于DNS记录查询子域: https://dns.bufferover.run/dns?q= Google Hacking 关键字 功能 site 指定域名 inurl URL中存在的关键字 filetype 指定文件类型 intitle 网页标题中的关键字 link link:baidu.com 表示所有和百度做了链接的URL "" 精确匹配双引号里面的内容 简单举几个例子: 查找后台:inurl:login|admin|manage|member|admin_login|login_admin|system|login|user|main|cms 查找文本内容:intext:管理|后台|登陆|用户名|密码|验证码|系统|帐号|admin|login|sys|managetem|password|username 查找上传漏洞:inurl:file|load|editor|Files 找eweb编辑器:site:域名 inurl:ewebeditor|editor|uploadfile|eweb

SQL注入

房东的猫 提交于 2019-12-11 00:48:41
SQL注入:POST注入 POST注入简介 POST注入属于注入的一种,相信大家在之前的课程中都知道POST\GET两种传参方式。 POST注入就是使用POST进行传参的注入,本质上和GET类型的没什么区别。 POST注入高危点 登录框、查询框等各种和数据有交互的框 最经典的POST注入案例:'or 1=1 # Sqlmap如何对POST类型SQL注入进行注入 --forms sqlmap去读取页面中POST传参的表单的传参名然后进行SQL注入 -r 1.txt sqlmap读取数据包文件进行SQL注入,注入处可以打一个*号告诉Sqlmap测试那个点 post注入 在填写表单的时候提交使用post传参 一般是在用户名框或者密码框尝试 sqlmap如何跑post注入 方法一:sqlmap.py -u http://xxxxxx --form 方法二:通过抓包的方式,保存在文件中,在注入点加上 * 号提示sqlmap,同时有些注入点,是需要登录的状态下的权限,而一般的sqlmap是没有权限的,但是通过抓包的方式存在cookie SQL注入:HEAD注入 HEAD注入原理 HEAD注入顾名思义就是在传参的时候,将我们的数据构建在http头部。 HEAD注入的使用场景 为什么网站要记录你的ip或者请求头,是为了方便你的二次登陆,区分你的登陆地址和设备,可以更高的自适应。[所以

Port 80 blocked on my ISP so how my browser still works?

泄露秘密 提交于 2019-12-11 00:37:59
问题 I know that when I request example.com my browser actually deafults to example.com:80 . However my ISP block the 80 port from listening so HOW do I receive the responses from my requests if the port 80 is blocked? It should not work, isnt? 回答1: When you make an HTTP request (in fact, any TCP request), there are two ports involved. There is port 80 on the destination (in your case, "example.com"), and there is a port on your computer; this port is called the "source port" since your computer

c# system.net.dns universal app (W10) not working

蹲街弑〆低调 提交于 2019-12-11 00:12:05
问题 I tried to get IP adress from DNS by using IPAddress[] ip = Dns.GetHostAddresses("www.google.com"); in univesal c# windows app. But it shows me error Error CS0103 The name 'Dns' does not exist in the current context I tried it in console app, it works perfectly. Namespace System.Net doesnt contain Dns in win 10 universal app. Could you tell me, where is problem or another solution? My CODE using System.Net; public MainPage() { this.InitializeComponent(); } private void button_Click(object

Domain to point to a single page

时光怂恿深爱的人放手 提交于 2019-12-11 00:09:10
问题 I'm trying to point a domain name to a single page, and keep the domain the same (no redirect). So if a user types: www.domain1.com.au --> original site is shown If a user types: www.domain2.com.au --> they are shown www.domain1.com.au/second.php, but the URL still says www.domain2.com.au. Can this be done using .htaccess? Snippet of current .htaccess file is: RewriteCond %{HTTP_HOST} www\.domain2\.com\.au [NC] RewriteRule (.*) /two [L] RewriteCond $1 ^(one|two|three|four) [NC] RewriteRule ^(

htaccess internal rewrite from subdomain to subdir path

房东的猫 提交于 2019-12-10 23:30:47
问题 Im at least 24 hours busy on this subject, I cant seem to get this script to work. The script doesnt redirect at all. RewriteEngine On RewriteCond %{HTTP_HOST} ^m\.skynet\.com$ RewriteRule ^/(.*)$ /mobile/final/$1 [L,NC] What am I doing wrong? UPDATE: RewriteEngine On RewriteCond %{HTTP_HOST} ^m\.skynet\.com$ RewriteCond %{REQUEST_URI} !^/mobile/final/ RewriteRule ^(.*)$ /mobile/final/$1 [L,NC] This partially works, but links like m.skynet.com\download.php wont get redirected UPDATE: 45min

dns服务

给你一囗甜甜゛ 提交于 2019-12-10 23:22:46
安装dns服务 1:下载dns_docker镜像包 wget http://192.168.12.202/docker_image/docker_k8s_dns.tar.gz 2:导入dns_docker镜像包(node1节点) 3:修改skydns-rc.yaml, 在master 创建dns服务 spec: nodeName: 10.0.0.12(在那个节点上上传的写那个节点上的ip) 4.创建dns服务 1 kubectl create -f skydns-deploy.yaml 2 kubectl create -f skydns-svc.yaml 检查 kubectl get all --namespace=kube-system 6.修改所有node节点kebelet的配置文件 1 vim /etc/kubernetes/kubelet 2 KUBELET_ARGS="--cluster_dns=10.254.230.254 --cluster_domain=cluster.local" 3 systemctl restart kubelet 来源: https://www.cnblogs.com/yangxiaoni/p/12019751.html

DNS Lookup failed - Error with all browsers [closed]

。_饼干妹妹 提交于 2019-12-10 23:21:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Please scroll down for the solution that solved my problem... Question ::: Firstly, please excuse me for asking this question here. I have searched other sites in SO network, but I didn't really understand where to put this and this is the only site that I am familiar with. I also, have spent hours reading other